From 8feb14186e244aed8416ce040e6a135124a7f51f Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 9 Sep 2021 18:07:35 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/CMakeLists.txt | 63 +- stage0/src/Init/Conv.lean | 5 + stage0/src/Init/Data/Nat/Basic.lean | 3 + stage0/src/Init/Notation.lean | 15 + stage0/src/Lean/Class.lean | 2 +- stage0/src/Lean/Compiler/Util.lean | 6 +- stage0/src/Lean/Elab/Command.lean | 2 +- stage0/src/Lean/Elab/Deriving/BEq.lean | 16 +- stage0/src/Lean/Elab/Deriving/DecEq.lean | 85 +- stage0/src/Lean/Elab/Deriving/Inhabited.lean | 2 +- stage0/src/Lean/Elab/InfoTree.lean | 2 +- stage0/src/Lean/Elab/Level.lean | 2 +- stage0/src/Lean/Elab/Match.lean | 10 +- stage0/src/Lean/Elab/MutualDef.lean | 8 +- stage0/src/Lean/Elab/PatternVar.lean | 4 +- stage0/src/Lean/Elab/Tactic.lean | 1 + stage0/src/Lean/Elab/Tactic/Basic.lean | 4 +- .../src/Lean/Elab/Tactic/BuiltinTactic.lean | 2 +- stage0/src/Lean/Elab/Tactic/Conv.lean | 1 + stage0/src/Lean/Elab/Tactic/Conv/Basic.lean | 8 +- stage0/src/Lean/Elab/Tactic/Conv/Delta.lean | 17 + stage0/src/Lean/Elab/Tactic/Conv/Simp.lean | 13 +- stage0/src/Lean/Elab/Tactic/Delta.lean | 37 + stage0/src/Lean/Elab/Tactic/ElabTerm.lean | 15 + stage0/src/Lean/Elab/Tactic/Induction.lean | 2 +- stage0/src/Lean/Elab/Tactic/Location.lean | 22 + stage0/src/Lean/Elab/Tactic/Rewrite.lean | 28 +- stage0/src/Lean/Elab/Tactic/Simp.lean | 2 +- stage0/src/Lean/Elab/Term.lean | 4 +- stage0/src/Lean/Elab/Util.lean | 2 +- stage0/src/Lean/Expr.lean | 29 +- stage0/src/Lean/KeyedDeclsAttribute.lean | 57 +- stage0/src/Lean/Level.lean | 33 +- stage0/src/Lean/Meta/AbstractMVars.lean | 9 +- stage0/src/Lean/Meta/Basic.lean | 22 +- stage0/src/Lean/Meta/DiscrTree.lean | 31 +- stage0/src/Lean/Meta/ExprDefEq.lean | 10 +- stage0/src/Lean/Meta/GeneralizeVars.lean | 16 +- stage0/src/Lean/Meta/InferType.lean | 4 +- stage0/src/Lean/Meta/Match/CaseValues.lean | 2 +- stage0/src/Lean/Meta/Match/MVarRenaming.lean | 2 +- stage0/src/Lean/Meta/Match/MatchEqs.lean | 4 +- stage0/src/Lean/Meta/PPGoal.lean | 6 +- stage0/src/Lean/Meta/Reduce.lean | 2 +- stage0/src/Lean/Meta/SortLocalDecls.lean | 10 +- stage0/src/Lean/Meta/SynthInstance.lean | 2 +- stage0/src/Lean/Meta/Tactic/Intro.lean | 4 +- stage0/src/Lean/Meta/Tactic/Replace.lean | 18 +- .../Lean/Meta/Tactic/Simp/CongrLemmas.lean | 4 +- stage0/src/Lean/Meta/Tactic/Simp/Main.lean | 16 +- stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean | 66 +- stage0/src/Lean/Meta/Tactic/Split.lean | 42 +- stage0/src/Lean/Meta/Tactic/Subst.lean | 4 +- stage0/src/Lean/Meta/Tactic/Util.lean | 6 +- stage0/src/Lean/MetavarContext.lean | 2 +- .../PrettyPrinter/Delaborator/Builtins.lean | 4 +- stage0/src/Lean/Server/FileWorker.lean | 15 +- stage0/src/Lean/Util/CollectFVars.lean | 2 +- stage0/src/Lean/Widget/InteractiveGoal.lean | 2 +- stage0/src/bin/leanc.in | 41 +- stage0/src/runtime/object.cpp | 6 + stage0/src/shell/CMakeLists.txt | 11 +- stage0/src/shell/lean.cpp | 10 +- stage0/src/stdlib.make.in | 30 +- stage0/stdlib/Init/Conv.c | 732 +- stage0/stdlib/Init/Notation.c | 1167 +- stage0/stdlib/Lean/Class.c | 176 +- stage0/stdlib/Lean/Compiler/ExternAttr.c | 102 +- stage0/stdlib/Lean/Compiler/IR/Checker.c | 798 +- stage0/stdlib/Lean/CoreM.c | 44 +- stage0/stdlib/Lean/Data/Xml/Parser.c | 3763 +-- stage0/stdlib/Lean/Elab/App.c | 4 +- stage0/stdlib/Lean/Elab/Attributes.c | 14 +- stage0/stdlib/Lean/Elab/Binders.c | 99 +- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 12 +- stage0/stdlib/Lean/Elab/Command.c | 129 +- stage0/stdlib/Lean/Elab/DefView.c | 18 +- stage0/stdlib/Lean/Elab/Deriving/BEq.c | 2394 +- stage0/stdlib/Lean/Elab/Deriving/Basic.c | 4 +- stage0/stdlib/Lean/Elab/Deriving/DecEq.c | 3637 ++- stage0/stdlib/Lean/Elab/Deriving/Inhabited.c | 2607 +- stage0/stdlib/Lean/Elab/Do.c | 151 +- stage0/stdlib/Lean/Elab/Extra.c | 6 +- stage0/stdlib/Lean/Elab/Inductive.c | 20 +- stage0/stdlib/Lean/Elab/InfoTree.c | 173 +- stage0/stdlib/Lean/Elab/LetRec.c | 12 +- stage0/stdlib/Lean/Elab/Level.c | 54 +- stage0/stdlib/Lean/Elab/Match.c | 555 +- stage0/stdlib/Lean/Elab/MutualDef.c | 5839 ++++- stage0/stdlib/Lean/Elab/PatternVar.c | 14 +- stage0/stdlib/Lean/Elab/PreDefinition/Main.c | 4 +- .../Lean/Elab/PreDefinition/Structural.c | 12 +- stage0/stdlib/Lean/Elab/Print.c | 55 +- stage0/stdlib/Lean/Elab/Quotation/Precheck.c | 12 +- stage0/stdlib/Lean/Elab/StructInst.c | 12 +- stage0/stdlib/Lean/Elab/Structure.c | 40 +- stage0/stdlib/Lean/Elab/Syntax.c | 74 +- stage0/stdlib/Lean/Elab/SyntheticMVars.c | 60 +- stage0/stdlib/Lean/Elab/Tactic.c | 6 +- stage0/stdlib/Lean/Elab/Tactic/Basic.c | 14 +- .../stdlib/Lean/Elab/Tactic/BuiltinTactic.c | 10 +- stage0/stdlib/Lean/Elab/Tactic/Conv.c | 6 +- stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c | 224 +- stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c | 8 +- stage0/stdlib/Lean/Elab/Tactic/Conv/Delta.c | 462 + stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c | 4 +- stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c | 445 +- stage0/stdlib/Lean/Elab/Tactic/Delta.c | 1843 ++ stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c | 653 +- stage0/stdlib/Lean/Elab/Tactic/Induction.c | 419 +- stage0/stdlib/Lean/Elab/Tactic/Injection.c | 54 +- stage0/stdlib/Lean/Elab/Tactic/Location.c | 689 +- stage0/stdlib/Lean/Elab/Tactic/Match.c | 12 +- stage0/stdlib/Lean/Elab/Tactic/Rewrite.c | 894 +- stage0/stdlib/Lean/Elab/Tactic/Simp.c | 3331 ++- stage0/stdlib/Lean/Elab/Term.c | 626 +- stage0/stdlib/Lean/Elab/Util.c | 22 +- stage0/stdlib/Lean/Expr.c | 404 +- stage0/stdlib/Lean/HeadIndex.c | 6 +- stage0/stdlib/Lean/KeyedDeclsAttribute.c | 2231 +- stage0/stdlib/Lean/Level.c | 2764 ++- stage0/stdlib/Lean/LocalContext.c | 88 +- stage0/stdlib/Lean/Message.c | 27 +- stage0/stdlib/Lean/Meta/AbstractMVars.c | 68 +- .../stdlib/Lean/Meta/AbstractNestedProofs.c | 16 +- stage0/stdlib/Lean/Meta/AppBuilder.c | 6 +- stage0/stdlib/Lean/Meta/Basic.c | 451 +- stage0/stdlib/Lean/Meta/Closure.c | 196 +- stage0/stdlib/Lean/Meta/CollectFVars.c | 30 +- stage0/stdlib/Lean/Meta/DiscrTree.c | 1477 +- stage0/stdlib/Lean/Meta/DiscrTreeTypes.c | 3 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 499 +- stage0/stdlib/Lean/Meta/GeneralizeVars.c | 19946 +++++++++------- stage0/stdlib/Lean/Meta/IndPredBelow.c | 147 +- stage0/stdlib/Lean/Meta/InferType.c | 10 +- stage0/stdlib/Lean/Meta/Instances.c | 139 +- stage0/stdlib/Lean/Meta/LevelDefEq.c | 101 +- .../stdlib/Lean/Meta/Match/CaseArraySizes.c | 4 +- stage0/stdlib/Lean/Meta/Match/CaseValues.c | 148 +- stage0/stdlib/Lean/Meta/Match/MVarRenaming.c | 2481 +- stage0/stdlib/Lean/Meta/Match/Match.c | 4 +- stage0/stdlib/Lean/Meta/Match/MatchEqs.c | 2736 ++- stage0/stdlib/Lean/Meta/PPGoal.c | 6072 +++-- stage0/stdlib/Lean/Meta/RecursorInfo.c | 80 +- stage0/stdlib/Lean/Meta/Reduce.c | 557 +- stage0/stdlib/Lean/Meta/SynthInstance.c | 249 +- stage0/stdlib/Lean/Meta/Tactic/Apply.c | 6 +- stage0/stdlib/Lean/Meta/Tactic/Assert.c | 4 +- stage0/stdlib/Lean/Meta/Tactic/Induction.c | 6 +- stage0/stdlib/Lean/Meta/Tactic/Intro.c | 20 +- stage0/stdlib/Lean/Meta/Tactic/Replace.c | 528 + .../Lean/Meta/Tactic/Simp/CongrLemmas.c | 2371 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c | 729 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c | 4432 ++-- .../stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c | 122 +- stage0/stdlib/Lean/Meta/Tactic/Split.c | 1415 +- stage0/stdlib/Lean/Meta/Tactic/SplitIf.c | 8 +- stage0/stdlib/Lean/Meta/Tactic/Subst.c | 181 +- stage0/stdlib/Lean/Meta/Tactic/Util.c | 763 +- stage0/stdlib/Lean/Meta/Transform.c | 10 +- stage0/stdlib/Lean/Meta/UnificationHint.c | 245 +- stage0/stdlib/Lean/Meta/WHNF.c | 2862 ++- stage0/stdlib/Lean/MetavarContext.c | 199 +- stage0/stdlib/Lean/ParserCompiler.c | 132 +- stage0/stdlib/Lean/PrettyPrinter.c | 17 +- .../Lean/PrettyPrinter/Delaborator/Basic.c | 8 +- .../Delaborator/TopDownAnalyze.c | 132 +- stage0/stdlib/Lean/Server/FileWorker.c | 3126 +-- stage0/stdlib/Lean/Server/FileWorker/Utils.c | 35 +- stage0/stdlib/Lean/Server/Snapshots.c | 31 +- stage0/stdlib/Lean/Util/CollectFVars.c | 2491 +- stage0/stdlib/Lean/Util/PPExt.c | 41 +- stage0/stdlib/Lean/Widget/InteractiveCode.c | 82 +- .../Lean/Widget/InteractiveDiagnostic.c | 66 +- stage0/stdlib/Lean/Widget/InteractiveGoal.c | 265 +- 175 files changed, 70938 insertions(+), 23749 deletions(-) create mode 100644 stage0/src/Lean/Elab/Tactic/Conv/Delta.lean create mode 100644 stage0/src/Lean/Elab/Tactic/Delta.lean create mode 100644 stage0/stdlib/Lean/Elab/Tactic/Conv/Delta.c create mode 100644 stage0/stdlib/Lean/Elab/Tactic/Delta.c diff --git a/stage0/src/CMakeLists.txt b/stage0/src/CMakeLists.txt index 3b8d2d838c..4e83cbabe4 100644 --- a/stage0/src/CMakeLists.txt +++ b/stage0/src/CMakeLists.txt @@ -35,8 +35,6 @@ option(SPLIT_STACK "SPLIT_STACK" OFF) # When OFF we disable LLVM support option(LLVM "LLVM" OFF) -# Include MSYS2 required DLLs and binaries in the binary distribution package -option(INCLUDE_MSYS2_DLLS "INCLUDE_MSYS2_DLLS" OFF) # When ON we include githash in the version string option(USE_GITHASH "GIT_HASH" ON) # When ON thread storage is automatically finalized, it assumes platform support pthreads. @@ -59,13 +57,13 @@ option(FAKE_FREE "Disable actually freeing runtime objects, useful for option(SMALL_ALLOCATOR "SMALL_ALLOCATOR" ON) option(LAZY_RC "LAZY_RC" OFF) option(RUNTIME_STATS "RUNTIME_STATS" OFF) -option(BSYMBOLIC_FUNCTIONS "Link with -Bsymbolic-functions to reduce call overhead in shared libraries (Linux)" ON) +option(BSYMBOLIC "Link with -Bsymbolic to reduce call overhead in shared libraries (Linux)" ON) # development-specific options option(CHECK_OLEAN_VERSION "Only load .olean files compiled with the current version of Lean" ON) set(LEAN_EXTRA_MAKE_OPTS "" CACHE STRING "extra options to lean --make") -set(MINGW_LOCAL_DIR "C:/msys64/mingw64/bin" CACHE STRING "where to find MSYS2 required DLLs and binaries") +set(LEANC_CC "cc" CACHE STRING "C compiler to use in `leanc`") if ("${FAKE_FREE}" MATCHES "ON") set(LEAN_EXTRA_CXX_FLAGS "${LEAN_EXTRA_CXX_FLAGS} -D LEAN_FAKE_FREE") @@ -283,10 +281,23 @@ else() set(LEANC_STATIC_LINKER_FLAGS "-Wl,--start-group -lleancpp -lLean -Wl,--end-group -Wl,--start-group -lInit -lStd -lleanrt -Wl,--end-group") endif() +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + set(LEANC_STATIC_LINKER_FLAGS "${LEANC_STATIC_LINKER_FLAGS} -lc++") + set(LEANSHARED_LINKER_FLAGS "${LEANSHARED_LINKER_FLAGS} -lc++") + set(LEAN_EXE_LINKER_FLAGS "${LEAN_EXE_LINKER_FLAGS} -lc++") +else() + set(LEANC_STATIC_LINKER_FLAGS "${LEANC_STATIC_LINKER_FLAGS} -lstdc++") + set(LEANSHARED_LINKER_FLAGS "${LEANSHARED_LINKER_FLAGS} -lstdc++") + set(LEAN_EXE_LINKER_FLAGS "${LEAN_EXE_LINKER_FLAGS} -lstdc++") +endif() + +set(LEANC_STATIC_LINKER_FLAGS "${LEANC_STATIC_LINKER_FLAGS} -lm") +set(LEANSHARED_LINKER_FLAGS "${LEANSHARED_LINKER_FLAGS} -lm") + if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") - if(BSYMBOLIC_FUNCTIONS) - set(LEANC_SHARED_LINKER_FLAGS "${LEANC_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic-functions") - set(LEANSHARED_LINKER_FLAGS "${LEANSHARED_LINKER_FLAGS} -Wl,-Bsymbolic-functions") + if(BSYMBOLIC) + set(LEANC_SHARED_LINKER_FLAGS "${LEANC_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic") + set(LEANSHARED_LINKER_FLAGS "${LEANSHARED_LINKER_FLAGS} -Wl,-Bsymbolic") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -ftls-model=initial-exec") set(LEANC_EXTRA_FLAGS "${LEANC_EXTRA_FLAGS} -fPIC") @@ -437,37 +448,33 @@ else() endif() # Escape for `make`. Yes, twice. -string(REPLACE "$" "$$$$" CMAKE_EXE_LINKER_FLAGS_MAKE "${CMAKE_EXE_LINKER_FLAGS}") +string(REPLACE "$" "$$" CMAKE_EXE_LINKER_FLAGS_MAKE "${CMAKE_EXE_LINKER_FLAGS}") +string(REPLACE "$" "$$" CMAKE_EXE_LINKER_FLAGS_MAKE_MAKE "${CMAKE_EXE_LINKER_FLAGS_MAKE}") configure_file(${LEAN_SOURCE_DIR}/stdlib.make.in ${CMAKE_BINARY_DIR}/stdlib.make) add_custom_target(make_stdlib ALL WORKING_DIRECTORY ${LEAN_SOURCE_DIR} - # needed for linking `leanpkg` - DEPENDS leancpp leanrt_initial-exec # The actual rule is in a separate makefile because we want to prefix it with '+' to use the Make job server # for a parallelized nested build, but CMake doesn't let us do that. # We use `lean` from the previous stage, but `leanc`, headers, etc. from the current stage - COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make leanshared $,MORE_LEANMAKE_OPTS=C_ONLY=1\ C_OUT=../stdlib/,Leanpkg> + COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make Init Std Lean VERBATIM) -add_library(Init STATIC IMPORTED) -set_target_properties(Init PROPERTIES - IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/lib/lean/libInit.a) -add_dependencies(Init make_stdlib) +# We declare these as separate custom targets so they use separate `make` invocations, which makes `make` recompute which dependencies +# (e.g. `libLean.a`) are now newer than the target file -add_library(Std STATIC IMPORTED) -set_target_properties(Std PROPERTIES - IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/lib/lean/libStd.a) -add_dependencies(Std make_stdlib) +add_custom_target(leanshared ALL + WORKING_DIRECTORY ${LEAN_SOURCE_DIR} + DEPENDS make_stdlib leancpp leanrt_initial-exec + COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make leanshared + VERBATIM) -add_library(Lean STATIC IMPORTED) -set_target_properties(Lean PROPERTIES - IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/lib/lean/libLean.a) -add_dependencies(Lean make_stdlib) - -add_library(leanshared SHARED IMPORTED) -set_target_properties(leanshared PROPERTIES - IMPORTED_LOCATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX}) -add_dependencies(leanshared make_stdlib) +if(${STAGE} GREATER 0) + add_custom_target(leanpkg ALL + WORKING_DIRECTORY ${LEAN_SOURCE_DIR} + DEPENDS leanshared + COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make Leanpkg + VERBATIM) +endif() if(PREV_STAGE) add_custom_target(update-stage0 diff --git a/stage0/src/Init/Conv.lean b/stage0/src/Init/Conv.lean index a8db0ee461..704abd6a62 100644 --- a/stage0/src/Init/Conv.lean +++ b/stage0/src/Init/Conv.lean @@ -21,14 +21,19 @@ syntax (name := conv) "conv " (" at " ident)? (" in " term)? " => " convSeq : ta syntax (name := lhs) "lhs" : conv syntax (name := rhs) "rhs" : conv syntax (name := whnf) "whnf" : conv +/-- Put term in normal form, this tactic is ment for debugging purposes only -/ +syntax (name := reduce) "reduce" : conv syntax (name := congr) "congr" : conv syntax (name := arg) "arg " num : conv syntax (name := ext) "ext " (colGt ident)* : conv syntax (name := change) "change " term : conv +syntax (name := delta) "delta " ident : conv syntax (name := pattern) "pattern " term : conv syntax (name := rewrite) "rewrite " rwRuleSeq : conv syntax (name := erewrite) "erewrite " rwRuleSeq : conv syntax (name := simp) "simp " ("(" &"config" " := " term ")")? (&"only ")? ("[" (simpStar <|> simpErase <|> simpLemma),* "]")? : conv +syntax (name := simpMatch) "simpMatch " : conv + /-- Execute the given tactic block without converting `conv` goal into a regular goal -/ syntax (name := nestedTacticCore) "tactic'" " => " tacticSeq : conv /-- Focus, convert the `conv` goal `⊢ lhs` into a regular goal `⊢ lhs = rhs`, and then execute the given tactic block. -/ diff --git a/stage0/src/Init/Data/Nat/Basic.lean b/stage0/src/Init/Data/Nat/Basic.lean index ccd4399537..dd9205c92a 100644 --- a/stage0/src/Init/Data/Nat/Basic.lean +++ b/stage0/src/Init/Data/Nat/Basic.lean @@ -44,6 +44,9 @@ namespace Nat @[simp] theorem zero_eq : Nat.zero = 0 := rfl +@[simp] theorem add_eq : Nat.add x y = x + y := + rfl + @[simp] protected theorem zero_add : ∀ (n : Nat), 0 + n = n | 0 => rfl | n+1 => congrArg succ (Nat.zero_add n) diff --git a/stage0/src/Init/Notation.lean b/stage0/src/Init/Notation.lean index 7226f97094..63d4861505 100644 --- a/stage0/src/Init/Notation.lean +++ b/stage0/src/Init/Notation.lean @@ -316,6 +316,8 @@ macro dot:("·" <|> ".") ts:tacticSeq : tactic => `(tactic| {%$dot ($ts:tacticSe macro "rfl" : tactic => `(exact rfl) /-- `admit` is a shorthand for `exact sorry`. -/ macro "admit" : tactic => `(exact sorry) +/-- The `sorry` tactic isnxo a shorthand for `exact sorry`. -/ +macro "sorry" : tactic => `(exact sorry) macro "inferInstance" : tactic => `(exact inferInstance) syntax locationWildcard := "*" @@ -362,6 +364,11 @@ syntax simpStar := "*" syntax (name := simp) "simp " ("(" &"config" " := " term ")")? (&"only ")? ("[" (simpStar <|> simpErase <|> simpLemma),* "]")? (location)? : tactic syntax (name := simpAll) "simp_all " ("(" &"config" " := " term ")")? (&"only ")? ("[" (simpErase <|> simpLemma),* "]")? : tactic +/-- + Delta expand the given definition. + This is a low-level tactic, it will expose how recursive definitions have been compiled by Lean. -/ +syntax (name := delta) "delta " ident (location)? : tactic + -- Auxiliary macro for lifting have/suffices/let/... -- It makes sure the "continuation" `?_` is the main goal after refining macro "refineLift " e:term : tactic => `(focus (refine noImplicitLambda% $e; rotateRight)) @@ -408,6 +415,14 @@ syntax "trivial" : tactic syntax (name := split) "split " (colGt term)? (location)? : tactic +/-- +The tactic `specialize h a₁ ... aₙ` works on local hypothesis `h`. +The premises of this hypothesis, either universal quantifications or non-dependent implications, +are instantiated by concrete terms coming either from arguments `a₁` ... `aₙ`. +The tactic adds a new hypothesis with the same name `h := h a₁ ... aₙ` and tries to clear the previous one. +-/ +syntax (name := specialize) "specialize " term : tactic + macro_rules | `(tactic| trivial) => `(tactic| assumption) macro_rules | `(tactic| trivial) => `(tactic| rfl) macro_rules | `(tactic| trivial) => `(tactic| contradiction) diff --git a/stage0/src/Lean/Class.lean b/stage0/src/Lean/Class.lean index b07d4a697d..d860361909 100644 --- a/stage0/src/Lean/Class.lean +++ b/stage0/src/Lean/Class.lean @@ -69,7 +69,7 @@ def isOutParam (e : Expr) : Bool := private partial def checkOutParam : Nat → Array FVarId → Expr → Except String Bool | i, outParams, Expr.forallE _ d b _ => if isOutParam d then - let fvarId := Name.mkNum `_fvar outParams.size + let fvarId := { name := Name.mkNum `_fvar outParams.size } let outParams := outParams.push fvarId let fvar := mkFVar fvarId let b := b.instantiate1 fvar diff --git a/stage0/src/Lean/Compiler/Util.lean b/stage0/src/Lean/Compiler/Util.lean index 6e193ee79f..c522e95f69 100644 --- a/stage0/src/Lean/Compiler/Util.lean +++ b/stage0/src/Lean/Compiler/Util.lean @@ -31,12 +31,12 @@ instance : AndThen Visitor where @[inline] def skip : Visitor := id -@[inline] def visitFVar (x y : Name) : Visitor +@[inline] def visitFVar (x y : FVarId) : Visitor | d@{result := false, ..} => d | {found := false, result := true} => {found := x == y, result := true} | {found := true, result := true} => {found := true, result := x != y} -def visit (x : Name) : Expr → Visitor +def visit (x : FVarId) : Expr → Visitor | Expr.fvar y _ => visitFVar y x | Expr.app f a _ => visit x a >> visit x f | Expr.lam _ d b _ => visit x d >> visit x b @@ -51,7 +51,7 @@ end atMostOnce open atMostOnce (visit) in /-- Return true iff the free variable with id `x` occurs at most once in `e` -/ @[export lean_at_most_once] -def atMostOnce (e : Expr) (x : Name) : Bool := +def atMostOnce (e : Expr) (x : FVarId) : Bool := let {result := result, ..} := visit x e {found := false, result := true} result diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index 0882e24175..9d4de6b6ba 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -219,7 +219,7 @@ private def elabCommandUsing (s : State) (stx : Syntax) : List (KeyedDeclsAttrib | [] => throwError "unexpected syntax{indentD stx}" | (elabFn::elabFns) => catchInternalId unsupportedSyntaxExceptionId - (withInfoTreeContext (mkInfoTree := mkInfoTree elabFn.decl stx) <| elabFn.value stx) + (withInfoTreeContext (mkInfoTree := mkInfoTree elabFn.declName stx) <| elabFn.value stx) (fun _ => do set s; elabCommandUsing s stx elabFns) /- Elaborate `x` with `stx` on the macro stack -/ diff --git a/stage0/src/Lean/Elab/Deriving/BEq.lean b/stage0/src/Lean/Elab/Deriving/BEq.lean index 7357f952f7..ac3caf9193 100644 --- a/stage0/src/Lean/Elab/Deriving/BEq.lean +++ b/stage0/src/Lean/Elab/Deriving/BEq.lean @@ -97,10 +97,24 @@ private def mkBEqInstanceCmds (declNames : Array Name) : TermElabM (Array Syntax trace[Elab.Deriving.beq] "\n{cmds}" return cmds +private def mkBEqEnumFun (ctx : Context) (name : Name) : TermElabM Syntax := do + let auxFunName ← ctx.auxFunNames[0] + `(private def $(mkIdent auxFunName):ident (x y : $(mkIdent name)) : Bool := x.toCtorIdx == y.toCtorIdx) + +private def mkBEqEnumCmd (name : Name): TermElabM (Array Syntax) := do + let ctx ← mkContext "beq" name + let cmds := #[← mkBEqEnumFun ctx name] ++ (← mkInstanceCmds ctx `BEq #[name]) + trace[Elab.Deriving.beq] "\n{cmds}" + return cmds + open Command def mkBEqInstanceHandler (declNames : Array Name) : CommandElabM Bool := do - if (← declNames.allM isInductive) && declNames.size > 0 then + if declNames.size == 1 && (← isEnumType declNames[0]) then + let cmds ← liftTermElabM none <| mkBEqEnumCmd declNames[0] + cmds.forM elabCommand + return true + else if (← declNames.allM isInductive) && declNames.size > 0 then let cmds ← liftTermElabM none <| mkBEqInstanceCmds declNames cmds.forM elabCommand return true diff --git a/stage0/src/Lean/Elab/Deriving/DecEq.lean b/stage0/src/Lean/Elab/Deriving/DecEq.lean index 45b831fa24..688c90b9e0 100644 --- a/stage0/src/Lean/Elab/Deriving/DecEq.lean +++ b/stage0/src/Lean/Elab/Deriving/DecEq.lean @@ -95,17 +95,88 @@ def mkDecEqCmds (indVal : InductiveVal) : TermElabM (Array Syntax) := do open Command +def mkDecEq (declName : Name) : CommandElabM Bool := do + let indVal ← getConstInfoInduct declName + if indVal.isNested then + return false -- nested inductive types are not supported yet + else + let cmds ← liftTermElabM none <| mkDecEqCmds indVal + cmds.forM elabCommand + return true + +partial def mkEnumOfNat (declName : Name) : MetaM Unit := do + let indVal ← getConstInfoInduct declName + let enumType := mkConst declName + let ctors := indVal.ctors.toArray + withLocalDeclD `n (mkConst ``Nat) fun n => do + let cond := mkConst ``cond [levelZero] + let rec mkDecTree (low high : Nat) : Expr := + if low + 1 == high then + mkConst ctors[low] + else if low + 2 == high then + mkApp4 cond enumType (mkApp2 (mkConst ``Nat.beq) n (mkRawNatLit low)) (mkConst ctors[low]) (mkConst ctors[low+1]) + else + let mid := (low + high)/2 + let lowBranch := mkDecTree low mid + let highBranch := mkDecTree mid high + mkApp4 cond enumType (mkApp2 (mkConst ``Nat.ble) (mkRawNatLit mid) n) highBranch lowBranch + let value ← mkLambdaFVars #[n] (mkDecTree 0 ctors.size) + let type ← mkArrow (mkConst ``Nat) enumType + addAndCompile <| Declaration.defnDecl { + name := Name.mkStr declName "ofNat" + levelParams := [] + safety := DefinitionSafety.safe + hints := ReducibilityHints.abbrev + value, type + } + +def mkEnumOfNatThm (declName : Name) : MetaM Unit := do + let indVal ← getConstInfoInduct declName + let toCtorIdx := mkConst (Name.mkStr declName "toCtorIdx") + let ofNat := mkConst (Name.mkStr declName "ofNat") + let enumType := mkConst declName + let eqEnum := mkApp (mkConst ``Eq [levelOne]) enumType + let rflEnum := mkApp (mkConst ``Eq.refl [levelOne]) enumType + let ctors := indVal.ctors + withLocalDeclD `x enumType fun x => do + let resultType := mkApp2 eqEnum (mkApp ofNat (mkApp toCtorIdx x)) x + let motive ← mkLambdaFVars #[x] resultType + let casesOn := mkConst (mkCasesOnName declName) [levelZero] + let mut value := mkApp2 casesOn motive x + for ctor in ctors do + value := mkApp value (mkApp rflEnum (mkConst ctor)) + value ← mkLambdaFVars #[x] value + let type ← mkForallFVars #[x] resultType + addAndCompile <| Declaration.thmDecl { + name := Name.mkStr declName "ofNat_toCtorIdx" + levelParams := [] + value, type + } + +def mkDecEqEnum (declName : Name) : CommandElabM Unit := do + liftTermElabM none <| mkEnumOfNat declName + liftTermElabM none <| mkEnumOfNatThm declName + let ofNatIdent := mkIdent (Name.mkStr declName "ofNat") + let auxThmIdent := mkIdent (Name.mkStr declName "ofNat_toCtorIdx") + let indVal ← getConstInfoInduct declName + let cmd ← `( + instance : DecidableEq $(mkIdent declName) := + fun x y => + if h : x.toCtorIdx = y.toCtorIdx then + isTrue (by have aux := congrArg $ofNatIdent h; rw [$auxThmIdent:ident, $auxThmIdent:ident] at aux; assumption) + else + isFalse fun h => by subst h; contradiction + ) + elabCommand cmd + def mkDecEqInstanceHandler (declNames : Array Name) : CommandElabM Bool := do if declNames.size != 1 then return false -- mutually inductive types are not supported yet + else if (← isEnumType declNames[0]) then + mkDecEqEnum declNames[0] + return true else - let indVal ← getConstInfoInduct declNames[0] - if indVal.isNested then - return false -- nested inductive types are not supported yet - else - let cmds ← liftTermElabM none <| mkDecEqCmds indVal - cmds.forM elabCommand - return true + mkDecEq declNames[0] builtin_initialize registerBuiltinDerivingHandler `DecidableEq mkDecEqInstanceHandler diff --git a/stage0/src/Lean/Elab/Deriving/Inhabited.lean b/stage0/src/Lean/Elab/Deriving/Inhabited.lean index 3cd3ae4bf7..99f0edc1d5 100644 --- a/stage0/src/Lean/Elab/Deriving/Inhabited.lean +++ b/stage0/src/Lean/Elab/Deriving/Inhabited.lean @@ -10,7 +10,7 @@ open Command open Meta private abbrev IndexSet := Std.RBTree Nat compare -private abbrev LocalInst2Index := NameMap Nat +private abbrev LocalInst2Index := FVarIdMap Nat private def implicitBinderF := Parser.Term.implicitBinder private def instBinderF := Parser.Term.instBinder diff --git a/stage0/src/Lean/Elab/InfoTree.lean b/stage0/src/Lean/Elab/InfoTree.lean index 00d9e99665..57f1752881 100644 --- a/stage0/src/Lean/Elab/InfoTree.lean +++ b/stage0/src/Lean/Elab/InfoTree.lean @@ -243,7 +243,7 @@ def Info.updateContext? : Option ContextInfo → Info → Option ContextInfo partial def InfoTree.format (tree : InfoTree) (ctx? : Option ContextInfo := none) : IO Format := do match tree with | ofJson j => return toString j - | hole id => return toString id + | hole id => return toString id.name | context i t => format t i | node i cs => match ctx? with | none => return "" diff --git a/stage0/src/Lean/Elab/Level.lean b/stage0/src/Lean/Elab/Level.lean index 50f64259a3..77215415f0 100644 --- a/stage0/src/Lean/Elab/Level.lean +++ b/stage0/src/Lean/Elab/Level.lean @@ -38,7 +38,7 @@ instance : MonadNameGenerator LevelElabM where setNGen ngen := modify fun s => { s with ngen := ngen } def mkFreshLevelMVar : LevelElabM Level := do - let mvarId ← mkFreshId + let mvarId ← mkFreshMVarId modify fun s => { s with mctx := s.mctx.addLevelMVarDecl mvarId } return mkLevelMVar mvarId diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index 4b0600b32e..75423a6085 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -406,7 +406,7 @@ def finalizePatternDecls (patternVarDecls : Array PatternVarDecl) : TermElabM (A decls := decls.push decl | PatternVarDecl.anonymousVar mvarId fvarId => let e ← instantiateMVars (mkMVar mvarId); - trace[Elab.match] "finalizePatternDecls: mvarId: {mvarId} := {e}, fvar: {mkFVar fvarId}" + trace[Elab.match] "finalizePatternDecls: mvarId: {mvarId.name} := {e}, fvar: {mkFVar fvarId}" match e with | Expr.mvar newMVarId _ => /- Metavariable was not assigned, or assigned to another metavariable. So, @@ -425,9 +425,9 @@ open Meta.Match (Pattern Pattern.var Pattern.inaccessible Pattern.ctor Pattern.a namespace ToDepElimPattern structure State where - found : NameSet := {} + found : FVarIdSet := {} localDecls : Array LocalDecl - newLocals : NameSet := {} + newLocals : FVarIdSet := {} abbrev M := StateRefT State TermElabM @@ -448,7 +448,7 @@ private def mkLocalDeclFor (mvar : Expr) : M Pattern := do match (← getExprMVarAssignment? mvarId) with | some val => return Pattern.inaccessible val | none => - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let type ← inferType mvar /- HACK: `fvarId` is not in the scope of `mvarId` If this generates problems in the future, we should update the metavariable declarations. -/ @@ -857,7 +857,7 @@ private def expandNonAtomicDiscrs? (matchStx : Syntax) : TermElabM (Option Synta else -- We use `foundFVars` to make sure the discriminants are distinct variables. -- See: code for computing "matchType" at `elabMatchTypeAndDiscrs` - let rec loop (discrs : List Syntax) (discrsNew : Array Syntax) (foundFVars : NameSet) := do + let rec loop (discrs : List Syntax) (discrsNew : Array Syntax) (foundFVars : FVarIdSet) := do match discrs with | [] => let discrs := Syntax.mkSep discrsNew (mkAtomFrom matchStx ", "); diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index d4f857d384..a6e7e96d8c 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.lean @@ -266,7 +266,7 @@ private def checkLetRecsToLiftTypes (funVars : Array Expr) (letRecsToLift : List namespace MutualClosure /- A mapping from FVarId to Set of FVarIds. -/ -abbrev UsedFVarsMap := NameMap NameSet +abbrev UsedFVarsMap := FVarIdMap FVarIdSet /- Create the `UsedFVarsMap` mapping that takes the variable id for the mutually recursive functions being defined to the set of @@ -369,7 +369,7 @@ private def getUsedFVarsMap : M UsedFVarsMap := do pure (← get).usedFVarsMap private def modifyUsedFVars (f : UsedFVarsMap → UsedFVarsMap) : M Unit := modify fun s => { s with usedFVarsMap := f s.usedFVarsMap } -- merge s₂ into s₁ -private def merge (s₁ s₂ : NameSet) : M NameSet := +private def merge (s₁ s₂ : FVarIdSet) : M FVarIdSet := s₂.foldM (init := s₁) fun s₁ k => do if s₁.contains k then pure s₁ @@ -408,7 +408,7 @@ def run (letRecFVarIds : List FVarId) (usedFVarsMap : UsedFVarsMap) : UsedFVarsM end FixPoint -abbrev FreeVarMap := NameMap (Array FVarId) +abbrev FreeVarMap := FVarIdMap (Array FVarId) private def mkFreeVarMap (mctx : MetavarContext) (sectionVars : Array Expr) (mainFVarIds : Array FVarId) @@ -524,7 +524,7 @@ private def mkLetRecClosures (letRecsToLift : List LetRecToLift) (freeVarMap : F letRecsToLift.mapM fun toLift => mkLetRecClosureFor toLift (freeVarMap.find? toLift.fvarId).get! /- Mapping from FVarId of mutually recursive functions being defined to "closure" expression. -/ -abbrev Replacement := NameMap Expr +abbrev Replacement := FVarIdMap Expr def insertReplacementForMainFns (r : Replacement) (sectionVars : Array Expr) (mainHeaders : Array DefViewElabHeader) (mainFVars : Array Expr) : Replacement := mainFVars.size.fold (init := r) fun i r => diff --git a/stage0/src/Lean/Elab/PatternVar.lean b/stage0/src/Lean/Elab/PatternVar.lean index 8e576dedc6..68fbcec777 100644 --- a/stage0/src/Lean/Elab/PatternVar.lean +++ b/stage0/src/Lean/Elab/PatternVar.lean @@ -18,7 +18,7 @@ inductive PatternVar where instance : ToString PatternVar := ⟨fun | PatternVar.localVar x => toString x - | PatternVar.anonymousVar mvarId => s!"?m{mvarId}"⟩ + | PatternVar.anonymousVar mvarId => s!"?m{mvarId.name}"⟩ /-- Create an auxiliary Syntax node wrapping a fresh metavariable id. @@ -30,7 +30,7 @@ private def mkMVarSyntax : TermElabM Syntax := do /-- Given a syntax node constructed using `mkMVarSyntax`, return its MVarId -/ def getMVarSyntaxMVarId (stx : Syntax) : MVarId := - stx[0].getKind + { name := stx[0].getKind } /- Patterns define new local variables. diff --git a/stage0/src/Lean/Elab/Tactic.lean b/stage0/src/Lean/Elab/Tactic.lean index 1f15431c48..a69cca32ce 100644 --- a/stage0/src/Lean/Elab/Tactic.lean +++ b/stage0/src/Lean/Elab/Tactic.lean @@ -16,3 +16,4 @@ import Lean.Elab.Tactic.Simp import Lean.Elab.Tactic.BuiltinTactic import Lean.Elab.Tactic.Split import Lean.Elab.Tactic.Conv +import Lean.Elab.Tactic.Delta diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index dbea565d78..57e1f046c5 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -141,7 +141,7 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List (Key | [] => throwErrorAt stx "unexpected syntax {indentD stx}" | evalFn::evalFns => do try - withReader ({ · with elaborator := evalFn.decl }) <| withTacticInfoContext stx <| evalFn.value stx + withReader ({ · with elaborator := evalFn.declName }) <| withTacticInfoContext stx <| evalFn.value stx catch | ex@(Exception.error _ _) => match evalFns with @@ -162,7 +162,7 @@ mutual | m::ms => do let scp ← getCurrMacroScope try - withReader ({ · with elaborator := m.decl }) do + withReader ({ · with elaborator := m.declName }) do withTacticInfoContext stx do let stx' ← adaptMacro m.value stx evalTactic stx' diff --git a/stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean b/stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean index 9d2f7ad252..589d8cd55a 100644 --- a/stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean +++ b/stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean @@ -181,7 +181,7 @@ private def sortFVarIds (fvarIds : Array FVarId) : TacticM (Array FVarId) := | some d₁, some d₂ => d₁.index > d₂.index | some _, none => false | none, some _ => true - | none, none => Name.quickLt fvarId₁ fvarId₂ + | none, none => Name.quickLt fvarId₁.name fvarId₂.name @[builtinTactic Lean.Parser.Tactic.clear] def evalClear : Tactic := fun stx => match stx with diff --git a/stage0/src/Lean/Elab/Tactic/Conv.lean b/stage0/src/Lean/Elab/Tactic/Conv.lean index 637998311e..42feba3db7 100644 --- a/stage0/src/Lean/Elab/Tactic/Conv.lean +++ b/stage0/src/Lean/Elab/Tactic/Conv.lean @@ -9,3 +9,4 @@ import Lean.Elab.Tactic.Conv.Rewrite import Lean.Elab.Tactic.Conv.Change import Lean.Elab.Tactic.Conv.Simp import Lean.Elab.Tactic.Conv.Pattern +import Lean.Elab.Tactic.Conv.Delta diff --git a/stage0/src/Lean/Elab/Tactic/Conv/Basic.lean b/stage0/src/Lean/Elab/Tactic/Conv/Basic.lean index 8cbab09c70..93114db7df 100644 --- a/stage0/src/Lean/Elab/Tactic/Conv/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Conv/Basic.lean @@ -3,6 +3,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Meta.Reduce import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Replace import Lean.Elab.Tactic.Basic @@ -72,8 +73,11 @@ def changeLhs (lhs' : Expr) : TacticM Unit := do @[builtinTactic Lean.Parser.Tactic.Conv.whnf] def evalWhnf : Tactic := fun stx => withMainContext do - let lhs ← getLhs - changeLhs (← whnf lhs) + changeLhs (← whnf (← getLhs)) + +@[builtinTactic Lean.Parser.Tactic.Conv.reduce] def evalReduce : Tactic := fun stx => + withMainContext do + changeLhs (← reduce (← getLhs)) @[builtinTactic Lean.Parser.Tactic.Conv.convSeq1Indented] def evalConvSeq1Indented : Tactic := fun stx => do evalTacticSeq1Indented stx diff --git a/stage0/src/Lean/Elab/Tactic/Conv/Delta.lean b/stage0/src/Lean/Elab/Tactic/Conv/Delta.lean new file mode 100644 index 0000000000..032618c08a --- /dev/null +++ b/stage0/src/Lean/Elab/Tactic/Conv/Delta.lean @@ -0,0 +1,17 @@ +/- +Copyright (c) 2021 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Elab.Tactic.Delta +import Lean.Elab.Tactic.Conv.Basic + +namespace Lean.Elab.Tactic.Conv +open Meta + +@[builtinTactic Lean.Parser.Tactic.Conv.delta] def evalDelta : Tactic := fun stx => withMainContext do + let declName ← resolveGlobalConstNoOverload stx[1] + let lhsNew ← deltaExpand (← getLhs) (. == declName) + changeLhs lhsNew + +end Lean.Elab.Tactic.Conv diff --git a/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean b/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean index 2c8267c569..5797efd983 100644 --- a/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean +++ b/stage0/src/Lean/Elab/Tactic/Conv/Simp.lean @@ -4,18 +4,23 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Elab.Tactic.Simp +import Lean.Elab.Tactic.Split import Lean.Elab.Tactic.Conv.Basic namespace Lean.Elab.Tactic.Conv open Meta -@[builtinTactic Lean.Parser.Tactic.Conv.simp] def evalSimp : Tactic := fun stx => withMainContext do - let { ctx, .. } ← mkSimpContext stx (eraseLocal := false) - let lhs ← getLhs - let result ← simp lhs ctx +def applySimpResult (result : Simp.Result) : TacticM Unit := do if result.proof?.isNone then changeLhs result.expr else updateLhs result.expr (← result.getProof) +@[builtinTactic Lean.Parser.Tactic.Conv.simp] def evalSimp : Tactic := fun stx => withMainContext do + let { ctx, .. } ← mkSimpContext stx (eraseLocal := false) + applySimpResult (← simp (← getLhs) ctx) + +@[builtinTactic Lean.Parser.Tactic.Conv.simpMatch] def evalSimpMatch : Tactic := fun stx => withMainContext do + applySimpResult (← Split.simpMatch (← getLhs)) + end Lean.Elab.Tactic.Conv diff --git a/stage0/src/Lean/Elab/Tactic/Delta.lean b/stage0/src/Lean/Elab/Tactic/Delta.lean new file mode 100644 index 0000000000..158d12abef --- /dev/null +++ b/stage0/src/Lean/Elab/Tactic/Delta.lean @@ -0,0 +1,37 @@ +/- +Copyright (c) 2021 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Meta.Tactic.Delta +import Lean.Elab.Tactic.Basic +import Lean.Elab.Tactic.Location + +namespace Lean.Elab.Tactic +open Meta + +def deltaLocalDecl (declName : Name) (fvarId : FVarId) : TacticM Unit := do + let mvarId ← getMainGoal + let localDecl ← getLocalDecl fvarId + let typeNew ← deltaExpand localDecl.type (. == declName) + if typeNew == localDecl.type then + throwTacticEx `delta mvarId m!"did not delta reduce '{declName}' at '{localDecl.userName}'" + replaceMainGoal [← replaceLocalDeclDefEq mvarId fvarId typeNew] + +def deltaTarget (declName : Name) : TacticM Unit := do + let mvarId ← getMainGoal + let target ← getMainTarget + let targetNew ← deltaExpand target (. == declName) + if targetNew == target then + throwTacticEx `delta mvarId m!"did not delta reduce '{declName}'" + replaceMainGoal [← replaceTargetDefEq mvarId targetNew] + +/-- + "delta " ident (location)? +-/ +@[builtinTactic Lean.Parser.Tactic.delta] def evalDelta : Tactic := fun stx => do + let declName ← resolveGlobalConstNoOverload stx[1] + let loc := expandOptLocation stx[2] + withLocation loc (deltaLocalDecl declName) (deltaTarget declName) (throwTacticEx `delta . m!"did not delta reduce '{declName}'") + +end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean index a1ca6102d4..244538bf39 100644 --- a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean @@ -98,6 +98,21 @@ def refineCore (stx : Syntax) (tagSuffix : Name) (allowNaturalHoles : Bool) : Ta | `(tactic| refine' $e) => refineCore e `refine' (allowNaturalHoles := true) | _ => throwUnsupportedSyntax +@[builtinTactic «specialize»] def evalSpecialize : Tactic := fun stx => withMainContext do + match stx with + | `(tactic| specialize $e:term) => + let (e, mvarIds') ← elabTermWithHoles e (← getMainTarget) `specialize (allowNaturalHoles := true) + let h := e.getAppFn + if h.isFVar then + let localDecl ← getLocalDecl h.fvarId! + let mvarId ← assert (← getMainGoal) localDecl.userName (← inferType e).headBeta e + let (_, mvarId) ← intro1P mvarId + let mvarId ← tryClear mvarId h.fvarId! + replaceMainGoal (mvarId :: mvarIds') + else + throwError "'specialize' requires a term of the form `h x_1 .. x_n` where `h` appears in the local context" + | _ => throwUnsupportedSyntax + /-- Given a tactic ``` diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index 0dad59368b..e8e431d50f 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -376,7 +376,7 @@ private def generalizeTargets (exprs : Array Expr) : TacticM (Array Expr) := do appendGoals result.others.toList where checkTargets (targets : Array Expr) : MetaM Unit := do - let mut foundFVars : NameSet := {} + let mut foundFVars : FVarIdSet := {} for target in targets do unless target.isFVar do throwError "index in target's type is not a variable (consider using the `cases` tactic instead){indentExpr target}" diff --git a/stage0/src/Lean/Elab/Tactic/Location.lean b/stage0/src/Lean/Elab/Tactic/Location.lean index 4cb5ef721e..ead32d6082 100644 --- a/stage0/src/Lean/Elab/Tactic/Location.lean +++ b/stage0/src/Lean/Elab/Tactic/Location.lean @@ -3,6 +3,8 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Elab.Tactic.Basic + namespace Lean.Elab.Tactic inductive Location where @@ -30,4 +32,24 @@ def expandOptLocation (stx : Syntax) : Location := else expandLocation stx[0] +open Meta + +def withLocation (loc : Location) (atLocal : FVarId → TacticM Unit) (atTarget : TacticM Unit) (failed : MVarId → TacticM Unit) : TacticM Unit := do + match loc with + | Location.targets hyps type => + hyps.forM fun userName => withMainContext do + let localDecl ← getLocalDeclFromUserName userName + atLocal localDecl.fvarId + if type then + atTarget + | Location.wildcard => + let worked ← tryTactic <| withMainContext <| atTarget + withMainContext do + let mut worked := worked + -- We must traverse backwards because the given `atLocal` may use the revert/intro idiom + for fvarId in (← getLCtx).getFVarIds.reverse do + worked := worked || (← tryTactic <| withMainContext <| atLocal fvarId) + unless worked do + failed (← getMainGoal) + end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/Rewrite.lean b/stage0/src/Lean/Elab/Tactic/Rewrite.lean index 293f771a65..a23e211363 100644 --- a/stage0/src/Lean/Elab/Tactic/Rewrite.lean +++ b/stage0/src/Lean/Elab/Tactic/Rewrite.lean @@ -18,7 +18,7 @@ def rewriteTarget (stx : Syntax) (symm : Bool) (mode : TransparencyMode) : Tacti let mvarId' ← replaceTargetEq (← getMainGoal) r.eNew r.eqProof replaceMainGoal (mvarId' :: r.mvarIds) -def rewriteLocalDeclFVarId (stx : Syntax) (symm : Bool) (fvarId : FVarId) (mode : TransparencyMode) : TacticM Unit := do +def rewriteLocalDecl (stx : Syntax) (symm : Bool) (fvarId : FVarId) (mode : TransparencyMode) : TacticM Unit := do Term.withSynthesize <| withMainContext do let e ← elabTerm stx none true let localDecl ← getLocalDecl fvarId @@ -26,22 +26,6 @@ def rewriteLocalDeclFVarId (stx : Syntax) (symm : Bool) (fvarId : FVarId) (mode let replaceResult ← replaceLocalDecl (← getMainGoal) fvarId rwResult.eNew rwResult.eqProof replaceMainGoal (replaceResult.mvarId :: rwResult.mvarIds) -def rewriteLocalDecl (stx : Syntax) (symm : Bool) (userName : Name) (mode : TransparencyMode) : TacticM Unit := - withMainContext do - let localDecl ← getLocalDeclFromUserName userName - rewriteLocalDeclFVarId stx symm localDecl.fvarId mode - -def rewriteAll (stx : Syntax) (symm : Bool) (mode : TransparencyMode) : TacticM Unit := do - let worked ← tryTactic <| rewriteTarget stx symm mode - withMainContext do - let mut worked := worked - -- We must traverse backwards because `replaceLocalDecl` uses the revert/intro idiom - for fvarId in (← getLCtx).getFVarIds.reverse do - worked := worked || (← tryTactic <| rewriteLocalDeclFVarId stx symm fvarId mode) - unless worked do - let mvarId ← getMainGoal - throwTacticEx `rewrite mvarId "did not find instance of the pattern in the current goal" - def withRWRulesSeq (token : Syntax) (rwRulesSeqStx : Syntax) (x : (symm : Bool) → (term : Syntax) → TacticM Unit) : TacticM Unit := do let lbrak := rwRulesSeqStx[0] let rules := rwRulesSeqStx[1].getArgs @@ -63,12 +47,10 @@ def withRWRulesSeq (token : Syntax) (rwRulesSeqStx : Syntax) (x : (symm : Bool) def evalRewriteCore (mode : TransparencyMode) : Tactic := fun stx => do let loc := expandOptLocation stx[2] withRWRulesSeq stx[0] stx[1] fun symm term => do - match loc with - | Location.targets hyps type => - hyps.forM (rewriteLocalDecl term symm · mode) - if type then - rewriteTarget term symm mode - | Location.wildcard => rewriteAll term symm mode + withLocation loc + (rewriteLocalDecl term symm · mode) + (rewriteTarget term symm mode) + (throwTacticEx `rewrite . "did not find instance of the pattern in the current goal") @[builtinTactic Lean.Parser.Tactic.rewriteSeq] def evalRewriteSeq : Tactic := evalRewriteCore TransparencyMode.instances diff --git a/stage0/src/Lean/Elab/Tactic/Simp.lean b/stage0/src/Lean/Elab/Tactic/Simp.lean index 71f6ce7213..5976314565 100644 --- a/stage0/src/Lean/Elab/Tactic/Simp.lean +++ b/stage0/src/Lean/Elab/Tactic/Simp.lean @@ -121,7 +121,7 @@ where else Term.elabCDotFunctionAlias? simpArgTerm -abbrev FVarIdToLemmaId := NameMap Name +abbrev FVarIdToLemmaId := FVarIdMap Name -- TODO: move? private def getPropHyps : MetaM (Array FVarId) := do diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 624ae3ee98..057301141a 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -483,7 +483,7 @@ def logUnassignedUsingErrorInfos (pendingMVarIds : Array MVarId) (extraMsg? : Op let s ← get let hasOtherErrors := s.messages.hasErrors let mut hasNewErrors := false - let mut alreadyVisited : NameSet := {} + let mut alreadyVisited : MVarIdSet := {} for mvarErrorInfo in s.mvarErrorInfos do let mvarId := mvarErrorInfo.mvarId unless alreadyVisited.contains mvarId do @@ -1032,7 +1032,7 @@ private def elabUsingElabFnsAux (s : SavedState) (stx : Syntax) (expectedType? : | (elabFn::elabFns) => try -- record elaborator in info tree, but only when not backtracking to other elaborators (outer `try`) - withInfoContext' (mkInfo := mkTermInfo elabFn.decl (expectedType? := expectedType?) stx) + withInfoContext' (mkInfo := mkTermInfo elabFn.declName (expectedType? := expectedType?) stx) (try elabFn.value stx expectedType? catch ex => match ex with diff --git a/stage0/src/Lean/Elab/Util.lean b/stage0/src/Lean/Elab/Util.lean index 40c6f70197..0795876005 100644 --- a/stage0/src/Lean/Elab/Util.lean +++ b/stage0/src/Lean/Elab/Util.lean @@ -119,7 +119,7 @@ def expandMacroImpl? (env : Environment) : Syntax → MacroM (Option (Name × Sy for e in macroAttribute.getEntries env stx.getKind do try let stx' ← e.value stx - return (e.decl, stx') + return (e.declName, stx') catch | Macro.Exception.unsupportedSyntax => pure () | ex => throw ex diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index ff34fcd682..1239b26418 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -157,8 +157,27 @@ def Expr.mkDataForLet (h : UInt64) (looseBVarRange : Nat) (approxDepth : UInt8) open Expr -abbrev MVarId := Name -abbrev FVarId := Name +structure FVarId where + name : Name + deriving Inhabited, BEq, Hashable + +instance : Repr FVarId where + reprPrec n p := reprPrec n.name p + +def FVarIdSet := Std.RBTree FVarId (Name.quickCmp ·.name ·.name) + deriving Inhabited, EmptyCollection + +instance : ForIn m FVarIdSet FVarId := inferInstanceAs (ForIn _ (Std.RBTree ..) ..) + +def FVarIdHashSet := Std.HashSet FVarId + deriving Inhabited, EmptyCollection + +def FVarIdMap (α : Type) := Std.RBMap FVarId α (Name.quickCmp ·.name ·.name) + +instance : EmptyCollection (FVarIdMap α) := inferInstanceAs (EmptyCollection (Std.RBMap ..)) + +instance : Inhabited (FVarIdMap α) where + default := {} /- We use the `E` suffix (short for `Expr`) to avoid collision with keywords. We considered using «...», but it is too inconvenient to use. -/ @@ -1077,10 +1096,10 @@ def isLHSGoal? (e : Expr) : Option Expr := none def mkFreshFVarId {m : Type → Type} [Monad m] [MonadNameGenerator m] : m FVarId := - mkFreshId + return { name := (← mkFreshId) } -def mkFreshMVarId {m : Type → Type} [Monad m] [MonadNameGenerator m] : m FVarId := - mkFreshId +def mkFreshMVarId {m : Type → Type} [Monad m] [MonadNameGenerator m] : m MVarId := + return { name := (← mkFreshId) } def mkNot (p : Expr) : Expr := mkApp (mkConst ``Not) p def mkOr (p q : Expr) : Expr := mkApp2 (mkConst ``Or) p q diff --git a/stage0/src/Lean/KeyedDeclsAttribute.lean b/stage0/src/Lean/KeyedDeclsAttribute.lean index c1dd36816b..31d7626e51 100644 --- a/stage0/src/Lean/KeyedDeclsAttribute.lean +++ b/stage0/src/Lean/KeyedDeclsAttribute.lean @@ -38,13 +38,13 @@ structure Def (γ : Type) where deriving Inhabited structure OLeanEntry where - key : Key - decl : Name -- Name of a declaration stored in the environment which has type `mkConst Def.valueTypeName`. + key : Key + declName : Name -- Name of a declaration stored in the environment which has type `mkConst Def.valueTypeName`. deriving Inhabited structure AttributeEntry (γ : Type) extends OLeanEntry where /- Recall that we cannot store `γ` into .olean files because it is a closure. - Given `OLeanEntry.decl`, we convert it into a `γ` by using the unsafe function `evalConstCheck`. -/ + Given `OLeanEntry.declName`, we convert it into a `γ` by using the unsafe function `evalConstCheck`. -/ value : γ abbrev Table (γ : Type) := SMap Key (List (AttributeEntry γ)) @@ -52,6 +52,8 @@ abbrev Table (γ : Type) := SMap Key (List (AttributeEntry γ)) structure ExtensionState (γ : Type) where newEntries : List OLeanEntry := [] table : Table γ := {} + declNames : Std.PHashSet Name := {} + erased : Std.PHashSet Name := {} deriving Inhabited abbrev Extension (γ : Type) := ScopedEnvExtension OLeanEntry (AttributeEntry γ) (ExtensionState γ) @@ -68,13 +70,30 @@ structure KeyedDeclsAttribute (γ : Type) where namespace KeyedDeclsAttribute -def Table.insert {γ : Type} (table : Table γ) (v : AttributeEntry γ) : Table γ := +private def Table.insert (table : Table γ) (v : AttributeEntry γ) : Table γ := match table.find? v.key with | some vs => SMap.insert table v.key (v::vs) | none => SMap.insert table v.key [v] -def addBuiltin {γ} (attr : KeyedDeclsAttribute γ) (key : Key) (decl : Name) (value : γ) : IO Unit := - attr.tableRef.modify fun m => m.insert { key, decl, value } +def ExtensionState.insert (s : ExtensionState γ) (v : AttributeEntry γ) : ExtensionState γ := { + table := s.table.insert v + newEntries := v.toOLeanEntry :: s.newEntries + declNames := s.declNames.insert v.declName + erased := s.erased.erase v.declName +} + +def addBuiltin (attr : KeyedDeclsAttribute γ) (key : Key) (declName : Name) (value : γ) : IO Unit := + attr.tableRef.modify fun m => m.insert { key, declName, value } + +def mkStateOfTable (table : Table γ) : ExtensionState γ := { + table + declNames := table.fold (init := {}) fun s _ es => es.foldl (init := s) fun s e => s.insert e.declName +} + +def ExtensionState.erase (s : ExtensionState γ) (attrName : Name) (declName : Name) : CoreM (ExtensionState γ) := do + unless s.declNames.contains declName do + throwError "'{declName}' does not have [{attrName}] attribute" + return { s with erased := s.erased.insert declName, declNames := s.declNames.erase declName } /-- def _regBuiltin$(declName) : IO Unit := @@ -97,14 +116,13 @@ protected unsafe def init {γ} (df : Def γ) (attrDeclName : Name) : IO (KeyedDe let tableRef ← IO.mkRef ({} : Table γ) let ext : Extension γ ← registerScopedEnvExtension { name := df.name - mkInitial := do return { table := (← tableRef.get) } + mkInitial := return mkStateOfTable (← tableRef.get) ofOLeanEntry := fun s entry => do let ctx ← read - match ctx.env.evalConstCheck γ ctx.opts df.valueTypeName entry.decl with + match ctx.env.evalConstCheck γ ctx.opts df.valueTypeName entry.declName with | Except.ok f => return { toOLeanEntry := entry, value := f } | Except.error ex => throw (IO.userError ex) - addEntry := fun s e => - { table := s.table.insert e, newEntries := e.toOLeanEntry :: s.newEntries } + addEntry := fun s e => s.insert e toOLeanEntry := (·.toOLeanEntry) } unless df.builtinName.isAnonymous do @@ -128,12 +146,16 @@ protected unsafe def init {γ} (df : Def γ) (attrDeclName : Name) : IO (KeyedDe registerBuiltinAttribute { name := df.name descr := df.descr - add := fun constName stx attrKind => do + erase := fun declName => do + let s ← ext.getState (← getEnv) + let s ← s.erase df.name declName + modifyEnv fun env => ext.modifyState env fun _ => s + add := fun declName stx attrKind => do let key ← df.evalKey false stx - match IR.getSorryDep (← getEnv) constName with + match IR.getSorryDep (← getEnv) declName with | none => - let val ← evalConstCheck γ df.valueTypeName constName - ext.add { key := key, decl := constName, value := val } attrKind + let val ← evalConstCheck γ df.valueTypeName declName + ext.add { key := key, declName := declName, value := val } attrKind | _ => -- If the declaration contains `sorry`, we skip `evalConstCheck` to avoid unnecessary bizarre error message pure () @@ -143,7 +165,12 @@ protected unsafe def init {γ} (df : Def γ) (attrDeclName : Name) : IO (KeyedDe /-- Retrieve entries tagged with `[attr key]` or `[builtinAttr key]`. -/ def getEntries {γ} (attr : KeyedDeclsAttribute γ) (env : Environment) (key : Name) : List (AttributeEntry γ) := - (attr.ext.getState env).table.findD key [] + let s := attr.ext.getState env + let attrs := s.table.findD key [] + if s.erased.isEmpty then + attrs + else + attrs.filter fun attr => !s.erased.contains attr.declName /-- Retrieve values tagged with `[attr key]` or `[builtinAttr key]`. -/ def getValues {γ} (attr : KeyedDeclsAttribute γ) (env : Environment) (key : Name) : List γ := diff --git a/stage0/src/Lean/Level.lean b/stage0/src/Lean/Level.lean index 31aea81a6e..3fad358994 100644 --- a/stage0/src/Lean/Level.lean +++ b/stage0/src/Lean/Level.lean @@ -50,13 +50,32 @@ def Level.mkData (h : UInt64) (depth : Nat) (hasMVar hasParam : Bool) : Level.Da open Level +structure MVarId where + name : Name + deriving Inhabited, BEq, Hashable + +instance : Repr MVarId where + reprPrec n p := reprPrec n.name p + +def MVarIdSet := Std.RBTree MVarId (Name.quickCmp ·.name ·.name) + deriving Inhabited, EmptyCollection + +instance : ForIn m MVarIdSet MVarId := inferInstanceAs (ForIn _ (Std.RBTree ..) ..) + +def MVarIdMap (α : Type) := Std.RBMap MVarId α (Name.quickCmp ·.name ·.name) + +instance : EmptyCollection (MVarIdMap α) := inferInstanceAs (EmptyCollection (Std.RBMap ..)) + +instance : Inhabited (MVarIdMap α) where + default := {} + inductive Level where | zero : Data → Level | succ : Level → Data → Level | max : Level → Level → Data → Level | imax : Level → Level → Data → Level | param : Name → Data → Level - | mvar : Name → Data → Level + | mvar : MVarId → Data → Level deriving Inhabited namespace Level @@ -93,7 +112,7 @@ end Level def levelZero := Level.zero $ mkData 2221 0 false false -def mkLevelMVar (mvarId : Name) := +def mkLevelMVar (mvarId : MVarId) := Level.mvar mvarId $ mkData (mixHash 2237 $ hash mvarId) 0 true false def mkLevelParam (name : Name) := @@ -116,7 +135,7 @@ def levelOne := mkLevelSucc levelZero @[export lean_level_mk_zero] def mkLevelZeroEx : Unit → Level := fun _ => levelZero @[export lean_level_mk_succ] def mkLevelSuccEx : Level → Level := mkLevelSucc -@[export lean_level_mk_mvar] def mkLevelMVarEx : Name → Level := mkLevelMVar +@[export lean_level_mk_mvar] def mkLevelMVarEx : MVarId → Level := mkLevelMVar @[export lean_level_mk_param] def mkLevelParamEx : Name → Level := mkLevelParam @[export lean_level_mk_max] def mkLevelMaxEx : Level → Level → Level := mkLevelMax @[export lean_level_mk_imax] def mkLevelIMaxEx : Level → Level → Level := mkLevelIMax @@ -152,7 +171,7 @@ def isMVar : Level → Bool | mvar .. => true | _ => false -def mvarId! : Level → Name +def mvarId! : Level → MVarId | mvar mvarId _ => mvarId | _ => panic! "metavariable expected" @@ -231,7 +250,7 @@ partial def normLtAux : Level → Nat → Level → Nat → Bool else if l₁₁ != l₂₁ then normLtAux l₁₁ 0 l₂₁ 0 else normLtAux l₁₂ 0 l₂₂ 0 | param n₁ _, k₁, param n₂ _, k₂ => if n₁ == n₂ then k₁ < k₂ else Name.lt n₁ n₂ -- use Name.lt because it is lexicographical - | mvar n₁ _, k₁, mvar n₂ _, k₂ => if n₁ == n₂ then k₁ < k₂ else Name.quickLt n₁ n₂ -- metavariables are temporary, the actual order doesn't matter + | mvar n₁ _, k₁, mvar n₂ _, k₂ => if n₁ == n₂ then k₁ < k₂ else Name.quickLt n₁.name n₂.name -- metavariables are temporary, the actual order doesn't matter | l₁, k₁, l₂, k₂ => if l₁ == l₂ then k₁ < k₂ else ctorToNat l₁ < ctorToNat l₂ /-- @@ -386,7 +405,7 @@ def toResult : Level → Result | imax l₁ l₂ _ => Result.imax (toResult l₁) (toResult l₂) | param n _ => Result.leaf n | mvar n _ => - let n := n.replacePrefix `_uniq (Name.mkSimple "?u"); + let n := n.name.replacePrefix `_uniq (Name.mkSimple "?u"); Result.leaf n private def parenIfFalse : Format → Bool → Format @@ -531,7 +550,7 @@ abbrev LevelSet := HashSet Level abbrev PersistentLevelSet := PHashSet Level abbrev PLevelSet := PersistentLevelSet -def Level.collectMVars (u : Level) (s : NameSet := {}) : NameSet := +def Level.collectMVars (u : Level) (s : MVarIdSet := {}) : MVarIdSet := match u with | succ v _ => collectMVars v s | max u v _ => collectMVars u (collectMVars v s) diff --git a/stage0/src/Lean/Meta/AbstractMVars.lean b/stage0/src/Lean/Meta/AbstractMVars.lean index 48d050b2b7..6813105b78 100644 --- a/stage0/src/Lean/Meta/AbstractMVars.lean +++ b/stage0/src/Lean/Meta/AbstractMVars.lean @@ -24,8 +24,8 @@ structure State where nextParamIdx : Nat := 0 paramNames : Array Name := #[] fvars : Array Expr := #[] - lmap : HashMap Name Level := {} - emap : HashMap Name Expr := {} + lmap : HashMap MVarId Level := {} + emap : HashMap MVarId Expr := {} abbrev M := StateM State @@ -35,6 +35,9 @@ def mkFreshId : M Name := do modify fun s => { s with ngen := s.ngen.next } pure fresh +def mkFreshFVarId : M FVarId := + return { name := (← mkFreshId) } + private partial def abstractLevelMVars (u : Level) : M Level := do if !u.hasMVar then return u @@ -91,7 +94,7 @@ partial def abstractExprMVars (e : Expr) : M Expr := do return e | none => let type ← abstractExprMVars decl.type - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let fvar := mkFVar fvarId; let userName := if decl.userName.isAnonymous then (`x).appendIndexAfter s.fvars.size else decl.userName modify fun s => { diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index e0328612df..59b42c5d28 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -157,7 +157,7 @@ structure State where mctx : MetavarContext := {} cache : Cache := {} /- When `trackZeta == true`, then any let-decl free variable that is zeta expansion performed by `MetaM` is stored in `zetaFVarIds`. -/ - zetaFVarIds : NameSet := {} + zetaFVarIds : FVarIdSet := {} postponed : PersistentArray PostponedEntry := {} deriving Inhabited @@ -264,7 +264,7 @@ def setMCtx (mctx : MetavarContext) : MetaM Unit := def resetZetaFVarIds : MetaM Unit := modify fun s => { s with zetaFVarIds := {} } -def getZetaFVarIds : MetaM NameSet := +def getZetaFVarIds : MetaM FVarIdSet := return (← get).zetaFVarIds def getPostponed : MetaM (PersistentArray PostponedEntry) := @@ -302,10 +302,10 @@ def mkFreshExprMVarAt (lctx : LocalContext) (localInsts : LocalInstances) (type : Expr) (kind : MetavarKind := MetavarKind.natural) (userName : Name := Name.anonymous) (numScopeArgs : Nat := 0) : MetaM Expr := do - mkFreshExprMVarAtCore (← mkFreshId) lctx localInsts type kind userName numScopeArgs + mkFreshExprMVarAtCore (← mkFreshMVarId) lctx localInsts type kind userName numScopeArgs def mkFreshLevelMVar : MetaM Level := do - let mvarId ← mkFreshId + let mvarId ← mkFreshMVarId modifyMCtx fun mctx => mctx.addLevelMVarDecl mvarId; return mkLevelMVar mvarId @@ -365,7 +365,7 @@ def shouldReduceReducibleOnly : MetaM Bool := def getMVarDecl (mvarId : MVarId) : MetaM MetavarDecl := do match (← getMCtx).findDecl? mvarId with | some d => pure d - | none => throwError "unknown metavariable '?{mvarId}'" + | none => throwError "unknown metavariable '?{mvarId.name}'" def setMVarKind (mvarId : MVarId) (kind : MetavarKind) : MetaM Unit := modifyMCtx fun mctx => mctx.setMVarKind mvarId kind @@ -387,7 +387,7 @@ def isReadOnlyOrSyntheticOpaqueExprMVar (mvarId : MVarId) : MetaM Bool := do def getLevelMVarDepth (mvarId : MVarId) : MetaM Nat := do match (← getMCtx).findLevelDepth? mvarId with | some depth => return depth - | _ => throwError "unknown universe metavariable '?{mvarId}'" + | _ => throwError "unknown universe metavariable '?{mvarId.name}'" def isReadOnlyLevelMVar (mvarId : MVarId) : MetaM Bool := do if (← getConfig).ignoreLevelMVarDepth then @@ -684,7 +684,7 @@ mutual | Expr.forallE n d b c => if fvarsSizeLtMaxFVars fvars maxFVars? then let d := d.instantiateRevRange j fvars.size fvars - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let lctx := lctx.mkLocalDecl fvarId n d c.binderInfo let fvar := mkFVar fvarId let fvars := fvars.push fvar @@ -785,14 +785,14 @@ where match consumeLet, e with | _, Expr.lam n d b c => let d := d.instantiateRevRange j fvars.size fvars - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let lctx := lctx.mkLocalDecl fvarId n d c.binderInfo let fvar := mkFVar fvarId process consumeLet lctx (fvars.push fvar) j b | true, Expr.letE n t v b _ => do let t := t.instantiateRevRange j fvars.size fvars let v := v.instantiateRevRange j fvars.size fvars - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let lctx := lctx.mkLetDecl fvarId n t v let fvar := mkFVar fvarId process true lctx (fvars.push fvar) j b @@ -884,7 +884,7 @@ private def withNewFVar (fvar fvarType : Expr) (k : Expr → MetaM α) : MetaM | some c => withNewLocalInstance c fvar <| k fvar private def withLocalDeclImp (n : Name) (bi : BinderInfo) (type : Expr) (k : Expr → MetaM α) : MetaM α := do - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let ctx ← read let lctx := ctx.lctx.mkLocalDecl fvarId n type bi let fvar := mkFVar fvarId @@ -924,7 +924,7 @@ def withNewBinderInfos (bs : Array (FVarId × BinderInfo)) (k : n α) : n α := mapMetaM (fun k => withNewBinderInfosImp bs k) k private def withLetDeclImp (n : Name) (type : Expr) (val : Expr) (k : Expr → MetaM α) : MetaM α := do - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let ctx ← read let lctx := ctx.lctx.mkLetDecl fvarId n type val let fvar := mkFVar fvarId diff --git a/stage0/src/Lean/Meta/DiscrTree.lean b/stage0/src/Lean/Meta/DiscrTree.lean index 2f1ff9180e..92f122adc3 100644 --- a/stage0/src/Lean/Meta/DiscrTree.lean +++ b/stage0/src/Lean/Meta/DiscrTree.lean @@ -60,7 +60,7 @@ def Key.ctorIdx : Key → Nat def Key.lt : Key → Key → Bool | Key.lit v₁, Key.lit v₂ => v₁ < v₂ - | Key.fvar n₁ a₁, Key.fvar n₂ a₂ => Name.quickLt n₁ n₂ || (n₁ == n₂ && a₁ < a₂) + | Key.fvar n₁ a₁, Key.fvar n₂ a₂ => Name.quickLt n₁.name n₂.name || (n₁ == n₂ && a₁ < a₂) | Key.const n₁ a₁, Key.const n₂ a₂ => Name.quickLt n₁ n₂ || (n₁ == n₂ && a₁ < a₂) | Key.proj s₁ i₁, Key.proj s₂ i₂ => Name.quickLt s₁ s₂ || (s₁ == s₂ && i₁ < i₂) | k₁, k₂ => k₁.ctorIdx < k₂.ctorIdx @@ -75,7 +75,7 @@ def Key.format : Key → Format | Key.lit (Literal.strVal v) => repr v | Key.const k _ => Std.format k | Key.proj s i => Std.format s ++ "." ++ Std.format i - | Key.fvar k _ => Std.format k + | Key.fvar k _ => Std.format k.name | Key.arrow => "→" instance : ToFormat Key := ⟨Key.format⟩ @@ -109,7 +109,7 @@ instance [ToFormat α] : ToFormat (DiscrTree α) := ⟨format⟩ /- The discrimination tree ignores implicit arguments and proofs. We use the following auxiliary id as a "mark". -/ -private def tmpMVarId : MVarId := `_discr_tree_tmp +private def tmpMVarId : MVarId := { name := `_discr_tree_tmp } private def tmpStar := mkMVar tmpMVarId instance : Inhabited (DiscrTree α) where @@ -424,17 +424,32 @@ private def getStarResult (d : DiscrTree α) : Array α := private abbrev findKey (cs : Array (Key × Trie α)) (k : Key) : Option (Key × Trie α) := cs.binSearch (k, arbitrary) (fun a b => a.1 < b.1) -partial def getMatch (d : DiscrTree α) (e : Expr) : MetaM (Array α) := +/-- + Find values that match `e` in `d`. + If `allowExtraArgs == true`, we also return solutions that match prefixes of `e`. +-/ +partial def getMatch (d : DiscrTree α) (e : Expr) (allowExtraArgs := false) : MetaM (Array α) := withReducible do let result := getStarResult d let (k, args) ← getMatchKeyArgs e (root := true) match k with | Key.star => return result - | _ => - match d.root.find? k with - | none => return result - | some c => process args c result + | _ => if allowExtraArgs then processRootWithExtra k args result else processRoot k args result where + processRoot (k : Key) (args : Array Expr) (result : Array α) : MetaM (Array α) := do + match d.root.find? k with + | none => return result + | some c => process args c result + + processRootWithExtra (k : Key) (args : Array Expr) (result : Array α) : MetaM (Array α) := do + let result ← processRoot k args result + match k with + | Key.const f 0 => return result + | Key.const f (n+1) => processRootWithExtra (Key.const f n) args.pop result + | Key.fvar f 0 => return result + | Key.fvar f (n+1) => processRootWithExtra (Key.fvar f n) args.pop result + | _ => return result + process (todo : Array Expr) (c : Trie α) (result : Array α) : MetaM (Array α) := do match c with | Trie.node vs cs => diff --git a/stage0/src/Lean/Meta/ExprDefEq.lean b/stage0/src/Lean/Meta/ExprDefEq.lean index 43f5557e43..f24df7da89 100644 --- a/stage0/src/Lean/Meta/ExprDefEq.lean +++ b/stage0/src/Lean/Meta/ExprDefEq.lean @@ -211,7 +211,7 @@ private partial def isDefEqBindingAux (lctx : LocalContext) (fvars : Array Expr) let process (n : Name) (d₁ d₂ b₁ b₂ : Expr) : MetaM Bool := do let d₁ := d₁.instantiateRev fvars let d₂ := d₂.instantiateRev fvars - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let lctx := lctx.mkLocalDecl fvarId n d₁ let fvars := fvars.push (mkFVar fvarId) isDefEqBindingAux lctx fvars b₁ b₂ (ds₂.push d₂) @@ -303,8 +303,8 @@ where /- Traverse `e` and stores in the state `NameHashSet` any let-declaration with index greater than `(← read)`. The context `Nat` is the position of `xs[0]` in the local context. -/ - collectLetDeclsFrom (e : Expr) : ReaderT Nat (StateRefT NameHashSet MetaM) Unit := do - let rec visit (e : Expr) : MonadCacheT Expr Unit (ReaderT Nat (StateRefT NameHashSet MetaM)) Unit := + collectLetDeclsFrom (e : Expr) : ReaderT Nat (StateRefT FVarIdHashSet MetaM) Unit := do + let rec visit (e : Expr) : MonadCacheT Expr Unit (ReaderT Nat (StateRefT FVarIdHashSet MetaM)) Unit := checkCache e fun _ => do match e with | Expr.forallE _ d b _ => visit d; visit b @@ -326,7 +326,7 @@ where or equal to the position of `xs.back` in the local context. The `Nat` context `(← read)` is the position of `xs[0]` in the local context. -/ - collectLetDepsAux : Nat → ReaderT Nat (StateRefT NameHashSet MetaM) Unit + collectLetDepsAux : Nat → ReaderT Nat (StateRefT FVarIdHashSet MetaM) Unit | 0 => return () | i+1 => do if i+1 == (← read) then @@ -343,7 +343,7 @@ where collectLetDepsAux i /- Computes the set `ys`. It is a set of `FVarId`s, -/ - collectLetDeps : MetaM NameHashSet := do + collectLetDeps : MetaM FVarIdHashSet := do let lctx ← getLCtx let start := lctx.getFVar! xs[0] |>.index let stop := lctx.getFVar! xs.back |>.index diff --git a/stage0/src/Lean/Meta/GeneralizeVars.lean b/stage0/src/Lean/Meta/GeneralizeVars.lean index b5ca3481ff..22091d3ce2 100644 --- a/stage0/src/Lean/Meta/GeneralizeVars.lean +++ b/stage0/src/Lean/Meta/GeneralizeVars.lean @@ -11,7 +11,7 @@ namespace Lean.Meta /-- Add to `forbidden` all a set of `FVarId`s containing `targets` and all variables they depend on. -/ -partial def mkGeneralizationForbiddenSet (targets : Array Expr) (forbidden : NameSet := {}) : MetaM NameSet := do +partial def mkGeneralizationForbiddenSet (targets : Array Expr) (forbidden : FVarIdSet := {}) : MetaM FVarIdSet := do let mut s := { fvarSet := forbidden } let mut todo := #[] for target in targets do @@ -21,7 +21,7 @@ partial def mkGeneralizationForbiddenSet (targets : Array Expr) (forbidden : Nam s := collectFVars s (← instantiateMVars (← inferType target)) loop todo.toList s.fvarSet where - visit (fvarId : FVarId) (todo : List FVarId) (s : NameSet) : MetaM (List FVarId × NameSet) := do + visit (fvarId : FVarId) (todo : List FVarId) (s : FVarIdSet) : MetaM (List FVarId × FVarIdSet) := do let localDecl ← getLocalDecl fvarId let mut s' := collectFVars {} (← instantiateMVars localDecl.type) if let some val := localDecl.value? then @@ -34,7 +34,7 @@ where s := s.insert fvarId return (todo, s) - loop (todo : List FVarId) (s : NameSet) : MetaM NameSet := do + loop (todo : List FVarId) (s : FVarIdSet) : MetaM FVarIdSet := do match todo with | [] => return s | fvarId::todo => @@ -54,9 +54,9 @@ where Remark: we *not* collect instance implicit arguments nor auxiliary declarations for compiling recursive declarations. -/ -def getFVarSetToGeneralize (targets : Array Expr) (forbidden : NameSet) : MetaM NameSet := do - let mut s : NameSet := targets.foldl (init := {}) fun s target => if target.isFVar then s.insert target.fvarId! else s - let mut r : NameSet := {} +def getFVarSetToGeneralize (targets : Array Expr) (forbidden : FVarIdSet) : MetaM FVarIdSet := do + let mut s : FVarIdSet := targets.foldl (init := {}) fun s target => if target.isFVar then s.insert target.fvarId! else s + let mut r : FVarIdSet := {} for localDecl in (← getLCtx) do unless forbidden.contains localDecl.fvarId do unless localDecl.isAuxDecl || localDecl.binderInfo.isInstImplicit do @@ -65,12 +65,12 @@ def getFVarSetToGeneralize (targets : Array Expr) (forbidden : NameSet) : MetaM s := s.insert localDecl.fvarId return r -def sortFVars (fvars : NameSet) : MetaM (Array FVarId) := do +def sortFVars (fvars : FVarIdSet) : MetaM (Array FVarId) := do let fvarIds := fvars.fold (init := #[]) fun s fvarId => s.push fvarId let lctx ← getLCtx return fvarIds.qsort fun x y => (lctx.get! x).index < (lctx.get! y).index -def getFVarsToGeneralize (targets : Array Expr) (forbidden : NameSet := {}) : MetaM (Array FVarId) := do +def getFVarsToGeneralize (targets : Array Expr) (forbidden : FVarIdSet := {}) : MetaM (Array FVarId) := do let forbidden ← mkGeneralizationForbiddenSet targets forbidden let s ← getFVarSetToGeneralize targets forbidden sortFVars s diff --git a/stage0/src/Lean/Meta/InferType.lean b/stage0/src/Lean/Meta/InferType.lean index 823a5d32f7..75b98fa751 100644 --- a/stage0/src/Lean/Meta/InferType.lean +++ b/stage0/src/Lean/Meta/InferType.lean @@ -152,12 +152,12 @@ private def inferLambdaType (e : Expr) : MetaM Expr := @[inline] private def withLocalDecl' {α} (name : Name) (bi : BinderInfo) (type : Expr) (x : Expr → MetaM α) : MetaM α := savingCache do - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId withReader (fun ctx => { ctx with lctx := ctx.lctx.mkLocalDecl fvarId name type bi }) do x (mkFVar fvarId) def throwUnknownMVar {α} (mvarId : MVarId) : MetaM α := - throwError "unknown metavariable '?{mvarId}'" + throwError "unknown metavariable '?{mvarId.name}'" private def inferMVarType (mvarId : MVarId) : MetaM Expr := do match (← getMCtx).findDecl? mvarId with diff --git a/stage0/src/Lean/Meta/Match/CaseValues.lean b/stage0/src/Lean/Meta/Match/CaseValues.lean index f6d5739c89..3ff67584b1 100644 --- a/stage0/src/Lean/Meta/Match/CaseValues.lean +++ b/stage0/src/Lean/Meta/Match/CaseValues.lean @@ -46,7 +46,7 @@ private def caseValueAux (mvarId : MVarId) (fvarId : FVarId) (value : Expr) (hNa let clearH := false let (thenSubst, thenMVarId) ← substCore thenMVarId thenH symm subst clearH withMVarContext thenMVarId do - trace[Meta] "subst domain: {thenSubst.domain}" + trace[Meta] "subst domain: {thenSubst.domain.map (·.name)}" let thenH := (thenSubst.get thenH).fvarId! trace[Meta] "searching for decl" let decl ← getLocalDecl thenH diff --git a/stage0/src/Lean/Meta/Match/MVarRenaming.lean b/stage0/src/Lean/Meta/Match/MVarRenaming.lean index d2617d8334..cada805d9d 100644 --- a/stage0/src/Lean/Meta/Match/MVarRenaming.lean +++ b/stage0/src/Lean/Meta/Match/MVarRenaming.lean @@ -9,7 +9,7 @@ namespace Lean.Meta /- A mapping from MVarId to MVarId -/ structure MVarRenaming where - map : NameMap MVarId := {} + map : MVarIdMap MVarId := {} def MVarRenaming.isEmpty (s : MVarRenaming) : Bool := s.map.isEmpty diff --git a/stage0/src/Lean/Meta/Match/MatchEqs.lean b/stage0/src/Lean/Meta/Match/MatchEqs.lean index a77da5f1b5..795c78d493 100644 --- a/stage0/src/Lean/Meta/Match/MatchEqs.lean +++ b/stage0/src/Lean/Meta/Match/MatchEqs.lean @@ -197,13 +197,13 @@ private partial def mkSplitterProof (matchDeclName : Name) (template : Expr) (al proveSubgoal mvarId instantiateMVars proof where - mkMap : NameMap Expr := do + mkMap : FVarIdMap Expr := do let mut m := {} for alt in alts, altNew in altsNew do m := m.insert alt.fvarId! altNew return m - convertTemplate (m : NameMap Expr) : StateRefT (Array MVarId) MetaM Expr := + convertTemplate (m : FVarIdMap Expr) : StateRefT (Array MVarId) MetaM Expr := transform template fun e => do match e.getAppFn with | Expr.fvar fvarId .. => diff --git a/stage0/src/Lean/Meta/PPGoal.lean b/stage0/src/Lean/Meta/PPGoal.lean index 0a1276c700..34de76d95f 100644 --- a/stage0/src/Lean/Meta/PPGoal.lean +++ b/stage0/src/Lean/Meta/PPGoal.lean @@ -29,8 +29,8 @@ def withPPInaccessibleNames [MonadControlT MetaM m] [Monad m] (x : m α) (flag : namespace ToHide structure State where - hiddenInaccessibleProp : NameSet := {} -- FVarIds of Propostions with inaccessible names but containing only visible names. We show only their types - hiddenInaccessible : NameSet := {} -- FVarIds with inaccessible names, but not in hiddenInaccessibleProp + hiddenInaccessibleProp : FVarIdSet := {} -- FVarIds of Propostions with inaccessible names but containing only visible names. We show only their types + hiddenInaccessible : FVarIdSet := {} -- FVarIds with inaccessible names, but not in hiddenInaccessibleProp modified : Bool := false structure Context where @@ -125,7 +125,7 @@ The `goalTarget` counts as a forward dependency. We say a name is visible if it is a free variable with FVarId not in `hiddenInaccessible` nor `hiddenInaccessibleProp` -/ -def collect (goalTarget : Expr) : MetaM (NameSet × NameSet) := do +def collect (goalTarget : Expr) : MetaM (FVarIdSet × FVarIdSet) := do if pp.inaccessibleNames.get (← getOptions) then /- Don't hide inaccessible names when `pp.inaccessibleNames` is set to true. -/ return ({}, {}) diff --git a/stage0/src/Lean/Meta/Reduce.lean b/stage0/src/Lean/Meta/Reduce.lean index 52fdd8ac2b..d371a1296b 100644 --- a/stage0/src/Lean/Meta/Reduce.lean +++ b/stage0/src/Lean/Meta/Reduce.lean @@ -20,7 +20,7 @@ partial def reduce (e : Expr) (explicitOnly skipTypes skipProofs := true) : Meta let e ← whnf e match e with | Expr.app .. => - let f := e.getAppFn + let f ← visit e.getAppFn let nargs := e.getAppNumArgs let finfo ← getFunInfoNArgs f nargs let mut args := e.getAppArgs diff --git a/stage0/src/Lean/Meta/SortLocalDecls.lean b/stage0/src/Lean/Meta/SortLocalDecls.lean index df39bf5ede..f51ce34e25 100644 --- a/stage0/src/Lean/Meta/SortLocalDecls.lean +++ b/stage0/src/Lean/Meta/SortLocalDecls.lean @@ -28,12 +28,12 @@ mutual | Expr.app f a _ => visitExpr f; visitExpr a | Expr.mdata _ b _ => visitExpr b | Expr.mvar _ _ => let v ← instantiateMVars e; unless v.isMVar do visitExpr v - | Expr.fvar fvarId _ => if let some localDecl := (← read).localDecls.find? fvarId then visitLocalDecl localDecl + | Expr.fvar fvarId _ => if let some localDecl := (← read).localDecls.find? fvarId.name then visitLocalDecl localDecl | _ => return () partial def visitLocalDecl (localDecl : LocalDecl) : M Unit := do - unless (← get).visited.contains localDecl.fvarId do - modify fun s => { s with visited := s.visited.insert localDecl.fvarId } + unless (← get).visited.contains localDecl.fvarId.name do + modify fun s => { s with visited := s.visited.insert localDecl.fvarId.name } visitExpr localDecl.type if let some val := localDecl.value? then visitExpr val @@ -45,6 +45,6 @@ end SortLocalDecls open SortLocalDecls in def sortLocalDecls (localDecls : Array LocalDecl) : MetaM (Array LocalDecl) := let aux : M (Array LocalDecl) := do localDecls.forM visitLocalDecl; return (← get).result - aux.run { localDecls := localDecls.foldl (init := {}) fun s d => s.insert d.fvarId d } |>.run' {} + aux.run { localDecls := localDecls.foldl (init := {}) fun s d => s.insert d.fvarId.name d } |>.run' {} -end Lean.Meta \ No newline at end of file +end Lean.Meta diff --git a/stage0/src/Lean/Meta/SynthInstance.lean b/stage0/src/Lean/Meta/SynthInstance.lean index 788d630804..03675e0a9d 100644 --- a/stage0/src/Lean/Meta/SynthInstance.lean +++ b/stage0/src/Lean/Meta/SynthInstance.lean @@ -131,7 +131,7 @@ partial def normExpr (e : Expr) : M Expr := do match s.emap.find? mvarId with | some e' => pure e' | none => do - let e' := mkFVar $ Name.mkNum `_tc s.nextIdx + let e' := mkFVar { name := Name.mkNum `_tc s.nextIdx } modify fun s => { s with nextIdx := s.nextIdx + 1, emap := s.emap.insert mvarId e' } pure e' | _ => pure e diff --git a/stage0/src/Lean/Meta/Tactic/Intro.lean b/stage0/src/Lean/Meta/Tactic/Intro.lean index 097e64b33a..5bebf7fa1a 100644 --- a/stage0/src/Lean/Meta/Tactic/Intro.lean +++ b/stage0/src/Lean/Meta/Tactic/Intro.lean @@ -28,7 +28,7 @@ namespace Lean.Meta let type := type.instantiateRevRange j fvars.size fvars let type := type.headBeta let val := val.instantiateRevRange j fvars.size fvars - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let (n, s) ← mkName lctx n true s let lctx := lctx.mkLetDecl fvarId n type val let fvar := mkFVar fvarId @@ -37,7 +37,7 @@ namespace Lean.Meta | (i+1), lctx, fvars, j, s, Expr.forallE n type body c => do let type := type.instantiateRevRange j fvars.size fvars let type := type.headBeta - let fvarId ← mkFreshId + let fvarId ← mkFreshFVarId let (n, s) ← mkName lctx n c.binderInfo.isExplicit s let lctx := lctx.mkLocalDecl fvarId n type c.binderInfo let fvar := mkFVar fvarId diff --git a/stage0/src/Lean/Meta/Tactic/Replace.lean b/stage0/src/Lean/Meta/Tactic/Replace.lean index 6d50ac8f76..9e31d74f90 100644 --- a/stage0/src/Lean/Meta/Tactic/Replace.lean +++ b/stage0/src/Lean/Meta/Tactic/Replace.lean @@ -28,7 +28,7 @@ def replaceTargetEq (mvarId : MVarId) (targetNew : Expr) (eqProof : Expr) : Meta let newProof ← mkExpectedTypeHint eqProof eq let val := mkAppN (Lean.mkConst `Eq.mpr [u]) #[target, targetNew, eqProof, mvarNew] assignExprMVar mvarId val - pure mvarNew.mvarId! + return mvarNew.mvarId! /-- Convert the given goal `Ctx | target` into `Ctx |- targetNew`. It assumes the goals are definitionally equal. @@ -41,13 +41,14 @@ def replaceTargetDefEq (mvarId : MVarId) (targetNew : Expr) : MetaM MVarId := withMVarContext mvarId do checkNotAssigned mvarId `change let target ← getMVarType mvarId - if target == targetNew then pure mvarId + if target == targetNew then + return mvarId else let tag ← getMVarTag mvarId let mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag let newVal ← mkExpectedTypeHint mvarNew target assignExprMVar mvarId mvarNew - pure mvarNew.mvarId! + return mvarNew.mvarId! /-- Replace type of the local declaration with id `fvarId` with one with the same user-facing name, but with type `typeNew`. @@ -77,6 +78,17 @@ where else return e.hasFVar +def replaceLocalDeclDefEq (mvarId : MVarId) (fvarId : FVarId) (typeNew : Expr) : MetaM MVarId := do + withMVarContext mvarId do + let mvarDecl ← getMVarDecl mvarId + if typeNew == mvarDecl.type then + return mvarId + else + let lctxNew := (← getLCtx).modifyLocalDecl fvarId (·.setType typeNew) + let mvarNew ← mkFreshExprMVarAt lctxNew (← getLocalInstances) mvarDecl.type mvarDecl.kind mvarDecl.userName + assignExprMVar mvarId mvarNew + return mvarNew.mvarId! + def change (mvarId : MVarId) (targetNew : Expr) (checkDefEq := true) : MetaM MVarId := withMVarContext mvarId do let target ← getMVarType mvarId if checkDefEq then diff --git a/stage0/src/Lean/Meta/Tactic/Simp/CongrLemmas.lean b/stage0/src/Lean/Meta/Tactic/Simp/CongrLemmas.lean index f0227a76f5..a758a8abbe 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/CongrLemmas.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/CongrLemmas.lean @@ -52,7 +52,7 @@ def mkCongrLemma (declName : Name) (prio : Nat) : MetaM CongrLemma := withReduci lhs.withApp fun lhsFn lhsArgs => rhs.withApp fun rhsFn rhsArgs => do unless lhsFn.isConst && rhsFn.isConst && lhsFn.constName! == rhsFn.constName! && lhsArgs.size == rhsArgs.size do throwError "invalid 'congr' theorem, equality left/right-hand sides must be applications of the same function{indentExpr type}" - let mut foundMVars : NameSet := {} + let mut foundMVars : MVarIdSet := {} for lhsArg in lhsArgs do unless lhsArg.isSort do unless lhsArg.isMVar do @@ -98,7 +98,7 @@ def mkCongrLemma (declName : Name) (prio : Nat) : MetaM CongrLemma := withReduci } where /-- Return `true` if `t` contains a metavariable that is not in `mvarSet` -/ - onlyMVarsAt (t : Expr) (mvarSet : NameSet) : Bool := + onlyMVarsAt (t : Expr) (mvarSet : MVarIdSet) : Bool := Option.isNone <| t.find? fun e => e.isMVar && !mvarSet.contains e.mvarId! def addCongrLemma (declName : Name) (attrKind : AttributeKind) (prio : Nat) : MetaM Unit := do diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean index ecea795600..8ffdc1092c 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean @@ -50,6 +50,10 @@ private def mkImpCongr (r₁ r₂ : Result) : MetaM Result := do | none, none => return { expr := e, proof? := none } | _, _ => return { expr := e, proof? := (← Meta.mkImpCongr (← r₁.getProof) (← r₂.getProof)) } -- TODO specialize if bootleneck +/-- Return true if `e` is of the form `ofNat n` where `n` is a kernel Nat literal -/ +def isOfNatNatLit (e : Expr) : Bool := + e.isAppOfArity ``OfNat.ofNat 3 && e.appFn!.appArg!.isNatLit + private def reduceProj (e : Expr) : MetaM Expr := do match (← reduceProj? e) with | some e => return e @@ -160,7 +164,7 @@ where | Expr.const .. => simpConst e | Expr.bvar .. => unreachable! | Expr.sort .. => pure { expr := e } - | Expr.lit .. => pure { expr := e } + | Expr.lit .. => simpLit e | Expr.mvar .. => pure { expr := (← instantiateMVars e) } | Expr.fvar .. => pure { expr := (← reduceFVar (← getConfig) e) } @@ -180,6 +184,11 @@ where i := i + 1 return r + simpLit (e : Expr) : M Result := + match e.natLit? with + | some n => return { expr := (← mkNumeral (mkConst ``Nat) n) } + | none => return { expr := e } + /- Return true iff processing the given congruence lemma hypothesis produced a non-refl proof. -/ processCongrHypothesis (h : Expr) : M Bool := do forallTelescopeReducing (← inferType h) fun xs hType => withNewLemmas xs do @@ -242,6 +251,9 @@ where let e ← reduce e if !e.isApp then simp e + else if isOfNatNatLit e then + -- Recall that we expand "orphan" kernel nat literals `n` into `ofNat n` + return { expr := e } else congr e @@ -430,7 +442,7 @@ def simpLocalDecl (mvarId : MVarId) (fvarId : FVarId) (ctx : Simp.Context) (disc else return some (fvarId, mvarId) -abbrev FVarIdToLemmaId := NameMap Name +abbrev FVarIdToLemmaId := FVarIdMap Name def simpGoal (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) (simplifyTarget : Bool := true) (fvarIdsToSimp : Array FVarId := #[]) (fvarIdToLemmaId : FVarIdToLemmaId := {}) : MetaM (Option (Array FVarId × MVarId)) := do withMVarContext mvarId do diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean index 9e49b85c5e..1e3b1fbd01 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Meta.AppBuilder import Lean.Meta.SynthInstance import Lean.Meta.Tactic.Simp.Types @@ -48,34 +49,57 @@ def tryLemma? (e : Expr) (lemma : SimpLemma) (discharge? : Expr → SimpM (Optio let (xs, bis, type) ← forallMetaTelescopeReducing type let type ← whnf (← instantiateMVars type) let lhs := type.appFn!.appArg! - if (← isDefEq lhs e) then - unless (← synthesizeArgs lemma.getName xs bis discharge?) do + let rec go (e : Expr) : SimpM (Option Result) := do + if (← isDefEq lhs e) then + unless (← synthesizeArgs lemma.getName xs bis discharge?) do + return none + let proof ← instantiateMVars (mkAppN val xs) + if ← hasAssignableMVar proof then + trace[Meta.Tactic.simp.rewrite] "{lemma}, has unassigned metavariables after unification" + return none + let rhs ← instantiateMVars type.appArg! + if e == rhs then + return none + if lemma.perm && !Expr.lt rhs e then + trace[Meta.Tactic.simp.rewrite] "{lemma}, perm rejected {e} ==> {rhs}" + return none + trace[Meta.Tactic.simp.rewrite] "{lemma}, {e} ==> {rhs}" + return some { expr := rhs, proof? := proof } + else + unless lhs.isMVar do + -- We do not report unification failures when `lhs` is a metavariable + -- Example: `x = ()` + -- TODO: reconsider if we want lemmas such as `(x : Unit) → x = ()` + trace[Meta.Tactic.simp.unify] "{lemma}, failed to unify {lhs} with {e}" return none - let proof ← instantiateMVars (mkAppN val xs) - if ← hasAssignableMVar proof then - trace[Meta.Tactic.simp.rewrite] "{lemma}, has unassigned metavariables after unification" - return none - let rhs ← instantiateMVars type.appArg! - if e == rhs then - return none - if lemma.perm && !Expr.lt rhs e then - trace[Meta.Tactic.simp.rewrite] "{lemma}, perm rejected {e} ==> {rhs}" - return none - trace[Meta.Tactic.simp.rewrite] "{lemma}, {e} ==> {rhs}" - return some { expr := rhs, proof? := proof } - else - unless lhs.isMVar do - -- We do not report unification failures when `lhs` is a metavariable - -- Example: `x = ()` - -- TODO: reconsider if we want lemmas such as `(x : Unit) → x = ()` - trace[Meta.Tactic.simp.unify] "{lemma}, failed to unify {lhs} with {e}" + let lhsNumArgs := lhs.getAppNumArgs + let eNumArgs := e.getAppNumArgs + if eNumArgs == lhsNumArgs then + go e + else if eNumArgs < lhsNumArgs then return none + else + /- Check whether we need something more sophisticated here. + This simple approach was good enough for Mathlib 3 -/ + let mut extraArgs := #[] + let mut e := e + for i in [:eNumArgs - lhsNumArgs] do + extraArgs := extraArgs.push e.appArg! + e := e.appFn! + match (← go e) with + | none => return none + | some { expr := eNew, proof? := none } => return some { expr := mkAppN eNew extraArgs } + | some { expr := eNew, proof? := some proof } => + let mut proof := proof + for extraArg in extraArgs do + proof ← mkCongrFun proof extraArg + return some { expr := mkAppN eNew extraArgs, proof? := some proof } /- Remark: the parameter tag is used for creating trace messages. It is irrelevant otherwise. -/ def rewrite (e : Expr) (s : DiscrTree SimpLemma) (erased : Std.PHashSet Name) (discharge? : Expr → SimpM (Option Expr)) (tag : String) : SimpM Result := do - let lemmas ← s.getMatch e + let lemmas ← s.getMatch e (allowExtraArgs := true) if lemmas.isEmpty then trace[Debug.Meta.Tactic.simp] "no theorems found for {tag}-rewriting {e}" return { expr := e } diff --git a/stage0/src/Lean/Meta/Tactic/Split.lean b/stage0/src/Lean/Meta/Tactic/Split.lean index a5e74fb56d..7e4b2efa67 100644 --- a/stage0/src/Lean/Meta/Tactic/Split.lean +++ b/stage0/src/Lean/Meta/Tactic/Split.lean @@ -21,26 +21,42 @@ private def getSimpMatchContext : MetaM Simp.Context := config.decide := false } -private def simpMatchPre (matchDeclName : Name) (matchEqDeclName : Name) (e : Expr) : SimpM Simp.Step := do - if e.isAppOf matchDeclName then +def simpMatch (e : Expr) : MetaM Simp.Result := do + Simp.main e (← getSimpMatchContext) (methods := { pre }) +where + pre (e : Expr) : SimpM Simp.Step := do + let some app ← matchMatcherApp? e | return Simp.Step.visit { expr := e } -- First try to reduce matcher match (← reduceRecMatcher? e) with | some e' => return Simp.Step.done { expr := e' } | none => - -- Try lemma - match (← Simp.tryLemma? e { proof := mkConst matchEqDeclName, name? := matchEqDeclName } SplitIf.discharge?) with - | none => return Simp.Step.visit { expr := e } - | some r => return Simp.Step.done r - else - return Simp.Step.visit { expr := e } + for matchEq in (← Match.getEquationsFor app.matcherName).eqnNames do + -- Try lemma + match (← Simp.tryLemma? e { proof := mkConst matchEq, name? := some matchEq } SplitIf.discharge?) with + | none => pure () + | some r => return Simp.Step.done r + return Simp.Step.visit { expr := e } -private def simpMatch (matchDeclName : Name) (matchEqDeclName : Name) (e : Expr) : MetaM Simp.Result := do - Simp.main e (← getSimpMatchContext) (methods := { pre := simpMatchPre matchDeclName matchEqDeclName }) +private def simpMatchCore (matchDeclName : Name) (matchEqDeclName : Name) (e : Expr) : MetaM Simp.Result := do + Simp.main e (← getSimpMatchContext) (methods := { pre }) +where + pre (e : Expr) : SimpM Simp.Step := do + if e.isAppOf matchDeclName then + -- First try to reduce matcher + match (← reduceRecMatcher? e) with + | some e' => return Simp.Step.done { expr := e' } + | none => + -- Try lemma + match (← Simp.tryLemma? e { proof := mkConst matchEqDeclName, name? := matchEqDeclName } SplitIf.discharge?) with + | none => return Simp.Step.visit { expr := e } + | some r => return Simp.Step.done r + else + return Simp.Step.visit { expr := e } -private def simpMatchTarget (mvarId : MVarId) (matchDeclName : Name) (matchEqDeclName : Name) : MetaM MVarId := do +private def simpMatchTargetCore (mvarId : MVarId) (matchDeclName : Name) (matchEqDeclName : Name) : MetaM MVarId := do withMVarContext mvarId do let target ← instantiateMVars (← getMVarType mvarId) - let r ← simpMatch matchDeclName matchEqDeclName target + let r ← simpMatchCore matchDeclName matchEqDeclName target match r.proof? with | some proof => replaceTargetEq mvarId r.expr proof | none => replaceTargetDefEq mvarId r.expr @@ -78,7 +94,7 @@ def splitMatch (mvarId : MVarId) (e : Expr) : MetaM (List MVarId) := do let (_, mvarId) ← introN mvarId numParams let (_, mvarId) ← introNP mvarId numExtra trace[Meta.debug] "before simpMatch:\n{MessageData.ofGoal mvarId}" - let mvarId ← simpMatchTarget mvarId app.matcherName matchEqns.eqnNames[i] + let mvarId ← simpMatchTargetCore mvarId app.matcherName matchEqns.eqnNames[i] return (i+1, mvarId::mvarIds) return mvarIds.reverse diff --git a/stage0/src/Lean/Meta/Tactic/Subst.lean b/stage0/src/Lean/Meta/Tactic/Subst.lean index 2e6690862a..2e7b6f3256 100644 --- a/stage0/src/Lean/Meta/Tactic/Subst.lean +++ b/stage0/src/Lean/Meta/Tactic/Subst.lean @@ -28,7 +28,7 @@ def substCore (mvarId : MVarId) (hFVarId : FVarId) (symm := false) (fvarSubst : match a with | Expr.fvar aFVarId _ => do let aFVarIdOriginal := aFVarId - trace[Meta.Tactic.subst] "substituting {a} (id: {aFVarId}) with {b}" + trace[Meta.Tactic.subst] "substituting {a} (id: {aFVarId.name}) with {b}" let mctx ← getMCtx if mctx.exprDependsOn b aFVarId then throwTacticEx `subst mvarId m!"'{a}' occurs at{indentExpr b}" @@ -37,7 +37,7 @@ def substCore (mvarId : MVarId) (hFVarId : FVarId) (symm := false) (fvarSubst : trace[Meta.Tactic.subst] "after revert {MessageData.ofGoal mvarId}" let (twoVars, mvarId) ← introNP mvarId 2 trace[Meta.Tactic.subst] "after intro2 {MessageData.ofGoal mvarId}" - trace[Meta.Tactic.subst] "reverted variables {vars}" + trace[Meta.Tactic.subst] "reverted variables {vars.map (·.name)}" let aFVarId := twoVars[0] let a := mkFVar aFVarId let hFVarId := twoVars[1] diff --git a/stage0/src/Lean/Meta/Tactic/Util.lean b/stage0/src/Lean/Meta/Tactic/Util.lean index d830b38019..a2d880e5f0 100644 --- a/stage0/src/Lean/Meta/Tactic/Util.lean +++ b/stage0/src/Lean/Meta/Tactic/Util.lean @@ -59,7 +59,7 @@ def headBetaMVarType (mvarId : MVarId) : MetaM Unit := do /-- Collect nondependent hypotheses that are propositions. -/ def getNondepPropHyps (mvarId : MVarId) : MetaM (Array FVarId) := withMVarContext mvarId do - let mut candidates : NameHashSet := {} + let mut candidates : FVarIdHashSet := {} for localDecl in (← getLCtx) do unless localDecl.isAuxDecl do candidates ← removeDeps localDecl.type candidates @@ -78,9 +78,9 @@ def getNondepPropHyps (mvarId : MVarId) : MetaM (Array FVarId) := result := result.push localDecl.fvarId return result where - removeDeps (e : Expr) (candidates : NameHashSet) : MetaM NameHashSet := do + removeDeps (e : Expr) (candidates : FVarIdHashSet) : MetaM FVarIdHashSet := do let e ← instantiateMVars e - let visit : StateRefT NameHashSet MetaM NameHashSet := do + let visit : StateRefT FVarIdHashSet MetaM FVarIdHashSet := do e.forEach fun | Expr.fvar fvarId _ => modify fun s => s.erase fvarId | _ => pure () diff --git a/stage0/src/Lean/MetavarContext.lean b/stage0/src/Lean/MetavarContext.lean index ec285b2d26..2f7ecc85c0 100644 --- a/stage0/src/Lean/MetavarContext.lean +++ b/stage0/src/Lean/MetavarContext.lean @@ -906,7 +906,7 @@ mutual let newLocalInsts := mvarDecl.localInstances.filter fun inst => toRevert.all fun x => inst.fvar != x -- Remark: we must reset the before processing `mkAuxMVarType` because `toRevert` may not be equal to `xs` let newMVarType ← withFreshCache do mkAuxMVarType mvarLCtx toRevert newMVarKind mvarDecl.type - let newMVarId := (← get).ngen.curr + let newMVarId := { name := (← get).ngen.curr } let newMVar := mkMVar newMVarId let result := mkMVarApp mvarLCtx newMVar toRevert newMVarKind let numScopeArgs := mvarDecl.numScopeArgs + result.getAppNumArgs diff --git a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean index a25cc1c739..e36cd2a4f8 100644 --- a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean +++ b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean @@ -29,7 +29,7 @@ try maybeAddBlockImplicit (mkIdent l.userName) catch _ => -- loose free variable, use internal name - maybeAddBlockImplicit $ mkIdent id + maybeAddBlockImplicit $ mkIdent id.name -- loose bound variable, use pseudo syntax @[builtinDelab bvar] @@ -43,7 +43,7 @@ def delabMVar : Delab := do let mvarDecl ← getMVarDecl n let n := match mvarDecl.userName with - | Name.anonymous => n.replacePrefix `_uniq `m + | Name.anonymous => n.name.replacePrefix `_uniq `m | n => n `(?$(mkIdent n)) diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index db25378ad6..87addf3df0 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -154,8 +154,7 @@ section Initialization else throwServerError s!"`leanpkg print-paths` failed:\n{stdout}\nstderr:\n{stderr}" - def compileHeader (m : DocumentMeta) (hOut : FS.Stream) : IO (Snapshot × SearchPath) := do - let opts := {} -- TODO + def compileHeader (m : DocumentMeta) (hOut : FS.Stream) (opts : Options) : IO (Snapshot × SearchPath) := do let inputCtx := Parser.mkInputContext m.text.source "" let (headerStx, headerParserState, msgLog) ← Parser.parseHeader inputCtx let leanpkgPath ← match (← IO.getEnv "LEAN_SYSROOT") with @@ -186,9 +185,9 @@ section Initialization publishDiagnostics m headerSnap.diagnostics.toArray hOut return (headerSnap, srcSearchPath) - def initializeWorker (meta : DocumentMeta) (i o e : FS.Stream) + def initializeWorker (meta : DocumentMeta) (i o e : FS.Stream) (opts : Options) : IO (WorkerContext × WorkerState) := do - let (headerSnap, srcSearchPath) ← compileHeader meta o + let (headerSnap, srcSearchPath) ← compileHeader meta o opts let cancelTk ← CancelToken.new let ctx := { hIn := i @@ -404,7 +403,7 @@ section MainLoop | _ => throwServerError "Got invalid JSON-RPC message" end MainLoop -def initAndRunWorker (i o e : FS.Stream) : IO UInt32 := do +def initAndRunWorker (i o e : FS.Stream) (opts : Options) : IO UInt32 := do let i ← maybeTee "fwIn.txt" false i let o ← maybeTee "fwOut.txt" true o let _ ← i.readLspRequestAs "initialize" InitializeParams @@ -419,7 +418,7 @@ def initAndRunWorker (i o e : FS.Stream) : IO UInt32 := do let e ← e.withPrefix s!"[{param.textDocument.uri}] " let _ ← IO.setStderr e try - let (ctx, st) ← initializeWorker meta i o e + let (ctx, st) ← initializeWorker meta i o e opts let _ ← StateRefT'.run (s := st) <| ReaderT.run (r := ctx) mainLoop return (0 : UInt32) catch e => @@ -428,14 +427,14 @@ def initAndRunWorker (i o e : FS.Stream) : IO UInt32 := do return (1 : UInt32) @[export lean_server_worker_main] -def workerMain : IO UInt32 := do +def workerMain (opts : Options) : IO UInt32 := do let i ← IO.getStdin let o ← IO.getStdout let e ← IO.getStderr try let seed ← (UInt64.toNat ∘ ByteArray.toUInt64LE!) <$> IO.getRandomBytes 8 IO.setRandSeed seed - let exitCode ← initAndRunWorker i o e + let exitCode ← initAndRunWorker i o e opts -- HACK: all `Task`s are currently "foreground", i.e. we join on them on main thread exit, but we definitely don't -- want to do that in the case of the worker processes, which can produce non-terminating tasks evaluating user code o.flush diff --git a/stage0/src/Lean/Util/CollectFVars.lean b/stage0/src/Lean/Util/CollectFVars.lean index ab0f438df6..296d1fd927 100644 --- a/stage0/src/Lean/Util/CollectFVars.lean +++ b/stage0/src/Lean/Util/CollectFVars.lean @@ -9,7 +9,7 @@ namespace Lean.CollectFVars structure State where visitedExpr : ExprSet := {} - fvarSet : NameSet := {} + fvarSet : FVarIdSet := {} deriving Inhabited abbrev Visitor := State → State diff --git a/stage0/src/Lean/Widget/InteractiveGoal.lean b/stage0/src/Lean/Widget/InteractiveGoal.lean index 97947156dc..527f6595f6 100644 --- a/stage0/src/Lean/Widget/InteractiveGoal.lean +++ b/stage0/src/Lean/Widget/InteractiveGoal.lean @@ -68,7 +68,7 @@ open Meta in /-- A variant of `Meta.ppGoal` which preserves subexpression information for interactivity. -/ def goalToInteractive (mvarId : MVarId) : MetaM InteractiveGoal := do let some mvarDecl ← (← getMCtx).findDecl? mvarId - | throwError "unknown goal {mvarId}" + | throwError "unknown goal {mvarId.name}" let ppAuxDecls := pp.auxDecls.get (← getOptions) let lctx := mvarDecl.lctx let lctx := lctx.sanitizeNames.run' { options := (← getOptions) } diff --git a/stage0/src/bin/leanc.in b/stage0/src/bin/leanc.in index 9adaf0caf1..66b3f3e0fb 100755 --- a/stage0/src/bin/leanc.in +++ b/stage0/src/bin/leanc.in @@ -1,10 +1,9 @@ #!/usr/bin/env bash # Lean compiler # -# A simple wrapper around a C++ compiler. Defaults to the compiler Lean was built with, -# which can be overridden with the environment variable `LEAN_CXX`. All parameters are passed -# as-is to the wrapped compiler. Note that we use a C++ compiler purely for linking against -# the C++ standard library Lean depends on, all input files are treated as C code. +# A simple wrapper around a C compiler. Defaults to `@LEANC_CC@`, +# which can be overridden with the environment variable `LEAN_CC`. All parameters are passed +# as-is to the wrapped compiler. # # Interesting options: # * `-U LEAN_MULTI_THREAD` can be used to optimize programs not making use of multi-threading @@ -21,16 +20,30 @@ ldflags=("-L$bindir/../lib/lean" "${LEANC_GMP:--lgmp}" @LEAN_EXTRA_LINKER_FLAGS@ ldflags_ext=(@LEANC_STATIC_LINKER_FLAGS@) args=("$@") for arg in "$@"; do - # passed -shared ~> switch to shared linker flags - [[ $arg == "-shared" ]] && ldflags_ext=(@LEANC_SHARED_LINKER_FLAGS@) && args=("-x" "c" "$@" "-x" "none") - # linking against libleanshared explicitly (or linking libleanshared itself) ~> do not link against static stdlib - [[ $arg == "-lleanshared" || $arg == *libleanshared.* ]] && ldflags_ext=() - # Note the `-x c` for treating all input as C code - [[ $arg == "-c" ]] && ldflags=() && ldflags_ext=() && args=("-x" "c" "$@" "-x" "none") - [[ $arg == "--print-cflags" ]] && echo "${cflags[@]}" && exit - [[ $arg == "--print-ldflags" ]] && echo "${cflags[@]} ${ldflags_ext[@]} ${ldflags[@]}" && exit + case $arg in + -shared) + # switch to shared linker flags + ldflags_ext=(@LEANC_SHARED_LINKER_FLAGS@) + ;; + -lleanshared | *libleanshared.*) + # linking against libleanshared explicitly (or linking libleanshared itself) ~> do not link against static stdlib + ldflags_ext=() + ;; + -c) + ldflags=() + ldflags_ext=() + ;; + --print-cflags) + echo "${cflags[@]}" + exit + ;; + --print-ldflags) + echo "${cflags[@]} ${ldflags_ext[@]} ${ldflags[@]}" + exit + ;; + esac done -[ -n "$LEAN_CXX" ] || LEAN_CXX=c++ +[ -n "$LEAN_CC" ] || LEAN_CC="@LEANC_CC@" -$LEAN_CXX "${cflags[@]}" "${args[@]}" "${ldflags_ext[@]}" "${ldflags[@]}" -Wno-unused-command-line-argument +$LEAN_CC "${cflags[@]}" "${args[@]}" "${ldflags_ext[@]}" "${ldflags[@]}" -Wno-unused-command-line-argument diff --git a/stage0/src/runtime/object.cpp b/stage0/src/runtime/object.cpp index d95a3cdacb..994b9b2f0d 100644 --- a/stage0/src/runtime/object.cpp +++ b/stage0/src/runtime/object.cpp @@ -57,6 +57,12 @@ extern "C" object * lean_panic_fn(object * default_val, object * msg) { if (g_panic_messages) { std::cerr << lean_string_cstr(msg) << "\n"; } +#ifndef LEAN_EMSCRIPTEN + if (std::getenv("LEAN_ABORT_ON_PANIC")) { + int * v = nullptr; + *v = 0; + } +#endif if (g_exit_on_panic) { std::exit(1); } diff --git a/stage0/src/shell/CMakeLists.txt b/stage0/src/shell/CMakeLists.txt index 63026b639f..ec3cb08a6b 100644 --- a/stage0/src/shell/CMakeLists.txt +++ b/stage0/src/shell/CMakeLists.txt @@ -21,14 +21,11 @@ if(LLVM) endif() endif() -string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) -add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/bin/lean${CMAKE_EXECUTABLE_SUFFIX} - COMMAND sh -c "LEAN_CXX='${CMAKE_CXX_COMPILER_LAUNCHER} ${CMAKE_CXX_COMPILER}' ${CMAKE_BINARY_DIR}/bin/leanc $ -lleanshared ${CMAKE_EXE_LINKER_FLAGS} ${LEAN_EXE_LINKER_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} -o ${CMAKE_BINARY_DIR}/bin/lean${CMAKE_EXECUTABLE_SUFFIX}" - VERBATIM - DEPENDS leanshared shell $,runtime_bc,>) - add_custom_target(lean ALL - DEPENDS ${CMAKE_BINARY_DIR}/bin/lean${CMAKE_EXECUTABLE_SUFFIX}) + WORKING_DIRECTORY ${LEAN_SOURCE_DIR} + DEPENDS leanshared shell + COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make lean LEAN_SHELL=$ + VERBATIM) # use executable of current stage for tests string(REGEX REPLACE "^([a-zA-Z]):" "/\\1" LEAN_BIN "${CMAKE_BINARY_DIR}/bin") diff --git a/stage0/src/shell/lean.cpp b/stage0/src/shell/lean.cpp index d99cdaa697..034a465294 100644 --- a/stage0/src/shell/lean.cpp +++ b/stage0/src/shell/lean.cpp @@ -325,10 +325,10 @@ pair_ref run_new_frontend(std::string const & input, op lean_run_frontend(mk_string(input), opts.to_obj_arg(), mk_string(file_name), main_module_name.to_obj_arg(), io_mk_world())); } -/* def workerMain : IO UInt32 */ -extern "C" object* lean_server_worker_main(object* w); -uint32_t run_server_worker() { - return get_io_scalar_result(lean_server_worker_main(io_mk_world())); +/* def workerMain : Options → IO UInt32 */ +extern "C" object * lean_server_worker_main(object * opts, object * w); +uint32_t run_server_worker(options const & opts) { + return get_io_scalar_result(lean_server_worker_main(opts.to_obj_arg(), io_mk_world())); } /* def watchdogMain (args : List String) : IO Uint32 */ @@ -580,7 +580,7 @@ int main(int argc, char ** argv) { if (run_server == 1) return run_server_watchdog(forwarded_args); else if (run_server == 2) - return run_server_worker(); + return run_server_worker(opts); if (use_stdin) { if (argc - optind != 0) { diff --git a/stage0/src/stdlib.make.in b/stage0/src/stdlib.make.in index 7ed5a2a5d3..a6bf8d20b3 100644 --- a/stage0/src/stdlib.make.in +++ b/stage0/src/stdlib.make.in @@ -2,6 +2,8 @@ SHELL := /usr/bin/env bash -euo pipefail # any absolute path to the stdlib breaks the Makefile export LEAN_PATH= +export LEAN_CC=${CMAKE_C_COMPILER_LAUNCHER} ${CMAKE_C_COMPILER} +export LEANC_GMP=${GMP_LIBRARIES} # LEAN_OPTS: don't use native code (except for primitives) since it is from the previous stage # MORE_DEPS: rebuild the stdlib whenever the compiler has changed @@ -13,13 +15,15 @@ LEANMAKE_OPTS=\ BIN_OUT="${CMAKE_BINARY_DIR}/bin"\ LEAN_OPTS+="${LEAN_EXTRA_MAKE_OPTS}"\ LEANC_OPTS+="${LEANC_OPTS}"\ - LEAN_CXX="${CMAKE_CXX_COMPILER_LAUNCHER} ${CMAKE_CXX_COMPILER}"\ LEAN_AR="${CMAKE_AR}"\ MORE_DEPS+="${PREV_STAGE}/bin/lean${CMAKE_EXECUTABLE_SUFFIX}"\ - CMAKE_LIKE_OUTPUT=1\ - $(MORE_LEANMAKE_OPTS) + CMAKE_LIKE_OUTPUT=1 -.PHONY: Init Std Lean leanshared Leanpkg +ifeq "${STAGE}" "0" + LEANMAKE_OPTS+=C_ONLY=1 C_OUT=../stdlib/ +endif + +.PHONY: Init Std Lean leanshared Leanpkg lean # These can be phony since the inner Makefile will have the correct dependencies and avoid rebuilds Init: @@ -32,14 +36,20 @@ Std: Init Lean: Init Std +"${LEAN_BIN}/leanmake" lib PKG=Lean $(LEANMAKE_OPTS) -# This target will always be remade, but then not trigger further builds downstream if the .a file did not change -${LIB}/lean/libLean.a: Lean +# the following targets are all invoked by separate `make` calls; see src/CMakeLists.txt -${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX}: ${LIB}/lean/libLean.a ${LIB}/lean/libleancpp.a ${CMAKE_BINARY_DIR}/runtime/libleanrt_initial-exec.a +# we specify the precise file names here to avoid rebuilds +${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX}: ${LIB}/lean/libInit.a ${LIB}/lean/libStd.a ${LIB}/lean/libLean.a ${LIB}/lean/libleancpp.a ${CMAKE_BINARY_DIR}/runtime/libleanrt_initial-exec.a @echo "[ ] Building $@" - "${LEAN_BIN}/leanc" -x none -shared -o $@ ${LEANSHARED_LINKER_FLAGS} ${LEANC_OPTS} + "${LEAN_BIN}/leanc" -shared -o $@ ${LEANSHARED_LINKER_FLAGS} ${LEANC_OPTS} leanshared: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX} -Leanpkg: Init Std Lean leanshared - +"${LEAN_BIN}/leanmake" bin PKG=Leanpkg BIN_NAME=leanpkg${CMAKE_EXECUTABLE_SUFFIX} $(LEANMAKE_OPTS) LINK_OPTS='-lleanshared ${CMAKE_EXE_LINKER_FLAGS_MAKE}' +Leanpkg: + +"${LEAN_BIN}/leanmake" bin PKG=Leanpkg BIN_NAME=leanpkg${CMAKE_EXECUTABLE_SUFFIX} $(LEANMAKE_OPTS) LINK_OPTS='-lleanshared ${CMAKE_EXE_LINKER_FLAGS_MAKE_MAKE}' + +${CMAKE_BINARY_DIR}/bin/lean${CMAKE_EXECUTABLE_SUFFIX}: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX} $(LEAN_SHELL) + @echo "[ ] Building $@" + ${LEAN_BIN}/leanc $(LEAN_SHELL) -lleanshared ${CMAKE_EXE_LINKER_FLAGS_MAKE} ${LEAN_EXE_LINKER_FLAGS} -o $@ + +lean: ${CMAKE_BINARY_DIR}/bin/lean${CMAKE_EXECUTABLE_SUFFIX} diff --git a/stage0/stdlib/Init/Conv.c b/stage0/stdlib/Init/Conv.c index bc9440a948..2241432f01 100644 --- a/stage0/stdlib/Init/Conv.c +++ b/stage0/stdlib/Init/Conv.c @@ -17,7 +17,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__15; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__19; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__13; @@ -27,17 +26,16 @@ static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__8; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__18; static lean_object* l_Lean_Parser_Tactic_Conv_convRw_____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convArgs___closed__3; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTactic___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__6; lean_object* l_Lean_Parser_Tactic_Conv_convSeq; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__5; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__5; lean_object* l_Lean_Syntax_getHeadInfo_x3f(lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__22; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__7; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__24; extern lean_object* l_Lean_nullKind; @@ -46,12 +44,13 @@ static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__16; static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__6; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__2; lean_object* l_Lean_Parser_Tactic_Conv_convIntro______; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__1; lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_Conv_convTraceState; static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +static lean_object* l_Lean_Parser_Tactic_Conv_reduce___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__8; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__18; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__15; @@ -60,6 +59,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__2; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_enterArg___closed__4; @@ -73,25 +73,28 @@ static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__8; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_lhs___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__32; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__11; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__9; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convTraceState___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__1; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__6; lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convArgs___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convTraceState___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__5; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_whnf___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__23; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__14; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__4; @@ -100,9 +103,9 @@ static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__19; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTactic___closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_congr___closed__2; lean_object* l_Lean_Parser_Tactic_Conv_enterArg; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convDone___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__7; @@ -113,13 +116,17 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__13; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__10; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__5; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__3; lean_object* l_Lean_Parser_Tactic_Conv_simp; static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__10; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convRw_____closed__1; +static lean_object* l_Lean_Parser_Tactic_Conv_reduce___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTactic___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTactic___closed__3; @@ -130,12 +137,12 @@ static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__24; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; static lean_object* l_Lean_Parser_Tactic_Conv_lhs___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convIntro_________closed__4; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convDone___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_rhs___closed__2; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__26; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__20; @@ -147,7 +154,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_pattern___closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_convSkip___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__8; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convSkip___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__17; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__21; @@ -157,6 +163,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_erewrite___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__13; static lean_object* l_Lean_Parser_Tactic_Conv_convIntro_________closed__2; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__22; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__31; @@ -164,7 +171,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_enterArg___closed__1; lean_object* l_Lean_Parser_Tactic_Conv_paren; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__2; lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_erewrite___closed__1; extern lean_object* l_Lean_Parser_Tactic_simpStar; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__6; @@ -196,7 +202,6 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convIntro_________closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__34; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__13; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_change___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_lhs___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__19; @@ -204,6 +209,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__27; static lean_object* l_Lean_Parser_Tactic_Conv_convDone___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__3; lean_object* l_Lean_Parser_Tactic_Conv_ext; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convTraceState___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__11; static lean_object* l_Lean_Parser_Tactic_Conv_erewrite___closed__3; @@ -211,9 +217,9 @@ lean_object* l_Lean_Parser_Tactic_Conv_convArgs; static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__5; lean_object* l_Lean_Parser_Tactic_Conv_conv_quot; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__8; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__22; static lean_object* l_Lean_Parser_Tactic_Conv_whnf___closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_rhs___closed__1; lean_object* l_Lean_Parser_Tactic_Conv_convRw__; static lean_object* l_Lean_Parser_Tactic_Conv_convSkip___closed__4; @@ -222,6 +228,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_erewrite___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convRight___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_convTraceState___closed__4; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__3; @@ -233,18 +240,20 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__7; lean_object* l_Lean_Parser_Tactic_Conv_congr; extern lean_object* l_Lean_Parser_Tactic_simpLemma; lean_object* l_Lean_Parser_Tactic_Conv_convLeft; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__3; uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__1; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__16; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__16; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__12; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__26; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__17; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__18; +static lean_object* l_Lean_Parser_Tactic_Conv_reduce___closed__3; lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e__; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__5; lean_object* l_Lean_Parser_Tactic_Conv_change; @@ -253,12 +262,13 @@ static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_pattern___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convArgs___closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1; +lean_object* l_Lean_Parser_Tactic_Conv_simpMatch; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_convLeft___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_pattern___closed__6; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__14; static lean_object* l_Lean_Parser_Tactic_Conv_convArgs___closed__2; @@ -271,6 +281,8 @@ static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__28; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__5; lean_object* l_Lean_Syntax_getArgs(lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_congr___closed__4; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__15; static lean_object* l_Lean_Parser_Tactic_Conv_convErw_____closed__1; @@ -280,27 +292,26 @@ static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__11; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convRw_____closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__21; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convLeft___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__12; static lean_object* l_Lean_Parser_Tactic_Conv_convLeft___closed__2; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_enterArg___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__23; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__8; static lean_object* l_Lean_Parser_Tactic_Conv_pattern___closed__4; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_rhs___closed__3; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2; +static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_convSkip___closed__3; +static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__2; lean_object* l_Lean_Parser_Tactic_Conv_lhs; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__10; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__1; +static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_erewrite___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__2; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convLeft___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__20; @@ -321,6 +332,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__12; static lean_object* l_Lean_Parser_Tactic_Conv_whnf___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__21; +lean_object* l_Lean_Parser_Tactic_Conv_reduce; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convDone___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_congr___closed__3; @@ -333,14 +345,19 @@ static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__29; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__11; static lean_object* l_Lean_Parser_Tactic_Conv_rhs___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__11; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__22; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__33; static lean_object* l_Lean_Parser_Tactic_Conv_rewrite___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__2; lean_object* l_Lean_Parser_Tactic_Conv_rhs; lean_object* l_Lean_Parser_Tactic_Conv_erewrite; static lean_object* l_Lean_Parser_Tactic_Conv_whnf___closed__3; +static lean_object* l_Lean_Parser_Tactic_Conv_delta___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convApply_____closed__6; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_convSeqBracketed___closed__10; @@ -349,28 +366,29 @@ static lean_object* l_Lean_Parser_Tactic_Conv_simp___closed__20; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__2; static lean_object* l_Lean_Parser_Tactic_Conv_paren___closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_arg___closed__2; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3; +lean_object* l_Lean_Parser_Tactic_Conv_delta; static lean_object* l_Lean_Parser_Tactic_Conv_convRight___closed__5; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__20; -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_606_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_519_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_836_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_763_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_690_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_919_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_637_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_550_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_794_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_867_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_721_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_950_(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_Conv_nestedTactic___closed__4; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__10; static lean_object* l_Lean_Parser_Tactic_Conv_nestedConv___closed__1; lean_object* l_Lean_Parser_Tactic_Conv_convApply__; static lean_object* l_Lean_Parser_Tactic_Conv_convSeq___closed__1; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__19; +static lean_object* l_Lean_Parser_Tactic_Conv_simpMatch___closed__5; +static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1; lean_object* l_Lean_Parser_Tactic_Conv_arg; static lean_object* l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__7; static lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__8; @@ -382,7 +400,7 @@ static lean_object* l_Lean_Parser_Tactic_Conv_nestedConv___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__18; lean_object* l_Lean_Parser_Tactic_Conv_nestedTacticCore; static lean_object* l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__8; -static lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5; +static lean_object* l_Lean_Parser_Tactic_Conv_reduce___closed__1; static lean_object* l_Lean_Parser_Tactic_Conv_conv_quot___closed__3; static lean_object* l_Lean_Parser_Tactic_Conv_conv___closed__9; static lean_object* l_Lean_Parser_Tactic_Conv_ext___closed__12; @@ -1538,6 +1556,58 @@ x_1 = l_Lean_Parser_Tactic_Conv_whnf___closed__4; return x_1; } } +static lean_object* _init_l_Lean_Parser_Tactic_Conv_reduce___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("reduce"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_reduce___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__4; +x_2 = l_Lean_Parser_Tactic_Conv_reduce___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_reduce___closed__3() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_reduce___closed__1; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_reduce___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_reduce___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Tactic_Conv_reduce___closed__3; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_reduce() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_Conv_reduce___closed__4; +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Tactic_Conv_congr___closed__1() { _start: { @@ -1912,6 +1982,80 @@ x_1 = l_Lean_Parser_Tactic_Conv_change___closed__6; return x_1; } } +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__4; +x_2 = l_Lean_Parser_Tactic_Conv_delta___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta "); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_delta___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__10; +x_2 = l_Lean_Parser_Tactic_Conv_delta___closed__4; +x_3 = l_Lean_Parser_Tactic_Conv_conv___closed__8; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_delta___closed__2; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Tactic_Conv_delta___closed__5; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_delta() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_Conv_delta___closed__6; +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Tactic_Conv_pattern___closed__1() { _start: { @@ -2538,6 +2682,66 @@ x_1 = l_Lean_Parser_Tactic_Conv_simp___closed__35; return x_1; } } +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpMatch"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__4; +x_2 = l_Lean_Parser_Tactic_Conv_simpMatch___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpMatch "); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_Conv_simpMatch___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_Conv_simpMatch___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Tactic_Conv_simpMatch___closed__4; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_Conv_simpMatch() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_Conv_simpMatch___closed__5; +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__1() { _start: { @@ -2966,7 +3170,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__9; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1() { _start: { lean_object* x_1; @@ -2974,17 +3178,17 @@ x_1 = lean_mk_string("null"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -2993,7 +3197,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -3002,19 +3206,19 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; +x_1 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -3023,7 +3227,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -3032,7 +3236,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3076,7 +3280,7 @@ lean_inc(x_14); x_19 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_19, 0, x_14); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_20 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_21 = lean_array_push(x_20, x_17); x_22 = lean_array_push(x_21, x_11); x_23 = lean_array_push(x_22, x_19); @@ -3084,17 +3288,17 @@ x_24 = l_Lean_Parser_Tactic_Conv_paren___closed__2; x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_26 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_27 = lean_array_push(x_26, x_25); -x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_29 = lean_array_push(x_27, x_28); x_30 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_32 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_33 = lean_array_push(x_32, x_31); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); @@ -3172,7 +3376,7 @@ lean_inc(x_59); x_65 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_65, 0, x_59); lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_66 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_67 = lean_array_push(x_66, x_63); x_68 = lean_array_push(x_67, x_11); x_69 = lean_array_push(x_68, x_65); @@ -3180,17 +3384,17 @@ x_70 = l_Lean_Parser_Tactic_Conv_paren___closed__2; x_71 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); -x_72 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_72 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_73 = lean_array_push(x_72, x_71); -x_74 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_74 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_75 = lean_array_push(x_73, x_74); x_76 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_77 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_78 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_79 = lean_array_push(x_78, x_77); -x_80 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_80 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); @@ -3329,7 +3533,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convRw_____closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_519_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_550_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3363,7 +3567,7 @@ x_13 = l_Lean_Parser_Tactic_Conv_rewrite___closed__1; x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_16 = lean_array_push(x_15, x_14); x_17 = lean_array_push(x_16, x_9); x_18 = l_Lean_Parser_Tactic_Conv_rewrite___closed__2; @@ -3385,7 +3589,7 @@ x_22 = l_Lean_Parser_Tactic_Conv_rewrite___closed__1; x_23 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_23, 0, x_20); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_24 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_25 = lean_array_push(x_24, x_23); x_26 = lean_array_push(x_25, x_9); x_27 = l_Lean_Parser_Tactic_Conv_rewrite___closed__2; @@ -3474,7 +3678,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convErw_____closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_606_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_637_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3508,7 +3712,7 @@ x_13 = l_Lean_Parser_Tactic_Conv_erewrite___closed__1; x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_16 = lean_array_push(x_15, x_14); x_17 = lean_array_push(x_16, x_9); x_18 = l_Lean_Parser_Tactic_Conv_erewrite___closed__2; @@ -3530,7 +3734,7 @@ x_22 = l_Lean_Parser_Tactic_Conv_erewrite___closed__1; x_23 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_23, 0, x_20); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_24 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_25 = lean_array_push(x_24, x_23); x_26 = lean_array_push(x_25, x_9); x_27 = l_Lean_Parser_Tactic_Conv_erewrite___closed__2; @@ -3605,7 +3809,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convArgs___closed__5; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_690_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_721_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3634,7 +3838,7 @@ x_11 = l_Lean_Parser_Tactic_Conv_congr___closed__1; x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_14 = lean_array_push(x_13, x_12); x_15 = l_Lean_Parser_Tactic_Conv_congr___closed__2; x_16 = lean_alloc_ctor(1, 2, 0); @@ -3655,7 +3859,7 @@ x_19 = l_Lean_Parser_Tactic_Conv_congr___closed__1; x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_22 = lean_array_push(x_21, x_20); x_23 = l_Lean_Parser_Tactic_Conv_congr___closed__2; x_24 = lean_alloc_ctor(1, 2, 0); @@ -3729,7 +3933,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convLeft___closed__5; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_763_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_794_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3758,7 +3962,7 @@ x_11 = l_Lean_Parser_Tactic_Conv_lhs___closed__1; x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_14 = lean_array_push(x_13, x_12); x_15 = l_Lean_Parser_Tactic_Conv_lhs___closed__2; x_16 = lean_alloc_ctor(1, 2, 0); @@ -3779,7 +3983,7 @@ x_19 = l_Lean_Parser_Tactic_Conv_lhs___closed__1; x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_22 = lean_array_push(x_21, x_20); x_23 = l_Lean_Parser_Tactic_Conv_lhs___closed__2; x_24 = lean_alloc_ctor(1, 2, 0); @@ -3853,7 +4057,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convRight___closed__5; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_836_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_867_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3882,7 +4086,7 @@ x_11 = l_Lean_Parser_Tactic_Conv_rhs___closed__1; x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_14 = lean_array_push(x_13, x_12); x_15 = l_Lean_Parser_Tactic_Conv_rhs___closed__2; x_16 = lean_alloc_ctor(1, 2, 0); @@ -3903,7 +4107,7 @@ x_19 = l_Lean_Parser_Tactic_Conv_rhs___closed__1; x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_22 = lean_array_push(x_21, x_20); x_23 = l_Lean_Parser_Tactic_Conv_rhs___closed__2; x_24 = lean_alloc_ctor(1, 2, 0); @@ -3991,7 +4195,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convIntro_________closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_919_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_950_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4027,13 +4231,13 @@ lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); x_15 = l_Lean_Syntax_getArgs(x_9); lean_dec(x_9); -x_16 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; +x_16 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; x_17 = l_Array_append___rarg(x_16, x_15); -x_18 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_18 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_20 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_21 = lean_array_push(x_20, x_14); x_22 = lean_array_push(x_21, x_19); x_23 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -4057,13 +4261,13 @@ lean_ctor_set(x_28, 0, x_25); lean_ctor_set(x_28, 1, x_27); x_29 = l_Lean_Syntax_getArgs(x_9); lean_dec(x_9); -x_30 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; +x_30 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; x_31 = l_Array_append___rarg(x_30, x_29); -x_32 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_32 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_35 = lean_array_push(x_34, x_28); x_36 = lean_array_push(x_35, x_33); x_37 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -4264,7 +4468,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__10; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1() { _start: { lean_object* x_1; @@ -4272,7 +4476,7 @@ x_1 = lean_mk_string("enter"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -4281,7 +4485,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3() { _start: { lean_object* x_1; @@ -4289,17 +4493,17 @@ x_1 = lean_mk_string("numLit"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4389,7 +4593,7 @@ lean_inc(x_30); x_32 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1; +x_33 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1; lean_inc(x_30); x_34 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_34, 0, x_30); @@ -4399,9 +4603,9 @@ lean_inc(x_30); x_36 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_36, 0, x_30); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_37 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_38 = lean_array_push(x_37, x_18); -x_39 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_39 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_38); @@ -4410,7 +4614,7 @@ lean_inc(x_30); x_42 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_42, 0, x_30); lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2; +x_43 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2; x_44 = lean_array_push(x_43, x_34); x_45 = lean_array_push(x_44, x_36); lean_inc(x_45); @@ -4429,14 +4633,14 @@ x_51 = lean_array_push(x_37, x_50); x_52 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_52, 0, x_39); lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_53 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_54 = lean_array_push(x_53, x_48); x_55 = lean_array_push(x_54, x_52); x_56 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; +x_58 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; x_59 = l_Array_append___rarg(x_58, x_27); x_60 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_60, 0, x_39); @@ -4447,7 +4651,7 @@ x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_4); lean_ctor_set(x_63, 1, x_62); x_64 = lean_array_push(x_53, x_63); -x_65 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_65 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_66 = lean_array_push(x_64, x_65); x_67 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_67, 0, x_56); @@ -4471,7 +4675,7 @@ x_77 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__19; x_78 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_78, 0, x_30); lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_79 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_80 = lean_array_push(x_79, x_32); x_81 = lean_array_push(x_80, x_76); x_82 = lean_array_push(x_81, x_78); @@ -4495,7 +4699,7 @@ lean_inc(x_85); x_88 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_88, 0, x_85); lean_ctor_set(x_88, 1, x_87); -x_89 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1; +x_89 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1; lean_inc(x_85); x_90 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_90, 0, x_85); @@ -4505,9 +4709,9 @@ lean_inc(x_85); x_92 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_92, 0, x_85); lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_93 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_94 = lean_array_push(x_93, x_18); -x_95 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_95 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); @@ -4516,7 +4720,7 @@ lean_inc(x_85); x_98 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_98, 0, x_85); lean_ctor_set(x_98, 1, x_97); -x_99 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2; +x_99 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2; x_100 = lean_array_push(x_99, x_90); x_101 = lean_array_push(x_100, x_92); lean_inc(x_101); @@ -4535,14 +4739,14 @@ x_107 = lean_array_push(x_93, x_106); x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_95); lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_109 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_110 = lean_array_push(x_109, x_104); x_111 = lean_array_push(x_110, x_108); x_112 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_113 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_113, 0, x_112); lean_ctor_set(x_113, 1, x_111); -x_114 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4; +x_114 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4; x_115 = l_Array_append___rarg(x_114, x_27); x_116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_116, 0, x_95); @@ -4553,7 +4757,7 @@ x_119 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_119, 0, x_4); lean_ctor_set(x_119, 1, x_118); x_120 = lean_array_push(x_109, x_119); -x_121 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_121 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_122 = lean_array_push(x_120, x_121); x_123 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_123, 0, x_112); @@ -4577,7 +4781,7 @@ x_133 = l_Lean_Parser_Tactic_Conv_conv_quot___closed__19; x_134 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_134, 0, x_85); lean_ctor_set(x_134, 1, x_133); -x_135 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_135 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_136 = lean_array_push(x_135, x_88); x_137 = lean_array_push(x_136, x_132); x_138 = lean_array_push(x_137, x_134); @@ -4618,7 +4822,7 @@ else lean_object* x_148; lean_object* x_149; uint8_t x_150; x_148 = l_Lean_Syntax_getArg(x_143, x_142); lean_dec(x_143); -x_149 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4; +x_149 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4; lean_inc(x_148); x_150 = l_Lean_Syntax_isOfKind(x_148, x_149); if (x_150 == 0) @@ -4651,13 +4855,13 @@ x_158 = l_Lean_Parser_Tactic_Conv_ext___closed__1; x_159 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_159, 0, x_157); lean_ctor_set(x_159, 1, x_158); -x_160 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_160 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_161 = lean_array_push(x_160, x_148); -x_162 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_162 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_163 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_163, 0, x_162); lean_ctor_set(x_163, 1, x_161); -x_164 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_164 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_165 = lean_array_push(x_164, x_159); x_166 = lean_array_push(x_165, x_163); x_167 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -4679,13 +4883,13 @@ x_171 = l_Lean_Parser_Tactic_Conv_ext___closed__1; x_172 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_172, 0, x_169); lean_ctor_set(x_172, 1, x_171); -x_173 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_173 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_174 = lean_array_push(x_173, x_148); -x_175 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_175 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_176 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_176, 0, x_175); lean_ctor_set(x_176, 1, x_174); -x_177 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_177 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_178 = lean_array_push(x_177, x_172); x_179 = lean_array_push(x_178, x_176); x_180 = l_Lean_Parser_Tactic_Conv_ext___closed__2; @@ -4712,7 +4916,7 @@ x_186 = l_Lean_Parser_Tactic_Conv_arg___closed__1; x_187 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_187, 0, x_185); lean_ctor_set(x_187, 1, x_186); -x_188 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_188 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_189 = lean_array_push(x_188, x_187); x_190 = lean_array_push(x_189, x_148); x_191 = l_Lean_Parser_Tactic_Conv_arg___closed__2; @@ -4734,7 +4938,7 @@ x_195 = l_Lean_Parser_Tactic_Conv_arg___closed__1; x_196 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_196, 0, x_193); lean_ctor_set(x_196, 1, x_195); -x_197 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_197 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_198 = lean_array_push(x_197, x_196); x_199 = lean_array_push(x_198, x_148); x_200 = l_Lean_Parser_Tactic_Conv_arg___closed__2; @@ -4812,7 +5016,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convSkip___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1() { _start: { lean_object* x_1; @@ -4820,7 +5024,7 @@ x_1 = lean_mk_string("=>"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4830,7 +5034,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3() { _start: { lean_object* x_1; @@ -4838,17 +5042,17 @@ x_1 = lean_mk_string("tacticSeq1Indented"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__2; -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5() { _start: { lean_object* x_1; @@ -4856,17 +5060,17 @@ x_1 = lean_mk_string("tacticRfl"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__2; -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7() { _start: { lean_object* x_1; @@ -4874,7 +5078,7 @@ x_1 = lean_mk_string("rfl"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4904,45 +5108,45 @@ lean_inc(x_10); x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7; +x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7; x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_10); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_18 = lean_array_push(x_17, x_16); -x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6; +x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6; x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_22 = lean_array_push(x_21, x_20); -x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_24 = lean_array_push(x_22, x_23); x_25 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); x_27 = lean_array_push(x_17, x_26); -x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); x_30 = lean_array_push(x_17, x_29); -x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); x_33 = lean_array_push(x_17, x_32); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_37 = lean_array_push(x_36, x_12); x_38 = lean_array_push(x_37, x_14); x_39 = lean_array_push(x_38, x_35); @@ -4966,45 +5170,45 @@ lean_inc(x_42); x_45 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_45, 0, x_42); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_42); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_42); lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7; +x_48 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7; x_49 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_49, 0, x_42); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_51 = lean_array_push(x_50, x_49); -x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6; +x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6; x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_55 = lean_array_push(x_54, x_53); -x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_57 = lean_array_push(x_55, x_56); x_58 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); x_60 = lean_array_push(x_50, x_59); -x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_62 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); x_63 = lean_array_push(x_50, x_62); -x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_65 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); x_66 = lean_array_push(x_50, x_65); -x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_70 = lean_array_push(x_69, x_45); x_71 = lean_array_push(x_70, x_47); x_72 = lean_array_push(x_71, x_68); @@ -5080,7 +5284,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convDone___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5090,7 +5294,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -5120,7 +5324,7 @@ lean_inc(x_10); x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); @@ -5129,36 +5333,36 @@ x_15 = l_Lean_Parser_Tactic_Conv_convDone___closed__3; x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_10); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_18 = lean_array_push(x_17, x_16); -x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1; +x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1; x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_22 = lean_array_push(x_21, x_20); -x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_24 = lean_array_push(x_22, x_23); x_25 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); x_27 = lean_array_push(x_17, x_26); -x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); x_30 = lean_array_push(x_17, x_29); -x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); x_33 = lean_array_push(x_17, x_32); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_37 = lean_array_push(x_36, x_12); x_38 = lean_array_push(x_37, x_14); x_39 = lean_array_push(x_38, x_35); @@ -5182,7 +5386,7 @@ lean_inc(x_42); x_45 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_45, 0, x_42); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_42); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_42); @@ -5191,36 +5395,36 @@ x_48 = l_Lean_Parser_Tactic_Conv_convDone___closed__3; x_49 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_49, 0, x_42); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_51 = lean_array_push(x_50, x_49); -x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1; +x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1; x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_55 = lean_array_push(x_54, x_53); -x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_57 = lean_array_push(x_55, x_56); x_58 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); x_60 = lean_array_push(x_50, x_59); -x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_62 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); x_63 = lean_array_push(x_50, x_62); -x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_65 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); x_66 = lean_array_push(x_50, x_65); -x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_70 = lean_array_push(x_69, x_45); x_71 = lean_array_push(x_70, x_47); x_72 = lean_array_push(x_71, x_68); @@ -5296,7 +5500,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convTraceState___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5306,7 +5510,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -5336,7 +5540,7 @@ lean_inc(x_10); x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_13 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); @@ -5345,36 +5549,36 @@ x_15 = l_Lean_Parser_Tactic_Conv_convTraceState___closed__3; x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_10); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_18 = lean_array_push(x_17, x_16); -x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1; +x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1; x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_21 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_22 = lean_array_push(x_21, x_20); -x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_23 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_24 = lean_array_push(x_22, x_23); x_25 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); x_27 = lean_array_push(x_17, x_26); -x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_28 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); x_30 = lean_array_push(x_17, x_29); -x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); x_33 = lean_array_push(x_17, x_32); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_36 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_37 = lean_array_push(x_36, x_12); x_38 = lean_array_push(x_37, x_14); x_39 = lean_array_push(x_38, x_35); @@ -5398,7 +5602,7 @@ lean_inc(x_42); x_45 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_45, 0, x_42); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_46 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_42); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_42); @@ -5407,36 +5611,36 @@ x_48 = l_Lean_Parser_Tactic_Conv_convTraceState___closed__3; x_49 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_49, 0, x_42); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_50 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_51 = lean_array_push(x_50, x_49); -x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1; +x_52 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1; x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_54 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_55 = lean_array_push(x_54, x_53); -x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_57 = lean_array_push(x_55, x_56); x_58 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); x_60 = lean_array_push(x_50, x_59); -x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_61 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_62 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); x_63 = lean_array_push(x_50, x_62); -x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_64 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_65 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); x_66 = lean_array_push(x_50, x_65); -x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_67 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_69 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_70 = lean_array_push(x_69, x_45); x_71 = lean_array_push(x_70, x_47); x_72 = lean_array_push(x_71, x_68); @@ -5526,7 +5730,7 @@ x_1 = l_Lean_Parser_Tactic_Conv_convApply_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1() { _start: { lean_object* x_1; @@ -5534,17 +5738,17 @@ x_1 = lean_mk_string("apply"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__2; -x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1; +x_2 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -5579,46 +5783,46 @@ lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_15 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1; +x_17 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1; x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_19 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_20 = lean_array_push(x_19, x_18); x_21 = lean_array_push(x_20, x_9); -x_22 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2; +x_22 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2; x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); x_24 = lean_array_push(x_19, x_23); -x_25 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_25 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_26 = lean_array_push(x_24, x_25); x_27 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_29 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_30 = lean_array_push(x_29, x_28); -x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_31 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); x_33 = lean_array_push(x_29, x_32); -x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_34 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); x_36 = lean_array_push(x_29, x_35); -x_37 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_37 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); -x_39 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_39 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_40 = lean_array_push(x_39, x_14); x_41 = lean_array_push(x_40, x_16); x_42 = lean_array_push(x_41, x_38); @@ -5642,46 +5846,46 @@ lean_inc(x_45); x_48 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_48, 0, x_45); lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1; +x_49 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1; lean_inc(x_45); x_50 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_50, 0, x_45); lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1; +x_51 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1; x_52 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_52, 0, x_45); lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6; +x_53 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6; x_54 = lean_array_push(x_53, x_52); x_55 = lean_array_push(x_54, x_9); -x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2; +x_56 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2; x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); x_58 = lean_array_push(x_53, x_57); -x_59 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5; +x_59 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5; x_60 = lean_array_push(x_58, x_59); x_61 = l_Lean_Parser_Tactic_Conv_convSeq1Indented___closed__12; x_62 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7; +x_63 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7; x_64 = lean_array_push(x_63, x_62); -x_65 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2; +x_65 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2; x_66 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_64); x_67 = lean_array_push(x_63, x_66); -x_68 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4; +x_68 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4; x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); x_70 = lean_array_push(x_63, x_69); -x_71 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2; +x_71 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); -x_73 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3; +x_73 = l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3; x_74 = lean_array_push(x_73, x_48); x_75 = lean_array_push(x_74, x_50); x_76 = lean_array_push(x_75, x_72); @@ -5928,6 +6132,16 @@ l_Lean_Parser_Tactic_Conv_whnf___closed__4 = _init_l_Lean_Parser_Tactic_Conv_whn lean_mark_persistent(l_Lean_Parser_Tactic_Conv_whnf___closed__4); l_Lean_Parser_Tactic_Conv_whnf = _init_l_Lean_Parser_Tactic_Conv_whnf(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_whnf); +l_Lean_Parser_Tactic_Conv_reduce___closed__1 = _init_l_Lean_Parser_Tactic_Conv_reduce___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_reduce___closed__1); +l_Lean_Parser_Tactic_Conv_reduce___closed__2 = _init_l_Lean_Parser_Tactic_Conv_reduce___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_reduce___closed__2); +l_Lean_Parser_Tactic_Conv_reduce___closed__3 = _init_l_Lean_Parser_Tactic_Conv_reduce___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_reduce___closed__3); +l_Lean_Parser_Tactic_Conv_reduce___closed__4 = _init_l_Lean_Parser_Tactic_Conv_reduce___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_reduce___closed__4); +l_Lean_Parser_Tactic_Conv_reduce = _init_l_Lean_Parser_Tactic_Conv_reduce(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_reduce); l_Lean_Parser_Tactic_Conv_congr___closed__1 = _init_l_Lean_Parser_Tactic_Conv_congr___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_congr___closed__1); l_Lean_Parser_Tactic_Conv_congr___closed__2 = _init_l_Lean_Parser_Tactic_Conv_congr___closed__2(); @@ -6000,6 +6214,20 @@ l_Lean_Parser_Tactic_Conv_change___closed__6 = _init_l_Lean_Parser_Tactic_Conv_c lean_mark_persistent(l_Lean_Parser_Tactic_Conv_change___closed__6); l_Lean_Parser_Tactic_Conv_change = _init_l_Lean_Parser_Tactic_Conv_change(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_change); +l_Lean_Parser_Tactic_Conv_delta___closed__1 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__1); +l_Lean_Parser_Tactic_Conv_delta___closed__2 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__2); +l_Lean_Parser_Tactic_Conv_delta___closed__3 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__3); +l_Lean_Parser_Tactic_Conv_delta___closed__4 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__4); +l_Lean_Parser_Tactic_Conv_delta___closed__5 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__5); +l_Lean_Parser_Tactic_Conv_delta___closed__6 = _init_l_Lean_Parser_Tactic_Conv_delta___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta___closed__6); +l_Lean_Parser_Tactic_Conv_delta = _init_l_Lean_Parser_Tactic_Conv_delta(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_delta); l_Lean_Parser_Tactic_Conv_pattern___closed__1 = _init_l_Lean_Parser_Tactic_Conv_pattern___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_pattern___closed__1); l_Lean_Parser_Tactic_Conv_pattern___closed__2 = _init_l_Lean_Parser_Tactic_Conv_pattern___closed__2(); @@ -6114,6 +6342,18 @@ l_Lean_Parser_Tactic_Conv_simp___closed__35 = _init_l_Lean_Parser_Tactic_Conv_si lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp___closed__35); l_Lean_Parser_Tactic_Conv_simp = _init_l_Lean_Parser_Tactic_Conv_simp(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simp); +l_Lean_Parser_Tactic_Conv_simpMatch___closed__1 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch___closed__1); +l_Lean_Parser_Tactic_Conv_simpMatch___closed__2 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch___closed__2); +l_Lean_Parser_Tactic_Conv_simpMatch___closed__3 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch___closed__3); +l_Lean_Parser_Tactic_Conv_simpMatch___closed__4 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch___closed__4); +l_Lean_Parser_Tactic_Conv_simpMatch___closed__5 = _init_l_Lean_Parser_Tactic_Conv_simpMatch___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch___closed__5); +l_Lean_Parser_Tactic_Conv_simpMatch = _init_l_Lean_Parser_Tactic_Conv_simpMatch(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_simpMatch); l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__1 = _init_l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__1); l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__2 = _init_l_Lean_Parser_Tactic_Conv_nestedTacticCore___closed__2(); @@ -6194,20 +6434,20 @@ l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__9 = _init_l_Lean_Parser_Tacti lean_mark_persistent(l_Lean_Parser_Tactic_Conv_conv_xb7_x2e_____closed__9); l_Lean_Parser_Tactic_Conv_conv_xb7_x2e__ = _init_l_Lean_Parser_Tactic_Conv_conv_xb7_x2e__(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_conv_xb7_x2e__); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__1); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__2); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__3); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__4); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__5); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__6); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_390____closed__7); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__2); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__3); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__4); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__5); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__6); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_421____closed__7); l_Lean_Parser_Tactic_Conv_convRw_____closed__1 = _init_l_Lean_Parser_Tactic_Conv_convRw_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convRw_____closed__1); l_Lean_Parser_Tactic_Conv_convRw_____closed__2 = _init_l_Lean_Parser_Tactic_Conv_convRw_____closed__2(); @@ -6318,14 +6558,14 @@ l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__10 = _init_l_Lean_Pars lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d___closed__10); l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d = _init_l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convEnter_x5b_____x5d); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__1); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__2); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__3); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1038____closed__4); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__2); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__3); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1069____closed__4); l_Lean_Parser_Tactic_Conv_convSkip___closed__1 = _init_l_Lean_Parser_Tactic_Conv_convSkip___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convSkip___closed__1); l_Lean_Parser_Tactic_Conv_convSkip___closed__2 = _init_l_Lean_Parser_Tactic_Conv_convSkip___closed__2(); @@ -6338,20 +6578,20 @@ l_Lean_Parser_Tactic_Conv_convSkip___closed__5 = _init_l_Lean_Parser_Tactic_Conv lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convSkip___closed__5); l_Lean_Parser_Tactic_Conv_convSkip = _init_l_Lean_Parser_Tactic_Conv_convSkip(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convSkip); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__1); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__2); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__3); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__4); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__5); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__6); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1468____closed__7); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__2); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__3); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__4); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__5); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__6); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1499____closed__7); l_Lean_Parser_Tactic_Conv_convDone___closed__1 = _init_l_Lean_Parser_Tactic_Conv_convDone___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convDone___closed__1); l_Lean_Parser_Tactic_Conv_convDone___closed__2 = _init_l_Lean_Parser_Tactic_Conv_convDone___closed__2(); @@ -6364,8 +6604,8 @@ l_Lean_Parser_Tactic_Conv_convDone___closed__5 = _init_l_Lean_Parser_Tactic_Conv lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convDone___closed__5); l_Lean_Parser_Tactic_Conv_convDone = _init_l_Lean_Parser_Tactic_Conv_convDone(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convDone); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1579____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1610____closed__1); l_Lean_Parser_Tactic_Conv_convTraceState___closed__1 = _init_l_Lean_Parser_Tactic_Conv_convTraceState___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convTraceState___closed__1); l_Lean_Parser_Tactic_Conv_convTraceState___closed__2 = _init_l_Lean_Parser_Tactic_Conv_convTraceState___closed__2(); @@ -6378,8 +6618,8 @@ l_Lean_Parser_Tactic_Conv_convTraceState___closed__5 = _init_l_Lean_Parser_Tacti lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convTraceState___closed__5); l_Lean_Parser_Tactic_Conv_convTraceState = _init_l_Lean_Parser_Tactic_Conv_convTraceState(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convTraceState); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1690____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1721____closed__1); l_Lean_Parser_Tactic_Conv_convApply_____closed__1 = _init_l_Lean_Parser_Tactic_Conv_convApply_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convApply_____closed__1); l_Lean_Parser_Tactic_Conv_convApply_____closed__2 = _init_l_Lean_Parser_Tactic_Conv_convApply_____closed__2(); @@ -6394,10 +6634,10 @@ l_Lean_Parser_Tactic_Conv_convApply_____closed__6 = _init_l_Lean_Parser_Tactic_C lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convApply_____closed__6); l_Lean_Parser_Tactic_Conv_convApply__ = _init_l_Lean_Parser_Tactic_Conv_convApply__(); lean_mark_persistent(l_Lean_Parser_Tactic_Conv_convApply__); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__1); -l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1806____closed__2); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__1); +l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2 = _init_l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_Conv_myMacro____x40_Init_Conv___hyg_1837____closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Notation.c b/stage0/stdlib/Init/Notation.c index bd15eee52b..cffc3687cb 100644 --- a/stage0/stdlib/Init/Notation.c +++ b/stage0/stdlib/Init/Notation.c @@ -63,7 +63,6 @@ lean_object* l_term___x5e_x5e_x5e__; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_2554____closed__5; static lean_object* l_Lean_Parser_Tactic_first___closed__8; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2; lean_object* l_Lean_Parser_Tactic_first; static lean_object* l_Lean_Parser_Tactic_letrec___closed__12; static lean_object* l_Lean_term__Matches_____closed__6; @@ -105,7 +104,6 @@ static lean_object* l_Lean_Parser_Syntax_addPrec___closed__9; static lean_object* l_myMacro____x40_Init_Notation___hyg_13179____closed__1; static lean_object* l_term___x2d_____closed__1; static lean_object* l_termMax__prec___closed__1; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3; static lean_object* l_precLead___closed__4; lean_object* l_term_x2d__; lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -116,6 +114,7 @@ lean_object* l_Lean_Parser_Tactic_renameI; static lean_object* l_precMax___closed__3; lean_object* l_Lean_Parser_Tactic_refine_x27; static lean_object* l_Lean_Parser_Tactic_first___closed__9; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_7100____closed__6; static lean_object* l_Lean_Parser_Tactic_erwSeq___closed__3; lean_object* l_Lean_Syntax_getHeadInfo_x3f(lean_object*); @@ -141,14 +140,13 @@ static lean_object* l_term___x3d_x3d_____closed__6; static lean_object* l_term___u2227_____closed__3; static lean_object* l_Lean_Parser_Tactic_simp___closed__26; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__19; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4; static lean_object* l_term_x5b___x5d___closed__9; static lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__6; +static lean_object* l_Lean_Parser_Tactic_delta___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_4705____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__27; static lean_object* l_myMacro____x40_Init_Notation___hyg_2554____closed__1; static lean_object* l_term___x2b_____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_13514____closed__3; static lean_object* l_term___x3c_____closed__1; @@ -170,11 +168,11 @@ static lean_object* l_Lean_Parser_Attr_simp___closed__6; lean_object* l_Lean_Parser_Attr_simp; static lean_object* l_myMacro____x40_Init_Notation___hyg_5637____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_10258____closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_4466____closed__8; static lean_object* l_term___x7e_x3d_____closed__2; static lean_object* l_term___x26_x26_x26_____closed__3; static lean_object* l_term___xd7_____closed__6; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1; static lean_object* l_term___u2245_____closed__2; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__1; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__6; @@ -187,7 +185,7 @@ lean_object* l_myMacro____x40_Init_Notation___hyg_6861_(lean_object*, lean_objec lean_object* l_myMacro____x40_Init_Notation___hyg_7100_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Notation___hyg_7339_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Notation___hyg_7578_(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_Notation___hyg_20395_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_Notation___hyg_20519_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Notation___hyg_9187_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Notation___hyg_9091_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_Notation___hyg_8995_(lean_object*, lean_object*, lean_object*); @@ -285,6 +283,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_7817____closed__2; static lean_object* l_term___x3e_x3e_x3e_____closed__2; static lean_object* l_term___x3e_x3d_____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__5; +static lean_object* l_Lean_Parser_Tactic_delta___closed__7; lean_object* l_term___x3e_x3e_x3d__; static lean_object* l_myMacro____x40_Init_Notation___hyg_4466____closed__1; lean_object* l_Lean_Parser_Tactic_changeWith; @@ -307,10 +306,10 @@ static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_1676 static lean_object* l_term___x3c_x3c_x3c_____closed__5; static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16542____closed__1; static lean_object* l_Lean_Parser_Tactic_simpLemma___closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1; static lean_object* l_termDepIfThenElse___closed__31; static lean_object* l_stx___x3c_x7c_x3e_____closed__1; static lean_object* l_Lean_Parser_Tactic_rwWithRfl___closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5; lean_object* l_Lean_SourceInfo_fromRef(lean_object*); static lean_object* l_Lean_Parser_Tactic_simpAll___closed__8; static lean_object* l_term___x3c_____closed__2; @@ -318,6 +317,7 @@ lean_object* l_Lean_Parser_Tactic_simpAll; static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__7; static lean_object* l_Lean_Parser_Tactic_generalize___closed__4; static lean_object* l_Lean_Parser_Tactic_first___closed__1; +static lean_object* l_Lean_Parser_Tactic_delta___closed__2; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__10; static lean_object* l_Lean_Parser_Tactic_revert___closed__8; static lean_object* l_term___x24_______closed__6; @@ -329,6 +329,7 @@ static lean_object* l_Lean_Parser_Tactic_locationWildcard___closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__2; static lean_object* l_term___x2f_x5c_____closed__6; static lean_object* l_Lean_Parser_Tactic_intro___closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1; static lean_object* l_Lean_Parser_Tactic_simp___closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_2554____closed__4; static lean_object* l_term___x3e_x3e_x3d_____closed__3; @@ -351,7 +352,6 @@ static lean_object* l_term___x2a_x3e_____closed__6; static lean_object* l_term___u2218_____closed__6; static lean_object* l_Lean_Parser_Tactic_tacticInferInstance___closed__4; static lean_object* l_Lean_Parser_Tactic_simpStar___closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4; static lean_object* l_term___x7c_x3e_____closed__2; static lean_object* l_precMax___closed__2; static lean_object* l_Lean_Parser_Syntax_subPrec___closed__3; @@ -359,6 +359,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_4227____closed__3; static lean_object* l_term___x7c_x7c_____closed__5; static lean_object* l_Lean_Parser_Tactic_location___closed__3; static lean_object* l_term___u2265_____closed__2; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4; static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_12335____closed__1; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__1; @@ -382,11 +383,13 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_11911____closed__4; static lean_object* l_stx_x21_____closed__1; static lean_object* l_Lean_Parser_Tactic_rename___closed__3; static lean_object* l_term___x3c_x2a_____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_2554____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__2; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__13; static lean_object* l_myMacro____x40_Init_Notation___hyg_14471____closed__1; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__6; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4; static lean_object* l_term___u2264_____closed__4; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__4; lean_object* l_rawNatLit; @@ -395,7 +398,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_7339____closed__7; static lean_object* l_Lean_Parser_Tactic_change___closed__4; static lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__2; lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15090__expandListLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2; lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15090__expandListLit(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__12; static lean_object* l_term___x5e_____closed__7; @@ -409,6 +411,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_12708____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_3032____closed__9; static lean_object* l_term___x7c_x7c_x7c_____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_10258____closed__1; +static lean_object* l_myMacro____x40_Init_Notation___hyg_20519____closed__1; static lean_object* l_Lean_Parser_Tactic_injection___closed__8; static lean_object* l_Lean_Parser_Tactic_changeWith___closed__5; lean_object* l_prioMid; @@ -425,6 +428,7 @@ static lean_object* l_Lean_Parser_Tactic_intro___closed__13; static lean_object* l_myMacro____x40_Init_Notation___hyg_13514____closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_984____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_1377____closed__1; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8; static lean_object* l_term_u2039___u203a___closed__5; static lean_object* l_termDepIfThenElse___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_5421____closed__3; @@ -470,7 +474,6 @@ static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__1; static lean_object* l_term___x3e_x3e_____closed__3; static lean_object* l_rawNatLit___closed__2; static lean_object* l_Lean_Parser_Tactic_locationTargets___closed__3; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3; static lean_object* l_Lean_Parser_Tactic_cases___closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_10951____closed__2; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__6; @@ -498,7 +501,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_8995____closed__1; lean_object* lean_array_get_size(lean_object*); lean_object* l_termDepIfThenElse; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__12; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_11427____closed__1; static lean_object* l_Lean_Parser_Tactic_erewriteSeq___closed__5; static lean_object* l_precLead___closed__3; @@ -508,7 +510,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_12335____closed__2; static lean_object* l_Lean_Parser_Tactic_contradiction___closed__1; static lean_object* l_term_u2039___u203a___closed__2; static lean_object* l_rawNatLit___closed__4; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1; static lean_object* l_Lean_Parser_Tactic_simp___closed__20; static lean_object* l_term___x24_______closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_13681____closed__2; @@ -524,11 +525,13 @@ lean_object* l_term_x7e_x7e_x7e__; lean_object* l_term___x3c__; static lean_object* l_Lean_Parser_Tactic_erewriteSeq___closed__3; static lean_object* l_Lean_Parser_Tactic_tacticInferInstance___closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2; static lean_object* l_Lean_Parser_Tactic_rotateRight___closed__1; lean_object* l_term___x3c_x7c__; static lean_object* l_Lean_Parser_Tactic_intros___closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__25; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_8534____closed__5; lean_object* l_term___x2b_x2b__; static lean_object* l_Lean_Parser_Tactic_renameI___closed__2; @@ -536,10 +539,8 @@ static lean_object* l_termDepIfThenElse___closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_11911____closed__2; static lean_object* l_Lean_Parser_Tactic_cases___closed__3; static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__5; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_13514____closed__1; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1; static lean_object* l_term___u2218_____closed__1; static lean_object* l_Lean_Parser_Tactic_clear___closed__4; static lean_object* l_Lean_Parser_Tactic_existsIntro___closed__4; @@ -570,7 +571,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__9; static lean_object* l_Lean_Parser_Tactic_split___closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_3510____closed__9; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__6; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__6; static lean_object* l_Lean_Parser_Tactic_revert___closed__4; static lean_object* l_termMax__prec___closed__3; @@ -599,6 +600,7 @@ lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d__; lean_object* l_Lean_Parser_Tactic_rename; static lean_object* l_Lean_Parser_Tactic_cases___closed__1; static lean_object* l_stx___x3c_x7c_x3e_____closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1; static lean_object* l_stx_x21_____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__1; static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__2; @@ -621,11 +623,9 @@ static lean_object* l_Lean_Parser_Tactic_intros___closed__6; static lean_object* l_prec_x28___x29___closed__2; static lean_object* l_Lean_Parser_Tactic_first___closed__12; lean_object* l_Lean_Parser_Tactic_contradiction; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__15; static lean_object* l_Lean_Parser_Tactic_clear___closed__1; static lean_object* l_termWithout__expected__type_____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_3749____closed__6; static lean_object* l_Lean_Parser_Tactic_clear___closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_3032____closed__8; @@ -701,13 +701,13 @@ static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__15; static lean_object* l_term___x3a_x3a_____closed__4; static lean_object* l_Lean_Parser_Tactic_cases___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_11644____closed__9; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4; lean_object* l_Lean_Parser_Tactic_assumption; lean_object* l_term___x3e__; lean_object* l_termMax__prec; static lean_object* l_Lean_Parser_Tactic_tacticRefineLift_____closed__4; static lean_object* l_Lean_Parser_Tactic_subst___closed__2; static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__7; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4; static lean_object* l_Lean_Parser_Tactic_focus___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_1954____closed__2; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__5; @@ -723,17 +723,21 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_7817____closed__5; static lean_object* l_term___u2218_____closed__8; static lean_object* l_Lean_Parser_Tactic_cases___closed__9; static lean_object* l_Lean_Parser_Tactic_induction___closed__11; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15090____closed__2; static lean_object* l_Lean_Parser_Tactic_intro___closed__12; static lean_object* l_term___x24_______closed__1; static lean_object* l_Lean_Parser_Tactic_simp___closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2; static lean_object* l_term___x3c_x24_x3e_____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_11644____closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3; static lean_object* l_term_x21_____closed__2; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15090____closed__1; static lean_object* l_term___x7c_x7c_x7c_____closed__6; static lean_object* l_term___x5c_x2f_____closed__5; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__10; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5; static lean_object* l_stx___x2a___closed__1; static lean_object* l_Lean_Parser_Tactic_location___closed__6; static lean_object* l_Lean_Parser_Tactic_clear___closed__3; @@ -758,7 +762,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_1256____closed__4; static lean_object* l_Lean_Parser_Tactic_erwSeq___closed__1; static lean_object* l_Lean_Parser_Attr_simp___closed__3; static lean_object* l_Lean_Parser_Tactic_rename___closed__10; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_5183____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__5; @@ -776,10 +779,12 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_13026____closed__2; static lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__5; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__9; +static lean_object* l_Lean_Parser_Tactic_delta___closed__6; static lean_object* l_Lean_Parser_Tactic_traceState___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_5421____closed__2; lean_object* l_Lean_Parser_Tactic_allGoals; lean_object* l_Lean_Parser_Tactic_tacticRefineLift_x27__; +static lean_object* l_myMacro____x40_Init_Notation___hyg_20519____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_12930____closed__6; static lean_object* l_term___x3c_x7c_____closed__2; static lean_object* l_Lean_Parser_Tactic_refine___closed__3; @@ -790,6 +795,7 @@ lean_object* l_Lean_Parser_Tactic_cases; static lean_object* l_term_u2039___u203a___closed__1; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__9; static lean_object* l_term___x3c_x7c_x3e_____closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_13179____closed__5; static lean_object* l_term_x21_____closed__1; static lean_object* l_Lean_Parser_Tactic_tactic_xb7_x2e_____closed__4; @@ -813,6 +819,7 @@ static lean_object* l_Lean_Parser_Tactic_letrec___closed__13; static lean_object* l_stx___x2a___closed__2; static lean_object* l_Lean_Parser_Tactic_withReducible___closed__1; static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4; static lean_object* l_Lean_Parser_Tactic_apply___closed__3; static lean_object* l_Lean_Parser_Tactic_clear___closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_7100____closed__1; @@ -822,7 +829,6 @@ static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__2; static lean_object* l_term___x3c_x3c_x3c_____closed__6; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__14; lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1; static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__5; static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__8; static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__4; @@ -855,6 +861,7 @@ static lean_object* l_term___x3e_x3d_____closed__3; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_4227____closed__4; static lean_object* l_term___x2a_____closed__7; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_8295____closed__8; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__20; static lean_object* l_term___x24_______closed__9; @@ -867,10 +874,10 @@ lean_object* l_Lean_Parser_Tactic_locationTargets; static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__4; static lean_object* l_Lean_Parser_Tactic_change___closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_12335____closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8; static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__8; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_7100____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4; static lean_object* l_stx___x2c_x2a___closed__4; static lean_object* l_Lean_Parser_Tactic_traceState___closed__2; static lean_object* l_term___x2f_____closed__3; @@ -895,7 +902,6 @@ static lean_object* l_Lean_Parser_Tactic_withReducibleAndInstances___closed__1; static lean_object* l_stx___x3f___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_11190____closed__5; static lean_object* l_Lean_Parser_Tactic_intro___closed__11; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_2554____closed__7; lean_object* l_Lean_Parser_Tactic_focus; static lean_object* l_termDepIfThenElse___closed__23; @@ -903,10 +909,8 @@ static lean_object* l_term___u2218_____closed__3; lean_object* l_precMin; static lean_object* l_term___x2a_x3e_____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__22; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2; static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__5; static lean_object* l_prioLow___closed__1; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__15; static lean_object* l_prec_x28___x29___closed__4; static lean_object* l_Lean_Parser_Tactic_intros___closed__2; @@ -921,7 +925,6 @@ static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticShow_____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_1516____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2; lean_object* l_Lean_Parser_Tactic_tacticRefineLift__; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__3; lean_object* l_Lean_Parser_Tactic_rotateLeft; @@ -942,6 +945,7 @@ static lean_object* l_prioHigh___closed__3; static lean_object* l_Lean_Parser_Tactic_split___closed__2; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__15; static lean_object* l_Lean_Parser_Tactic_cases___closed__2; +static lean_object* l_myMacro____x40_Init_Notation___hyg_20519____closed__3; static lean_object* l_stx___x2c_x2a_x2c_x3f___closed__1; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__5; static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__1; @@ -968,7 +972,6 @@ lean_object* l_term___x2d__; static lean_object* l_term___x5c_x2f_____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__3; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__6; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1; static lean_object* l_Lean_Parser_Tactic_split___closed__6; static lean_object* l_stx___x2c_x2b___closed__4; static lean_object* l_Lean_Parser_Tactic_simp___closed__4; @@ -989,12 +992,14 @@ static lean_object* l_term___u2227_____closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__28; static lean_object* l_term_x25_x5b___x7c___x5d___closed__7; static lean_object* l_Lean_Parser_Tactic_simp___closed__21; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; static lean_object* l_Lean_Parser_Tactic_changeWith___closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_3271____closed__8; static lean_object* l_Lean_Parser_Tactic_apply___closed__6; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__18; static lean_object* l_precMin1___closed__3; +static lean_object* l_Lean_Parser_Tactic_delta___closed__5; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__9; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__14; static lean_object* l_myMacro____x40_Init_Notation___hyg_13514____closed__6; @@ -1022,6 +1027,7 @@ static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__3; lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15090__expandListLit_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_term___x7c_x7c_____closed__4; static lean_object* l_prio_x28___x29___closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_10734____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_1256____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticShow_____closed__2; @@ -1041,6 +1047,7 @@ static lean_object* l_Lean_Parser_Tactic_simpLemma___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__9; static lean_object* l_term___x3a_x3a_____closed__1; static lean_object* l_precLead___closed__1; +lean_object* l_Lean_Parser_Tactic_delta; static lean_object* l_Lean_Parser_Tactic_casesTarget___closed__1; lean_object* l_term___x3e_x3d__; lean_object* l_prioDefault; @@ -1054,10 +1061,11 @@ static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__14; static lean_object* l_myMacro____x40_Init_Notation___hyg_3271____closed__1; static lean_object* l_term___x24_______closed__13; static lean_object* l_myMacro____x40_Init_Notation___hyg_12521____closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; +static lean_object* l_Lean_Parser_Tactic_delta___closed__3; static lean_object* l_termIfThenElse___closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_7100____closed__8; static lean_object* l_Lean_Parser_Syntax_addPrio___closed__5; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_3271____closed__9; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__5; lean_object* l_Lean_Parser_Tactic_rwRuleSeq; @@ -1087,6 +1095,7 @@ static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__7 static lean_object* l_stx___x3f___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_984____closed__1; static lean_object* l_Lean_Parser_Tactic_renameI___closed__1; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6; lean_object* l_term___x2b__; static lean_object* l_Lean_Parser_Tactic_erwSeq___closed__2; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__6; @@ -1119,10 +1128,11 @@ lean_object* l_term___x24____; static lean_object* l_term___x3a_x3a_____closed__2; static lean_object* l_Lean_Parser_Tactic_exact___closed__5; static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_13026____closed__7; static lean_object* l_term___x3e_____closed__4; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__5; static lean_object* l_Lean_Parser_Tactic_induction___closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_11190____closed__6; @@ -1132,6 +1142,7 @@ static lean_object* l_Lean_Parser_Tactic_paren___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_6622____closed__6; static lean_object* l_term___x26_x26_x26_____closed__1; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4; lean_object* l_Lean_Parser_Tactic_injections; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__13; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__18; @@ -1140,6 +1151,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_8995____closed__3; static lean_object* l_term_x25_x5b___x7c___x5d___closed__10; static lean_object* l_term___x7c_x3e_____closed__3; static lean_object* l_Lean_Parser_Tactic_intro___closed__7; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__15; static lean_object* l_Lean_Parser_Syntax_subPrio___closed__1; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__17; @@ -1154,7 +1166,6 @@ static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__4; static lean_object* l_term___x3e_____closed__2; lean_object* l_Lean_Parser_Tactic_tacticHave_x27__; static lean_object* l_myMacro____x40_Init_Notation___hyg_4944____closed__9; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7; static lean_object* l_term_x25_x5b___x7c___x5d___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_4227____closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_7339____closed__5; @@ -1196,7 +1207,7 @@ static lean_object* l_Lean_Parser_Tactic_allGoals___closed__2; static lean_object* l_Lean_Parser_Tactic_injection___closed__5; static lean_object* l_term___x3e_x3e_x3d_____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticShow_____closed__5; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1; static lean_object* l_termWithout__expected__type_____closed__5; static lean_object* l_Lean_Parser_Tactic_withReducibleAndInstances___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__24; @@ -1209,7 +1220,6 @@ static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__3; static lean_object* l_term___x26_x26_x26_____closed__2; lean_object* l_term___u2245__; static lean_object* l_Lean_Parser_Tactic_simpLemma___closed__6; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4; static lean_object* l_term___x3c_____closed__4; static lean_object* l_termDepIfThenElse___closed__30; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__7; @@ -1219,6 +1229,7 @@ static lean_object* l_term_xac_____closed__2; static lean_object* l_Lean_Parser_Tactic_tactic_xb7_x2e_____closed__8; static lean_object* l_Lean_Parser_Tactic_first___closed__16; static lean_object* l_myMacro____x40_Init_Notation___hyg_11911____closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2; lean_object* l_Lean_Parser_Tactic_apply; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; static lean_object* l_term___x7e_x3d_____closed__4; @@ -1255,6 +1266,7 @@ static lean_object* l_Lean_Parser_Tactic_simpAll___closed__1; static lean_object* l_termDepIfThenElse___closed__9; static lean_object* l_myMacro____x40_Init_Notation___hyg_72____closed__2; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5; static lean_object* l_Lean_Parser_Tactic_withReducible___closed__5; static lean_object* l_Lean_Parser_Tactic_injection___closed__7; lean_object* l_term___x2f_x5c__; @@ -1308,6 +1320,7 @@ lean_object* l_unexpand____x40_Init_Notation___hyg_3015_(lean_object*, lean_obje lean_object* l_unexpand____x40_Init_Notation___hyg_3254_(lean_object*, lean_object*); lean_object* l_unexpand____x40_Init_Notation___hyg_3732_(lean_object*, lean_object*); lean_object* l_unexpand____x40_Init_Notation___hyg_3493_(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2; static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__6; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__3; static lean_object* l_Lean_Parser_Tactic_allGoals___closed__6; @@ -1347,16 +1360,18 @@ static lean_object* l_term___x3d_____closed__6; static lean_object* l_Lean_Parser_Tactic_change___closed__6; static lean_object* l_stx___x3f___closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_4466____closed__9; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2; lean_object* l_Lean_Parser_Tactic_simpLemma; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7; static lean_object* l_Lean_Parser_Tactic_casesTarget___closed__3; static lean_object* l_Lean_Parser_Tactic_rotateRight___closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_8534____closed__1; static lean_object* l_Lean_Parser_Tactic_intro___closed__16; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); static lean_object* l_myMacro____x40_Init_Notation___hyg_13681____closed__6; static lean_object* l_term___x5e_____closed__4; uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_delta___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_1377____closed__11; static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__6; static lean_object* l_Lean_Parser_Syntax_subPrio___closed__4; @@ -1379,25 +1394,26 @@ static lean_object* l_Lean_Parser_Tactic_existsIntro___closed__6; static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_9780____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_1256____closed__1; -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20005_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19946_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19887_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19241_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19076_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18726_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18270_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20129_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20070_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20011_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19186_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19351_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18836_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18380_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16663_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16542_(lean_object*, lean_object*, lean_object*); @@ -1406,6 +1422,7 @@ lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16168_(lean lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15863_(lean_object*, lean_object*, lean_object*); static lean_object* l_myMacro____x40_Init_Notation___hyg_5183____closed__9; static lean_object* l_Lean_Parser_Tactic_tactic_xb7_x2e_____closed__6; +lean_object* l_Lean_Parser_Tactic_specialize; static lean_object* l_term___u2227_____closed__2; static lean_object* l_term___x3e_____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_8295____closed__3; @@ -1445,7 +1462,6 @@ static lean_object* l_Lean_Parser_Tactic_expandERwSeq___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_13026____closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_1377____closed__10; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_10951____closed__1; static lean_object* l_Lean_Parser_Tactic_first___closed__3; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__1; @@ -1468,6 +1484,7 @@ static lean_object* l_Lean_Parser_Tactic_changeWith___closed__6; static lean_object* l_Lean_Parser_Tactic_simpPre___closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_13026____closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_2793____closed__6; static lean_object* l_term___x3c_x7c_____closed__7; static lean_object* l_termDepIfThenElse___closed__19; @@ -1475,6 +1492,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__8; static lean_object* l_Lean_Parser_Tactic_focus___closed__5; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_simpErase___closed__2; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2; static lean_object* l_Lean_Parser_Tactic_first___closed__18; lean_object* l_Lean_Parser_Tactic_generalizeArg; static lean_object* l_myMacro____x40_Init_Notation___hyg_8534____closed__3; @@ -1496,7 +1514,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_4944____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_3749____closed__2; static lean_object* l_Lean_Parser_Tactic_tactic_xb7_x2e_____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_12930____closed__11; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_145____closed__1; static lean_object* l_Lean_Parser_Tactic_first___closed__14; static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__2; @@ -1517,6 +1534,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_7339____closed__2; static lean_object* l_termWithout__expected__type_____closed__6; lean_object* l_Lean_Parser_Tactic_exact; static lean_object* l_term___u2228_____closed__5; +static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__3; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__17; static lean_object* l_Lean_Parser_Tactic_tacticNext_______x3d_x3e_____closed__2; static lean_object* l_Lean_Parser_Tactic_first___closed__5; @@ -1528,7 +1546,6 @@ static lean_object* l_Lean_Parser_Tactic_case___closed__1; static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__1; static lean_object* l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__6; lean_object* l_Lean_Syntax_getArgs(lean_object*); -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3; static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__8; static lean_object* l_myMacro____x40_Init_Notation___hyg_11190____closed__1; static lean_object* l_term___x2f_____closed__2; @@ -1536,13 +1553,16 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_13681____closed__10; static lean_object* l_myMacro____x40_Init_Notation___hyg_1377____closed__12; static lean_object* l_term___x26_x26_x26_____closed__4; static lean_object* l_Lean_Parser_Tactic_revert___closed__7; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__2; static lean_object* l_Lean_Parser_Tactic_allGoals___closed__5; static lean_object* l_Lean_Parser_Tactic_induction___closed__15; static lean_object* l_myMacro____x40_Init_Notation___hyg_1256____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_9780____closed__2; static lean_object* l_term___x24_______closed__12; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_2793____closed__9; +lean_object* l_Lean_Parser_Tactic_tacticSorry; static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__3; static lean_object* l_term___x7c_x3e_____closed__5; static lean_object* l_term___x3c_x2a_x3e_____closed__5; @@ -1555,7 +1575,7 @@ static lean_object* l_termIfThenElse___closed__5; static lean_object* l_Lean_Parser_Tactic_locationWildcard___closed__3; static lean_object* l_rawNatLit___closed__3; static lean_object* l_term_x5b___x5d___closed__6; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1; static lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__4; static lean_object* l_Lean_Parser_Tactic_simp___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_3749____closed__9; @@ -1575,11 +1595,12 @@ static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__6; static lean_object* l_term___u2228_____closed__1; static lean_object* l_term___x26_x26_____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__2; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3; lean_object* l_Lean_Parser_Tactic_letrec; static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__6; lean_object* l_term_x7b_____x3a___x2f_x2f___x7d; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5; static lean_object* l_Lean_Parser_Tactic_case___closed__8; static lean_object* l_term___x7c_x7c_____closed__6; static lean_object* l_termWithout__expected__type_____closed__1; @@ -1606,6 +1627,7 @@ lean_object* l_termIfLet___x3a_x3d__Then__Else__; static lean_object* l_stx___x2b___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_12708____closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_3749____closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_13026____closed__9; static lean_object* l_Lean_Parser_Tactic_induction___closed__18; @@ -1620,7 +1642,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_5183____closed__5; static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__6; static lean_object* l_termDepIfThenElse___closed__29; static lean_object* l_Lean_Parser_Tactic_induction___closed__5; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1; static lean_object* l_stx___x2b___closed__2; static lean_object* l_Lean_Parser_Tactic_case___closed__2; static lean_object* l_Lean_Parser_Tactic_simp___closed__2; @@ -1638,19 +1659,19 @@ static lean_object* l_Lean_Parser_Tactic_rwRule___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_3988____closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__26; static lean_object* l_term___x3c_x3d_____closed__7; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_8295____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__2; static lean_object* l_Lean_Parser_Tactic_split___closed__9; static lean_object* l_myMacro____x40_Init_Notation___hyg_13514____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__4; static lean_object* l_Lean_Parser_Tactic_intro___closed__6; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__12; lean_object* l_stx___x2c_x2b; static lean_object* l_Lean_Parser_Tactic_simp___closed__24; static lean_object* l_term_x7e_x7e_x7e_____closed__1; static lean_object* l_Lean_Parser_Tactic_simp___closed__7; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4; +static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__4; static lean_object* l_term___x3a_x3a_____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_5837____closed__3; static lean_object* l_term___x3d_x3d_____closed__3; @@ -1665,7 +1686,6 @@ static lean_object* l_term___x2a_x3e_____closed__4; lean_object* l_Lean_Parser_Tactic_simpPost; lean_object* l_Lean_Parser_Tactic_done; static lean_object* l_term_x5b___x5d___closed__4; -static lean_object* l_myMacro____x40_Init_Notation___hyg_20395____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_3510____closed__6; lean_object* l_Lean_Parser_Tactic_intros; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__21; @@ -1679,10 +1699,10 @@ static lean_object* l_term___x3c_x3c_x3c_____closed__1; static lean_object* l_Lean_Parser_Tactic_simpAll___closed__9; static lean_object* l_term___x7e_x3d_____closed__6; static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__4; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_12708____closed__3; static lean_object* l_stx___x2b___closed__3; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6; static lean_object* l_term___x2b_____closed__5; static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__6; static lean_object* l_Lean_Parser_Tactic_renameI___closed__3; @@ -1723,6 +1743,8 @@ static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__7; lean_object* l_term___x2f__; static lean_object* l_Lean_Parser_Tactic_renameI___closed__5; static lean_object* l_termDepIfThenElse___closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_5421____closed__9; static lean_object* l_termIfThenElse___closed__2; static lean_object* l_Lean_term__Matches_____closed__4; @@ -1742,6 +1764,7 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_1516____closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_renameI___closed__6; static lean_object* l_term_x7e_x7e_x7e_____closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2; static lean_object* l_Lean_Parser_Tactic_tacticInferInstance___closed__2; static lean_object* l_Lean_Parser_Tactic_induction___closed__4; static lean_object* l_stx_x21_____closed__4; @@ -1757,7 +1780,6 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_11644____closed__2; static lean_object* l_term___u2264_____closed__1; lean_object* l_Lean_Parser_Tactic_withReducible; static lean_object* l_prioMid___closed__3; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3; static lean_object* l_term___u2265_____closed__3; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__2; lean_object* l_Lean_Parser_Tactic_simpErase; @@ -1821,6 +1843,7 @@ static lean_object* l_stx___x2c_x2b_x2c_x3f___closed__1; static lean_object* l_term___x24_______closed__7; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__11; static lean_object* l_myMacro____x40_Init_Notation___hyg_1166____closed__4; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6; static lean_object* l_term_x7e_x7e_x7e_____closed__6; static lean_object* l_term___x26_x26_____closed__1; static lean_object* l_term___x26_x26_____closed__2; @@ -1830,14 +1853,16 @@ static lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_N static lean_object* l_myMacro____x40_Init_Notation___hyg_5421____closed__1; static lean_object* l_Lean_Parser_Tactic_induction___closed__9; static lean_object* l_prioHigh___closed__4; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__3; +static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__1; lean_object* l_precMin1; lean_object* l_term___u2265__; static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_1655____closed__1; static lean_object* l_Lean_term__Matches_____closed__1; static lean_object* l_Lean_Parser_Tactic_allGoals___closed__4; +static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__2; static lean_object* l_prioMid___closed__1; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3; static lean_object* l_Lean_Parser_Tactic_intro___closed__1; static lean_object* l_term___xd7_____closed__1; static lean_object* l_Lean_Parser_Tactic_rename___closed__5; @@ -1882,6 +1907,7 @@ static lean_object* l_Lean_Parser_Tactic_erewriteSeq___closed__2; static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__4; lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e__; static lean_object* l_term___x7e_x3d_____closed__5; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1; lean_object* l_Lean_Parser_Syntax_addPrec; static lean_object* l_myMacro____x40_Init_Notation___hyg_12708____closed__6; static lean_object* l_Lean_Parser_Tactic_constructor___closed__4; @@ -1902,13 +1928,13 @@ static lean_object* l_term___u2265_____closed__5; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__11; static lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_15390____closed__16; static lean_object* l_term_x7e_x7e_x7e_____closed__2; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__8; lean_object* l_Lean_Parser_Tactic_casesTarget; static lean_object* l_stx___x2c_x2b_x2c_x3f___closed__2; static lean_object* l_Lean_Parser_Tactic_letrec___closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_4227____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_3032____closed__6; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3; static lean_object* l_Lean_Parser_Tactic_simpPre___closed__5; static lean_object* l_term___x7c_x3e_____closed__4; static lean_object* l_Lean_Parser_Tactic_injections___closed__3; @@ -1919,7 +1945,6 @@ static lean_object* l_Lean_Parser_Syntax_subPrec___closed__2; static lean_object* l_term_x5b___x5d___closed__2; static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__4; static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__1; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2; lean_object* l_Lean_Parser_Tactic_skip; static lean_object* l_myMacro____x40_Init_Notation___hyg_14908____closed__9; static lean_object* l_term___x3e_x3e_x3e_____closed__3; @@ -1935,7 +1960,6 @@ lean_object* l_Lean_Parser_Tactic_tacticShow__; static lean_object* l_myMacro____x40_Init_Notation___hyg_8056____closed__4; static lean_object* l_stx_x21_____closed__7; static lean_object* l_myMacro____x40_Init_Notation___hyg_12149____closed__11; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3; static lean_object* l_Lean_Parser_Tactic_rename___closed__6; static lean_object* l_stx___x2c_x2b_x2c_x3f___closed__4; lean_object* l_stx___x2c_x2b_x2c_x3f; @@ -1943,9 +1967,7 @@ static lean_object* l_Lean_Parser_Tactic_expandRwSeq___closed__1; static lean_object* l_unexpand____x40_Init_Notation___hyg_2059____closed__3; static lean_object* l_myMacro____x40_Init_Notation___hyg_11644____closed__5; static lean_object* l_myMacro____x40_Init_Notation___hyg_4944____closed__4; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5; static lean_object* l_term___xd7_____closed__4; -static lean_object* l_myMacro____x40_Init_Notation___hyg_20395____closed__1; lean_object* l_Lean_Parser_Tactic_expandRwSeq(lean_object*, lean_object*, lean_object*); static lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__1; static lean_object* l_term___x3e_____closed__5; @@ -1953,7 +1975,6 @@ static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_1616 static lean_object* l_Lean_Parser_Tactic_existsIntro___closed__1; static lean_object* l_Lean_Parser_Tactic_allGoals___closed__1; static lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__12; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1; lean_object* l_Lean_Parser_Tactic_traceState; static lean_object* l_term___x2f_x5c_____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_11644____closed__3; @@ -1963,7 +1984,6 @@ static lean_object* l_term___x26_x26_____closed__3; static lean_object* l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__7; static lean_object* l_prio_x28___x29___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_13179____closed__8; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2; static lean_object* l_myMacro____x40_Init_Notation___hyg_1166____closed__2; lean_object* l_Lean_Parser_Tactic_tacticSuffices__; static lean_object* l_Lean_Parser_Tactic_withReducible___closed__3; @@ -1987,9 +2007,9 @@ static lean_object* l_Lean_Parser_Tactic_tactic_xb7_x2e_____closed__3; static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16168____closed__1; static lean_object* l_Lean_Parser_Tactic_constructor___closed__1; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__1; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__4; lean_object* l_Lean_Parser_Tactic_locationHyp; -static lean_object* l_myMacro____x40_Init_Notation___hyg_20395____closed__2; static lean_object* l_term___x3e_x3e_x3d_____closed__5; lean_object* l_Lean_Parser_Tactic_refine; static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__6; @@ -2032,13 +2052,14 @@ static lean_object* l_term___x2a_x3e_____closed__2; static lean_object* l_Lean_Parser_Tactic_letrec___closed__10; static lean_object* l_Lean_Parser_Tactic_split___closed__8; static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16168____closed__3; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5; static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__4; lean_object* l_term___x5c_x2f__; static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__1; static lean_object* l_myMacro____x40_Init_Notation___hyg_7817____closed__8; +static lean_object* l_Lean_Parser_Tactic_specialize___closed__4; static lean_object* l_Lean_Parser_Attr_simp___closed__4; static lean_object* l_myMacro____x40_Init_Notation___hyg_11190____closed__4; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; static lean_object* l_Lean_Parser_Syntax_addPrec___closed__8; static lean_object* l_Lean_Parser_Tactic_intros___closed__10; static lean_object* l_term___x3d_____closed__5; @@ -2076,8 +2097,8 @@ static lean_object* l_myMacro____x40_Init_Notation___hyg_2076____closed__7; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_myMacro____x40_Init_Notation___hyg_8056____closed__5; static lean_object* l_term___u2245_____closed__4; -static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1; static lean_object* l_Lean_Parser_Attr_simp___closed__8; +static lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1; lean_object* l_termWithout__expected__type__; static lean_object* l_myMacro____x40_Init_Notation___hyg_14471____closed__3; static lean_object* _init_l_Lean_Parser_Syntax_addPrec___closed__1() { @@ -32871,6 +32892,166 @@ return x_51; } } } +static lean_object* _init_l_Lean_Parser_Tactic_tacticSorry___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tacticSorry"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_tacticSorry___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro___closed__2; +x_2 = l_Lean_Parser_Tactic_tacticSorry___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_tacticSorry___closed__3() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__1; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_tacticSorry___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_tacticSorry___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Tactic_tacticSorry___closed__3; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_tacticSorry() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_tacticSorry___closed__4; +return x_1; +} +} +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Parser_Tactic_tacticSorry___closed__2; +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(x_2, x_3); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_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_10 = lean_ctor_get(x_8, 0); +x_11 = l_Lean_Parser_Tactic_exact___closed__1; +lean_inc(x_10); +x_12 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__1; +x_14 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_myMacro____x40_Init_Notation___hyg_72____closed__4; +x_16 = lean_array_push(x_15, x_14); +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__2; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; +x_20 = lean_array_push(x_19, x_12); +x_21 = lean_array_push(x_20, x_18); +x_22 = l_Lean_Parser_Tactic_exact___closed__2; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_array_push(x_15, x_23); +x_25 = l_myMacro____x40_Init_Notation___hyg_984____closed__8; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = lean_array_push(x_15, x_26); +x_28 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16168____closed__2; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +lean_ctor_set(x_8, 0, x_29); +return x_8; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_30 = lean_ctor_get(x_8, 0); +x_31 = lean_ctor_get(x_8, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_8); +x_32 = l_Lean_Parser_Tactic_exact___closed__1; +lean_inc(x_30); +x_33 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__1; +x_35 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_35, 0, x_30); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_myMacro____x40_Init_Notation___hyg_72____closed__4; +x_37 = lean_array_push(x_36, x_35); +x_38 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__2; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; +x_41 = lean_array_push(x_40, x_33); +x_42 = lean_array_push(x_41, x_39); +x_43 = l_Lean_Parser_Tactic_exact___closed__2; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = lean_array_push(x_36, x_44); +x_46 = l_myMacro____x40_Init_Notation___hyg_984____closed__8; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_array_push(x_36, x_47); +x_49 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16168____closed__2; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_31); +return x_51; +} +} +} +} static lean_object* _init_l_Lean_Parser_Tactic_tacticInferInstance___closed__1() { _start: { @@ -32931,7 +33112,7 @@ x_1 = l_Lean_Parser_Tactic_tacticInferInstance___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -32940,13 +33121,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_tacticInferInstance___closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1; +x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -32954,7 +33135,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -32964,31 +33145,31 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -33024,10 +33205,10 @@ lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3; x_16 = l_Lean_addMacroScope(x_12, x_15, x_11); -x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2; -x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5; +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2; +x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5; x_19 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_19, 0, x_10); lean_ctor_set(x_19, 1, x_17); @@ -33072,10 +33253,10 @@ lean_inc(x_32); x_37 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_37, 0, x_32); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3; +x_38 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3; x_39 = l_Lean_addMacroScope(x_35, x_38, x_34); -x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2; -x_41 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5; +x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2; +x_41 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5; x_42 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_42, 0, x_32); lean_ctor_set(x_42, 1, x_40); @@ -35362,6 +35543,94 @@ x_1 = l_Lean_Parser_Tactic_simpAll___closed__12; return x_1; } } +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro___closed__2; +x_2 = l_Lean_Parser_Tactic_delta___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta "); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_delta___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Lean_Parser_Tactic_delta___closed__4; +x_3 = l_termDepIfThenElse___closed__9; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Lean_Parser_Tactic_delta___closed__5; +x_3 = l_Lean_Parser_Tactic_change___closed__6; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_delta___closed__2; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Tactic_delta___closed__6; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_delta() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_delta___closed__7; +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Tactic_tacticRefineLift_____closed__1() { _start: { @@ -35436,7 +35705,7 @@ x_1 = l_Lean_Parser_Tactic_tacticRefineLift_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1() { _start: { lean_object* x_1; @@ -35444,17 +35713,17 @@ x_1 = lean_mk_string("noImplicitLambda"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3() { _start: { lean_object* x_1; @@ -35462,7 +35731,7 @@ x_1 = lean_mk_string("noImplicitLambda%"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -35507,7 +35776,7 @@ lean_inc(x_12); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3; +x_19 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3; lean_inc(x_12); x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_12); @@ -35515,7 +35784,7 @@ lean_ctor_set(x_20, 1, x_19); x_21 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_22 = lean_array_push(x_21, x_20); x_23 = lean_array_push(x_22, x_9); -x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2; +x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2; x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -35644,7 +35913,7 @@ lean_inc(x_85); x_92 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_92, 0, x_85); lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3; +x_93 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3; lean_inc(x_85); x_94 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_94, 0, x_85); @@ -35652,7 +35921,7 @@ lean_ctor_set(x_94, 1, x_93); x_95 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_96 = lean_array_push(x_95, x_94); x_97 = lean_array_push(x_96, x_9); -x_98 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2; +x_98 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2; x_99 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_99, 0, x_98); lean_ctor_set(x_99, 1, x_97); @@ -35865,7 +36134,7 @@ x_1 = l_Lean_Parser_Tactic_tacticHave_____closed__9; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1() { _start: { lean_object* x_1; @@ -35873,7 +36142,7 @@ x_1 = lean_mk_string("refineLift"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2() { _start: { lean_object* x_1; @@ -35881,17 +36150,17 @@ x_1 = lean_mk_string("have"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4() { _start: { lean_object* x_1; @@ -35899,17 +36168,17 @@ x_1 = lean_mk_string("syntheticHole"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -35939,12 +36208,12 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -35977,7 +36246,7 @@ lean_ctor_set(x_29, 1, x_27); x_30 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -35986,7 +36255,7 @@ x_36 = lean_array_push(x_35, x_16); x_37 = lean_array_push(x_36, x_9); x_38 = lean_array_push(x_37, x_22); x_39 = lean_array_push(x_38, x_34); -x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3; +x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -36016,12 +36285,12 @@ x_52 = lean_ctor_get(x_10, 1); lean_inc(x_52); lean_inc(x_51); lean_dec(x_10); -x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_51); x_54 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_54, 0, x_51); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_51); x_56 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_56, 0, x_51); @@ -36054,7 +36323,7 @@ lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_71 = lean_array_push(x_70, x_64); x_72 = lean_array_push(x_71, x_69); -x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -36063,7 +36332,7 @@ x_76 = lean_array_push(x_75, x_56); x_77 = lean_array_push(x_76, x_9); x_78 = lean_array_push(x_77, x_62); x_79 = lean_array_push(x_78, x_74); -x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3; +x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3; x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); @@ -36112,7 +36381,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -36184,7 +36453,7 @@ x_1 = l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__7; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -36194,7 +36463,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2() { _start: { lean_object* x_1; @@ -36202,17 +36471,17 @@ x_1 = lean_mk_string("haveIdDecl"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -36244,7 +36513,7 @@ if (x_13 == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_14 = lean_ctor_get(x_12, 0); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_14); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_14); @@ -36292,12 +36561,12 @@ x_40 = lean_array_push(x_39, x_22); x_41 = lean_array_push(x_40, x_36); x_42 = lean_array_push(x_41, x_38); x_43 = lean_array_push(x_42, x_11); -x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3; +x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3; x_45 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); x_46 = lean_array_push(x_27, x_45); -x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1; +x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1; x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); @@ -36327,7 +36596,7 @@ x_59 = lean_ctor_get(x_12, 1); lean_inc(x_59); lean_inc(x_58); lean_dec(x_12); -x_60 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_60 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_58); x_61 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_61, 0, x_58); @@ -36375,12 +36644,12 @@ x_85 = lean_array_push(x_84, x_67); x_86 = lean_array_push(x_85, x_81); x_87 = lean_array_push(x_86, x_83); x_88 = lean_array_push(x_87, x_11); -x_89 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3; +x_89 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3; x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_89); lean_ctor_set(x_90, 1, x_88); x_91 = lean_array_push(x_72, x_90); -x_92 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1; +x_92 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1; x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); @@ -36509,7 +36778,7 @@ x_1 = l_Lean_Parser_Tactic_tacticSuffices_____closed__9; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1() { _start: { lean_object* x_1; @@ -36517,17 +36786,17 @@ x_1 = lean_mk_string("suffices"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -36557,12 +36826,12 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -36595,7 +36864,7 @@ lean_ctor_set(x_29, 1, x_27); x_30 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -36604,7 +36873,7 @@ x_36 = lean_array_push(x_35, x_16); x_37 = lean_array_push(x_36, x_9); x_38 = lean_array_push(x_37, x_22); x_39 = lean_array_push(x_38, x_34); -x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2; +x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -36634,12 +36903,12 @@ x_52 = lean_ctor_get(x_10, 1); lean_inc(x_52); lean_inc(x_51); lean_dec(x_10); -x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_51); x_54 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_54, 0, x_51); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1; +x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1; lean_inc(x_51); x_56 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_56, 0, x_51); @@ -36672,7 +36941,7 @@ lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_71 = lean_array_push(x_70, x_64); x_72 = lean_array_push(x_71, x_69); -x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -36681,7 +36950,7 @@ x_76 = lean_array_push(x_75, x_56); x_77 = lean_array_push(x_76, x_9); x_78 = lean_array_push(x_77, x_62); x_79 = lean_array_push(x_78, x_74); -x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2; +x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2; x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); @@ -36794,7 +37063,7 @@ x_1 = l_Lean_Parser_Tactic_tacticLet_____closed__7; return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18270_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18380_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -36824,7 +37093,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -36862,7 +37131,7 @@ lean_ctor_set(x_29, 1, x_27); x_30 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -36901,7 +37170,7 @@ x_52 = lean_ctor_get(x_10, 1); lean_inc(x_52); lean_inc(x_51); lean_dec(x_10); -x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_51); x_54 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_54, 0, x_51); @@ -36939,7 +37208,7 @@ lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_71 = lean_array_push(x_70, x_64); x_72 = lean_array_push(x_71, x_69); -x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -37049,7 +37318,7 @@ x_1 = l_Lean_Parser_Tactic_tacticShow_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1() { _start: { lean_object* x_1; @@ -37057,17 +37326,17 @@ x_1 = lean_mk_string("show"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3() { _start: { lean_object* x_1; @@ -37075,17 +37344,17 @@ x_1 = lean_mk_string("fromTerm"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5() { _start: { lean_object* x_1; @@ -37093,7 +37362,7 @@ x_1 = lean_mk_string("from"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -37123,17 +37392,17 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5; +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5; lean_inc(x_12); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); @@ -37156,13 +37425,13 @@ lean_ctor_set(x_26, 1, x_24); x_27 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_28 = lean_array_push(x_27, x_20); x_29 = lean_array_push(x_28, x_26); -x_30 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_30 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); x_32 = lean_array_push(x_27, x_18); x_33 = lean_array_push(x_32, x_31); -x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4; +x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); @@ -37170,7 +37439,7 @@ x_36 = l_unexpand____x40_Init_Notation___hyg_2059____closed__3; x_37 = lean_array_push(x_36, x_16); x_38 = lean_array_push(x_37, x_9); x_39 = lean_array_push(x_38, x_35); -x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2; +x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -37201,17 +37470,17 @@ x_53 = lean_ctor_get(x_10, 1); lean_inc(x_53); lean_inc(x_52); lean_dec(x_10); -x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_52); x_55 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_55, 0, x_52); lean_ctor_set(x_55, 1, x_54); -x_56 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1; +x_56 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1; lean_inc(x_52); x_57 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_57, 0, x_52); lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5; +x_58 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5; lean_inc(x_52); x_59 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_59, 0, x_52); @@ -37234,13 +37503,13 @@ lean_ctor_set(x_67, 1, x_65); x_68 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_69 = lean_array_push(x_68, x_61); x_70 = lean_array_push(x_69, x_67); -x_71 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_71 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); x_73 = lean_array_push(x_68, x_59); x_74 = lean_array_push(x_73, x_72); -x_75 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4; +x_75 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4; x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); @@ -37248,7 +37517,7 @@ x_77 = l_unexpand____x40_Init_Notation___hyg_2059____closed__3; x_78 = lean_array_push(x_77, x_57); x_79 = lean_array_push(x_78, x_9); x_80 = lean_array_push(x_79, x_76); -x_81 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2; +x_81 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2; x_82 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -37428,7 +37697,7 @@ x_1 = l_Lean_Parser_Tactic_letrec___closed__13; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -37438,7 +37707,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -37448,7 +37717,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3() { _start: { lean_object* x_1; @@ -37456,7 +37725,7 @@ x_1 = lean_mk_string("rec"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -37498,7 +37767,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; x_14 = lean_unsigned_to_nat(1u); x_15 = l_Lean_Syntax_getArg(x_1, x_14); lean_dec(x_1); -x_16 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1; +x_16 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1; lean_inc(x_15); x_17 = l_Lean_Syntax_isOfKind(x_15, x_16); if (x_17 == 0) @@ -37521,7 +37790,7 @@ if (x_21 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_22 = lean_ctor_get(x_20, 0); -x_23 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_23 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_22); x_24 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_24, 0, x_22); @@ -37531,7 +37800,7 @@ lean_inc(x_22); x_26 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_26, 0, x_22); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3; +x_27 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3; lean_inc(x_22); x_28 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_28, 0, x_22); @@ -37569,7 +37838,7 @@ lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); x_46 = lean_array_push(x_29, x_40); x_47 = lean_array_push(x_46, x_45); -x_48 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_48 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); @@ -37578,7 +37847,7 @@ x_51 = lean_array_push(x_50, x_32); x_52 = lean_array_push(x_51, x_15); x_53 = lean_array_push(x_52, x_38); x_54 = lean_array_push(x_53, x_49); -x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2; +x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2; x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); @@ -37599,7 +37868,7 @@ x_62 = lean_ctor_get(x_20, 1); lean_inc(x_62); lean_inc(x_61); lean_dec(x_20); -x_63 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1; +x_63 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1; lean_inc(x_61); x_64 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_64, 0, x_61); @@ -37609,7 +37878,7 @@ lean_inc(x_61); x_66 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_66, 0, x_61); lean_ctor_set(x_66, 1, x_65); -x_67 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3; +x_67 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3; lean_inc(x_61); x_68 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_68, 0, x_61); @@ -37647,7 +37916,7 @@ lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_83); x_86 = lean_array_push(x_69, x_80); x_87 = lean_array_push(x_86, x_85); -x_88 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_88 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); @@ -37656,7 +37925,7 @@ x_91 = lean_array_push(x_90, x_72); x_92 = lean_array_push(x_91, x_15); x_93 = lean_array_push(x_92, x_78); x_94 = lean_array_push(x_93, x_89); -x_95 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2; +x_95 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2; x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); @@ -37750,7 +38019,7 @@ x_1 = l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18726_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18836_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -37795,7 +38064,7 @@ lean_inc(x_12); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_12); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3; +x_19 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3; lean_inc(x_12); x_20 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_20, 0, x_12); @@ -37803,7 +38072,7 @@ lean_ctor_set(x_20, 1, x_19); x_21 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_22 = lean_array_push(x_21, x_20); x_23 = lean_array_push(x_22, x_9); -x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2; +x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2; x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -37932,7 +38201,7 @@ lean_inc(x_85); x_92 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_92, 0, x_85); lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3; +x_93 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3; lean_inc(x_85); x_94 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_94, 0, x_85); @@ -37940,7 +38209,7 @@ lean_ctor_set(x_94, 1, x_93); x_95 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_96 = lean_array_push(x_95, x_94); x_97 = lean_array_push(x_96, x_9); -x_98 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2; +x_98 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2; x_99 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_99, 0, x_98); lean_ctor_set(x_99, 1, x_97); @@ -38125,7 +38394,7 @@ x_1 = l_Lean_Parser_Tactic_tacticHave_x27_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1() { _start: { lean_object* x_1; @@ -38133,7 +38402,7 @@ x_1 = lean_mk_string("refineLift'"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -38163,12 +38432,12 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -38201,7 +38470,7 @@ lean_ctor_set(x_29, 1, x_27); x_30 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -38210,7 +38479,7 @@ x_36 = lean_array_push(x_35, x_16); x_37 = lean_array_push(x_36, x_9); x_38 = lean_array_push(x_37, x_22); x_39 = lean_array_push(x_38, x_34); -x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3; +x_40 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -38240,12 +38509,12 @@ x_52 = lean_ctor_get(x_10, 1); lean_inc(x_52); lean_inc(x_51); lean_dec(x_10); -x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1; +x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1; lean_inc(x_51); x_54 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_54, 0, x_51); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2; +x_55 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2; lean_inc(x_51); x_56 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_56, 0, x_51); @@ -38278,7 +38547,7 @@ lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_71 = lean_array_push(x_70, x_64); x_72 = lean_array_push(x_71, x_69); -x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -38287,7 +38556,7 @@ x_76 = lean_array_push(x_75, x_56); x_77 = lean_array_push(x_76, x_9); x_78 = lean_array_push(x_77, x_62); x_79 = lean_array_push(x_78, x_74); -x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3; +x_80 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3; x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); @@ -38416,7 +38685,7 @@ x_1 = l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__8; return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19076_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19186_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -38496,12 +38765,12 @@ x_40 = lean_array_push(x_39, x_22); x_41 = lean_array_push(x_40, x_36); x_42 = lean_array_push(x_41, x_38); x_43 = lean_array_push(x_42, x_11); -x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3; +x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3; x_45 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); x_46 = lean_array_push(x_27, x_45); -x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1; +x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1; x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); @@ -38579,12 +38848,12 @@ x_85 = lean_array_push(x_84, x_67); x_86 = lean_array_push(x_85, x_81); x_87 = lean_array_push(x_86, x_83); x_88 = lean_array_push(x_87, x_11); -x_89 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3; +x_89 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3; x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_89); lean_ctor_set(x_90, 1, x_88); x_91 = lean_array_push(x_72, x_90); -x_92 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1; +x_92 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1; x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); @@ -38685,7 +38954,7 @@ x_1 = l_Lean_Parser_Tactic_tacticLet_x27_____closed__6; return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19241_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19351_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -38715,7 +38984,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1; +x_13 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1; lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -38753,7 +39022,7 @@ lean_ctor_set(x_29, 1, x_27); x_30 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -38792,7 +39061,7 @@ x_52 = lean_ctor_get(x_10, 1); lean_inc(x_52); lean_inc(x_51); lean_dec(x_10); -x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1; +x_53 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1; lean_inc(x_51); x_54 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_54, 0, x_51); @@ -38830,7 +39099,7 @@ lean_ctor_set(x_69, 1, x_67); x_70 = l_myMacro____x40_Init_Notation___hyg_1377____closed__10; x_71 = lean_array_push(x_70, x_64); x_72 = lean_array_push(x_71, x_69); -x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5; +x_73 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -39039,7 +39308,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -40102,7 +40371,7 @@ x_1 = l_Lean_Parser_Tactic_tacticRepeat_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1() { _start: { lean_object* x_1; @@ -40110,7 +40379,7 @@ x_1 = lean_mk_string("repeat"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -40211,7 +40480,7 @@ x_44 = l_Lean_Parser_Tactic_first___closed__8; x_45 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1; +x_46 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1; lean_inc(x_18); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_18); @@ -40350,7 +40619,7 @@ x_116 = l_Lean_Parser_Tactic_first___closed__8; x_117 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_117, 0, x_116); lean_ctor_set(x_117, 1, x_115); -x_118 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1; +x_118 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1; lean_inc(x_89); x_119 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_119, 0, x_89); @@ -40610,7 +40879,81 @@ x_1 = l_Lean_Parser_Tactic_split___closed__9; return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19887_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("specialize"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro___closed__2; +x_2 = l_Lean_Parser_Tactic_specialize___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("specialize "); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_specialize___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Syntax_addPrec___closed__10; +x_2 = l_Lean_Parser_Tactic_specialize___closed__4; +x_3 = l_termDepIfThenElse___closed__14; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_specialize___closed__2; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Tactic_specialize___closed__5; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_specialize() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_specialize___closed__6; +return x_1; +} +} +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20011_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -40674,7 +41017,7 @@ return x_25; } } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19946_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20070_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -40738,7 +41081,7 @@ return x_25; } } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20005_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20129_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -40802,7 +41145,7 @@ return x_25; } } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1() { _start: { lean_object* x_1; @@ -40810,22 +41153,22 @@ x_1 = lean_mk_string("True.intro"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2; +x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -40833,7 +41176,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4() { _start: { lean_object* x_1; @@ -40841,51 +41184,51 @@ x_1 = lean_mk_string("True"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5; x_2 = l_Lean_Parser_Tactic_intro___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -40921,10 +41264,10 @@ lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6; x_16 = l_Lean_addMacroScope(x_12, x_15, x_11); -x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3; -x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8; +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3; +x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8; x_19 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_19, 0, x_10); lean_ctor_set(x_19, 1, x_17); @@ -40958,10 +41301,10 @@ lean_inc(x_25); x_30 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_30, 0, x_25); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6; +x_31 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6; x_32 = l_Lean_addMacroScope(x_28, x_31, x_27); -x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3; -x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8; +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3; +x_34 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8; x_35 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_35, 0, x_25); lean_ctor_set(x_35, 1, x_33); @@ -40982,7 +41325,7 @@ return x_41; } } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1() { _start: { lean_object* x_1; @@ -40990,22 +41333,22 @@ x_1 = lean_mk_string("And.intro"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2; +x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -41013,7 +41356,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -41023,31 +41366,31 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7() { _start: { lean_object* x_1; @@ -41055,7 +41398,7 @@ x_1 = lean_mk_string("<;>"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -41091,10 +41434,10 @@ lean_inc(x_10); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_10); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4; x_16 = l_Lean_addMacroScope(x_12, x_15, x_11); -x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3; -x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6; +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3; +x_18 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6; lean_inc(x_10); x_19 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_19, 0, x_10); @@ -41108,7 +41451,7 @@ x_23 = l_Lean_Parser_Tactic_apply___closed__2; x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7; +x_25 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7; lean_inc(x_10); x_26 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_26, 0, x_10); @@ -41151,10 +41494,10 @@ lean_inc(x_38); x_43 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_43, 0, x_38); lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4; +x_44 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4; x_45 = l_Lean_addMacroScope(x_41, x_44, x_40); -x_46 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3; -x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6; +x_46 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3; +x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6; lean_inc(x_38); x_48 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_48, 0, x_38); @@ -41168,7 +41511,7 @@ x_52 = l_Lean_Parser_Tactic_apply___closed__2; x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7; +x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7; lean_inc(x_38); x_55 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_55, 0, x_38); @@ -41272,7 +41615,7 @@ x_1 = l_Lean_Parser_Tactic_tacticUnhygienic_____closed__6; return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1() { _start: { lean_object* x_1; @@ -41280,17 +41623,17 @@ x_1 = lean_mk_string("set_option"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_intro___closed__2; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3() { _start: { lean_object* x_1; @@ -41298,22 +41641,22 @@ x_1 = lean_mk_string("tactic.hygienic"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3; +x_1 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4; +x_3 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -41321,7 +41664,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6() { _start: { lean_object* x_1; @@ -41329,17 +41672,17 @@ x_1 = lean_mk_string("hygienic"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__6; -x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6; +x_2 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8() { +static lean_object* _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8() { _start: { lean_object* x_1; @@ -41347,7 +41690,7 @@ x_1 = lean_mk_string("in"); return x_1; } } -lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -41383,15 +41726,15 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1; +x_15 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7; +x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7; x_18 = l_Lean_addMacroScope(x_14, x_17, x_13); x_19 = lean_box(0); -x_20 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5; +x_20 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5; lean_inc(x_12); x_21 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_21, 0, x_12); @@ -41403,7 +41746,7 @@ lean_inc(x_12); x_23 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_23, 0, x_12); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8; +x_24 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8; x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); @@ -41413,7 +41756,7 @@ x_28 = lean_array_push(x_27, x_21); x_29 = lean_array_push(x_28, x_23); x_30 = lean_array_push(x_29, x_25); x_31 = lean_array_push(x_30, x_9); -x_32 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2; +x_32 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -41444,15 +41787,15 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_2, 1); lean_inc(x_44); lean_dec(x_2); -x_45 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1; +x_45 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1; lean_inc(x_41); x_46 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_46, 0, x_41); lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7; +x_47 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7; x_48 = l_Lean_addMacroScope(x_44, x_47, x_43); x_49 = lean_box(0); -x_50 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5; +x_50 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5; lean_inc(x_41); x_51 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_51, 0, x_41); @@ -41464,7 +41807,7 @@ lean_inc(x_41); x_53 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_53, 0, x_41); lean_ctor_set(x_53, 1, x_52); -x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8; +x_54 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8; x_55 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_55, 0, x_41); lean_ctor_set(x_55, 1, x_54); @@ -41474,7 +41817,7 @@ x_58 = lean_array_push(x_57, x_51); x_59 = lean_array_push(x_58, x_53); x_60 = lean_array_push(x_59, x_55); x_61 = lean_array_push(x_60, x_9); -x_62 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2; +x_62 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2; x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); @@ -41703,7 +42046,7 @@ x_1 = l_term_u2039___u203a___closed__9; return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__1() { +static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__1() { _start: { lean_object* x_1; @@ -41711,17 +42054,17 @@ x_1 = lean_mk_string("byTactic"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__2() { +static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2076____closed__2; -x_2 = l_myMacro____x40_Init_Notation___hyg_20395____closed__1; +x_2 = l_myMacro____x40_Init_Notation___hyg_20519____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__3() { +static lean_object* _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__3() { _start: { lean_object* x_1; @@ -41729,7 +42072,7 @@ x_1 = lean_mk_string("by"); return x_1; } } -lean_object* l_myMacro____x40_Init_Notation___hyg_20395_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_myMacro____x40_Init_Notation___hyg_20519_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -41764,7 +42107,7 @@ lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_myMacro____x40_Init_Notation___hyg_20395____closed__3; +x_15 = l_myMacro____x40_Init_Notation___hyg_20519____closed__3; lean_inc(x_12); x_16 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_16, 0, x_12); @@ -41805,7 +42148,7 @@ lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); x_38 = lean_array_push(x_23, x_16); x_39 = lean_array_push(x_38, x_37); -x_40 = l_myMacro____x40_Init_Notation___hyg_20395____closed__2; +x_40 = l_myMacro____x40_Init_Notation___hyg_20519____closed__2; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -41857,7 +42200,7 @@ lean_inc(x_61); x_64 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_64, 0, x_61); lean_ctor_set(x_64, 1, x_63); -x_65 = l_myMacro____x40_Init_Notation___hyg_20395____closed__3; +x_65 = l_myMacro____x40_Init_Notation___hyg_20519____closed__3; lean_inc(x_61); x_66 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_66, 0, x_61); @@ -41898,7 +42241,7 @@ lean_ctor_set(x_87, 0, x_86); lean_ctor_set(x_87, 1, x_85); x_88 = lean_array_push(x_73, x_66); x_89 = lean_array_push(x_88, x_87); -x_90 = l_myMacro____x40_Init_Notation___hyg_20395____closed__2; +x_90 = l_myMacro____x40_Init_Notation___hyg_20519____closed__2; x_91 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_91, 0, x_90); lean_ctor_set(x_91, 1, x_89); @@ -44733,6 +45076,16 @@ l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__1 = _in lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__1); l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__2(); lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16761____closed__2); +l_Lean_Parser_Tactic_tacticSorry___closed__1 = _init_l_Lean_Parser_Tactic_tacticSorry___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_tacticSorry___closed__1); +l_Lean_Parser_Tactic_tacticSorry___closed__2 = _init_l_Lean_Parser_Tactic_tacticSorry___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_tacticSorry___closed__2); +l_Lean_Parser_Tactic_tacticSorry___closed__3 = _init_l_Lean_Parser_Tactic_tacticSorry___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_tacticSorry___closed__3); +l_Lean_Parser_Tactic_tacticSorry___closed__4 = _init_l_Lean_Parser_Tactic_tacticSorry___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_tacticSorry___closed__4); +l_Lean_Parser_Tactic_tacticSorry = _init_l_Lean_Parser_Tactic_tacticSorry(); +lean_mark_persistent(l_Lean_Parser_Tactic_tacticSorry); l_Lean_Parser_Tactic_tacticInferInstance___closed__1 = _init_l_Lean_Parser_Tactic_tacticInferInstance___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticInferInstance___closed__1); l_Lean_Parser_Tactic_tacticInferInstance___closed__2 = _init_l_Lean_Parser_Tactic_tacticInferInstance___closed__2(); @@ -44745,16 +45098,16 @@ l_Lean_Parser_Tactic_tacticInferInstance___closed__5 = _init_l_Lean_Parser_Tacti lean_mark_persistent(l_Lean_Parser_Tactic_tacticInferInstance___closed__5); l_Lean_Parser_Tactic_tacticInferInstance = _init_l_Lean_Parser_Tactic_tacticInferInstance(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticInferInstance); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16853____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_16945____closed__5); l_Lean_Parser_Tactic_locationWildcard___closed__1 = _init_l_Lean_Parser_Tactic_locationWildcard___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_locationWildcard___closed__1); l_Lean_Parser_Tactic_locationWildcard___closed__2 = _init_l_Lean_Parser_Tactic_locationWildcard___closed__2(); @@ -45125,6 +45478,22 @@ l_Lean_Parser_Tactic_simpAll___closed__12 = _init_l_Lean_Parser_Tactic_simpAll__ lean_mark_persistent(l_Lean_Parser_Tactic_simpAll___closed__12); l_Lean_Parser_Tactic_simpAll = _init_l_Lean_Parser_Tactic_simpAll(); lean_mark_persistent(l_Lean_Parser_Tactic_simpAll); +l_Lean_Parser_Tactic_delta___closed__1 = _init_l_Lean_Parser_Tactic_delta___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__1); +l_Lean_Parser_Tactic_delta___closed__2 = _init_l_Lean_Parser_Tactic_delta___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__2); +l_Lean_Parser_Tactic_delta___closed__3 = _init_l_Lean_Parser_Tactic_delta___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__3); +l_Lean_Parser_Tactic_delta___closed__4 = _init_l_Lean_Parser_Tactic_delta___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__4); +l_Lean_Parser_Tactic_delta___closed__5 = _init_l_Lean_Parser_Tactic_delta___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__5); +l_Lean_Parser_Tactic_delta___closed__6 = _init_l_Lean_Parser_Tactic_delta___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__6); +l_Lean_Parser_Tactic_delta___closed__7 = _init_l_Lean_Parser_Tactic_delta___closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta___closed__7); +l_Lean_Parser_Tactic_delta = _init_l_Lean_Parser_Tactic_delta(); +lean_mark_persistent(l_Lean_Parser_Tactic_delta); l_Lean_Parser_Tactic_tacticRefineLift_____closed__1 = _init_l_Lean_Parser_Tactic_tacticRefineLift_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticRefineLift_____closed__1); l_Lean_Parser_Tactic_tacticRefineLift_____closed__2 = _init_l_Lean_Parser_Tactic_tacticRefineLift_____closed__2(); @@ -45139,12 +45508,12 @@ l_Lean_Parser_Tactic_tacticRefineLift_____closed__6 = _init_l_Lean_Parser_Tactic lean_mark_persistent(l_Lean_Parser_Tactic_tacticRefineLift_____closed__6); l_Lean_Parser_Tactic_tacticRefineLift__ = _init_l_Lean_Parser_Tactic_tacticRefineLift__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticRefineLift__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17621____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17731____closed__3); l_Lean_Parser_Tactic_tacticHave_____closed__1 = _init_l_Lean_Parser_Tactic_tacticHave_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_____closed__1); l_Lean_Parser_Tactic_tacticHave_____closed__2 = _init_l_Lean_Parser_Tactic_tacticHave_____closed__2(); @@ -45165,16 +45534,16 @@ l_Lean_Parser_Tactic_tacticHave_____closed__9 = _init_l_Lean_Parser_Tactic_tacti lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_____closed__9); l_Lean_Parser_Tactic_tacticHave__ = _init_l_Lean_Parser_Tactic_tacticHave__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17828____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17938____closed__5); l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__1 = _init_l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__1); l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__2 = _init_l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__2(); @@ -45191,12 +45560,12 @@ l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__7 = _init_l_Lean_Parser_ lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_____x3a_x3d_____closed__7); l_Lean_Parser_Tactic_tacticHave_____x3a_x3d__ = _init_l_Lean_Parser_Tactic_tacticHave_____x3a_x3d__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_____x3a_x3d__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17971____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18081____closed__3); l_Lean_Parser_Tactic_tacticSuffices_____closed__1 = _init_l_Lean_Parser_Tactic_tacticSuffices_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticSuffices_____closed__1); l_Lean_Parser_Tactic_tacticSuffices_____closed__2 = _init_l_Lean_Parser_Tactic_tacticSuffices_____closed__2(); @@ -45217,10 +45586,10 @@ l_Lean_Parser_Tactic_tacticSuffices_____closed__9 = _init_l_Lean_Parser_Tactic_t lean_mark_persistent(l_Lean_Parser_Tactic_tacticSuffices_____closed__9); l_Lean_Parser_Tactic_tacticSuffices__ = _init_l_Lean_Parser_Tactic_tacticSuffices__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticSuffices__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18136____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18246____closed__2); l_Lean_Parser_Tactic_tacticLet_____closed__1 = _init_l_Lean_Parser_Tactic_tacticLet_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticLet_____closed__1); l_Lean_Parser_Tactic_tacticLet_____closed__2 = _init_l_Lean_Parser_Tactic_tacticLet_____closed__2(); @@ -45251,16 +45620,16 @@ l_Lean_Parser_Tactic_tacticShow_____closed__6 = _init_l_Lean_Parser_Tactic_tacti lean_mark_persistent(l_Lean_Parser_Tactic_tacticShow_____closed__6); l_Lean_Parser_Tactic_tacticShow__ = _init_l_Lean_Parser_Tactic_tacticShow__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticShow__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18405____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18515____closed__5); l_Lean_Parser_Tactic_letrec___closed__1 = _init_l_Lean_Parser_Tactic_letrec___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_letrec___closed__1); l_Lean_Parser_Tactic_letrec___closed__2 = _init_l_Lean_Parser_Tactic_letrec___closed__2(); @@ -45289,12 +45658,12 @@ l_Lean_Parser_Tactic_letrec___closed__13 = _init_l_Lean_Parser_Tactic_letrec___c lean_mark_persistent(l_Lean_Parser_Tactic_letrec___closed__13); l_Lean_Parser_Tactic_letrec = _init_l_Lean_Parser_Tactic_letrec(); lean_mark_persistent(l_Lean_Parser_Tactic_letrec); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18547____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18657____closed__3); l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__1 = _init_l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__1); l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__2 = _init_l_Lean_Parser_Tactic_tacticRefineLift_x27_____closed__2(); @@ -45323,8 +45692,8 @@ l_Lean_Parser_Tactic_tacticHave_x27_____closed__6 = _init_l_Lean_Parser_Tactic_t lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_x27_____closed__6); l_Lean_Parser_Tactic_tacticHave_x27__ = _init_l_Lean_Parser_Tactic_tacticHave_x27__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_x27__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18933____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19043____closed__1); l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__1 = _init_l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__1); l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__2 = _init_l_Lean_Parser_Tactic_tacticHave_x27_____x3a_x3d_____closed__2(); @@ -45575,8 +45944,8 @@ l_Lean_Parser_Tactic_tacticRepeat_____closed__6 = _init_l_Lean_Parser_Tactic_tac lean_mark_persistent(l_Lean_Parser_Tactic_tacticRepeat_____closed__6); l_Lean_Parser_Tactic_tacticRepeat__ = _init_l_Lean_Parser_Tactic_tacticRepeat__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticRepeat__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19631____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19741____closed__1); l_Lean_Parser_Tactic_tacticTrivial___closed__1 = _init_l_Lean_Parser_Tactic_tacticTrivial___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticTrivial___closed__1); l_Lean_Parser_Tactic_tacticTrivial___closed__2 = _init_l_Lean_Parser_Tactic_tacticTrivial___closed__2(); @@ -45609,36 +45978,50 @@ l_Lean_Parser_Tactic_split___closed__9 = _init_l_Lean_Parser_Tactic_split___clos lean_mark_persistent(l_Lean_Parser_Tactic_split___closed__9); l_Lean_Parser_Tactic_split = _init_l_Lean_Parser_Tactic_split(); lean_mark_persistent(l_Lean_Parser_Tactic_split); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__5); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__6); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__7); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20064____closed__8); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__5); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__6); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20138____closed__7); +l_Lean_Parser_Tactic_specialize___closed__1 = _init_l_Lean_Parser_Tactic_specialize___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__1); +l_Lean_Parser_Tactic_specialize___closed__2 = _init_l_Lean_Parser_Tactic_specialize___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__2); +l_Lean_Parser_Tactic_specialize___closed__3 = _init_l_Lean_Parser_Tactic_specialize___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__3); +l_Lean_Parser_Tactic_specialize___closed__4 = _init_l_Lean_Parser_Tactic_specialize___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__4); +l_Lean_Parser_Tactic_specialize___closed__5 = _init_l_Lean_Parser_Tactic_specialize___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__5); +l_Lean_Parser_Tactic_specialize___closed__6 = _init_l_Lean_Parser_Tactic_specialize___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize___closed__6); +l_Lean_Parser_Tactic_specialize = _init_l_Lean_Parser_Tactic_specialize(); +lean_mark_persistent(l_Lean_Parser_Tactic_specialize); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__6); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__7); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20188____closed__8); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__6); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20262____closed__7); l_Lean_Parser_Tactic_tacticUnhygienic_____closed__1 = _init_l_Lean_Parser_Tactic_tacticUnhygienic_____closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticUnhygienic_____closed__1); l_Lean_Parser_Tactic_tacticUnhygienic_____closed__2 = _init_l_Lean_Parser_Tactic_tacticUnhygienic_____closed__2(); @@ -45653,22 +46036,22 @@ l_Lean_Parser_Tactic_tacticUnhygienic_____closed__6 = _init_l_Lean_Parser_Tactic lean_mark_persistent(l_Lean_Parser_Tactic_tacticUnhygienic_____closed__6); l_Lean_Parser_Tactic_tacticUnhygienic__ = _init_l_Lean_Parser_Tactic_tacticUnhygienic__(); lean_mark_persistent(l_Lean_Parser_Tactic_tacticUnhygienic__); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__1); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__2); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__3); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__4); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__5); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__6); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__7); -l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8(); -lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20245____closed__8); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__1); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__2); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__3); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__4); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__5); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__6); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__7); +l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8 = _init_l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8(); +lean_mark_persistent(l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_20369____closed__8); l_Lean_Parser_Attr_simp___closed__1 = _init_l_Lean_Parser_Attr_simp___closed__1(); lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__1); l_Lean_Parser_Attr_simp___closed__2 = _init_l_Lean_Parser_Attr_simp___closed__2(); @@ -45707,12 +46090,12 @@ l_term_u2039___u203a___closed__9 = _init_l_term_u2039___u203a___closed__9(); lean_mark_persistent(l_term_u2039___u203a___closed__9); l_term_u2039___u203a = _init_l_term_u2039___u203a(); lean_mark_persistent(l_term_u2039___u203a); -l_myMacro____x40_Init_Notation___hyg_20395____closed__1 = _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__1(); -lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20395____closed__1); -l_myMacro____x40_Init_Notation___hyg_20395____closed__2 = _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__2(); -lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20395____closed__2); -l_myMacro____x40_Init_Notation___hyg_20395____closed__3 = _init_l_myMacro____x40_Init_Notation___hyg_20395____closed__3(); -lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20395____closed__3); +l_myMacro____x40_Init_Notation___hyg_20519____closed__1 = _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20519____closed__1); +l_myMacro____x40_Init_Notation___hyg_20519____closed__2 = _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__2(); +lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20519____closed__2); +l_myMacro____x40_Init_Notation___hyg_20519____closed__3 = _init_l_myMacro____x40_Init_Notation___hyg_20519____closed__3(); +lean_mark_persistent(l_myMacro____x40_Init_Notation___hyg_20519____closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Class.c b/stage0/stdlib/Lean/Class.c index 7517c14915..a9214f041f 100644 --- a/stage0/stdlib/Lean/Class.c +++ b/stage0/stdlib/Lean/Class.c @@ -14,14 +14,13 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_hasOutParams___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_is_out_param(lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Class_0__Lean_consumeNLambdas_match__1(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -38,8 +37,8 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Class___hyg_ static lean_object* l_Lean_addClass___closed__4; lean_object* l_Lean_ClassState_addEntry(lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6; static lean_object* l_Lean_isOutParam___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2; lean_object* l_Lean_instInhabitedClassState; lean_object* l_Lean_classExtension; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*); @@ -49,20 +48,18 @@ lean_object* l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__2(lean_obj static lean_object* l___private_Lean_Class_0__Lean_checkOutParam___closed__3; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_instHashableName; -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3; +lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getClassName_match__2(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ClassEntry_lt(lean_object*, lean_object*); lean_object* l_Lean_SMap_switch___at_Lean_ClassState_switch___spec__1(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1; static lean_object* l___private_Lean_Class_0__Lean_checkOutParam___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_hasOutParams___spec__3(lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2; lean_object* l_Lean_getClassName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isOutParam___boxed(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); @@ -71,6 +68,8 @@ static lean_object* l_Lean_isOutParam___closed__1; lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Class_0__Lean_consumeNLambdas(lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6; +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1; size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_getClassName_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_contains___at_Lean_isClass___spec__6___boxed(lean_object*, lean_object*); @@ -80,7 +79,6 @@ lean_object* l_Lean_classExtension___elambda__2(lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__3(lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68____closed__4; lean_object* l_Lean_classExtension___elambda__1___boxed(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_ClassEntry_lt___boxed(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___closed__5; @@ -89,6 +87,7 @@ lean_object* l_Std_mkHashMap___at_Lean_ClassState_hasOutParam___default___spec__ extern lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; size_t l_UInt64_toUSize(uint64_t); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__5(lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Class_0__Lean_consumeNLambdas_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,7 +97,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_139_(uint8_t, uint8_t); lean_object* l_Std_mkHashMap___at_Lean_ClassState_hasOutParam___default___spec__2___boxed(lean_object*); static lean_object* l_Lean_classExtension___closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_ClassState_addEntry___spec__1(lean_object*, lean_object*, uint8_t); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); @@ -106,8 +104,10 @@ lean_object* l___private_Lean_Class_0__Lean_checkOutParam(lean_object*, lean_obj lean_object* l_Lean_getClassName_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1; +lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5; static lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec__1___closed__3; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___closed__4; @@ -115,19 +115,19 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___closed__2; lean_object* l_Lean_hasOutParams_match__1(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2; lean_object* l_Lean_isClass___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2; static lean_object* l_Lean_classExtension___closed__5; lean_object* l_Lean_SimplePersistentEnvExtension_getState___at_Lean_isClass___spec__1___boxed(lean_object*, lean_object*); uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__6(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___closed__1; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_isClass___spec__3___closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7; +lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___at_Lean_isClass___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Class_0__Lean_checkOutParam___closed__2; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_addClass(lean_object*, lean_object*); @@ -135,7 +135,6 @@ uint8_t l_Lean_Expr_hasAnyFVar_visit___at___private_Lean_Class_0__Lean_checkOutP static lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec__1___closed__5; uint8_t l_Std_PersistentHashMap_containsAux___at_Lean_isClass___spec__8(lean_object*, size_t, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); -lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_containsAtAux___at_Lean_isClass___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_classExtension___elambda__4___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_persistentEnvExtensionsRef; @@ -148,6 +147,7 @@ lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashMapImp_contains___at_Lean_isClass___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Std_PersistentHashMap_containsAux___at_Lean_isClass___spec__8___closed__1; lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Std_PersistentHashMap_containsAux___at_Lean_isClass___spec__8___closed__2; @@ -172,7 +172,6 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lea static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68____closed__5; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__2(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_classExtension___elambda__4___rarg___closed__2; -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedClassState___closed__1; lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Class_0__Lean_checkOutParam___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,17 +180,17 @@ static lean_object* l_Lean_classExtension___closed__4; lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__5___lambda__2(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_classExtension___elambda__4___rarg(lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673_(lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675_(lean_object*); lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68_(lean_object*); static lean_object* l_Lean_instInhabitedClassState___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); static uint32_t l_Lean_classExtension___elambda__4___rarg___closed__1; static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68____closed__3; lean_object* l_Lean_getClassName_match__1(lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_SMap_contains___at_Lean_isClass___spec__4(lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec__1___closed__4; -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4; lean_object* l_Lean_classExtension___elambda__2___boxed(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); @@ -201,11 +200,14 @@ lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec lean_object* lean_name_mk_numeral(lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_isClass___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__5___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2; lean_object* l_Std_PersistentHashMap_contains___at_Lean_isClass___spec__7___boxed(lean_object*, lean_object*); lean_object* l_Lean_ClassState_hasOutParam___default; lean_object* l_Lean_SMap_insert___at_Lean_ClassState_addEntry___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4; static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68____closed__1; -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1; static lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec__1___closed__1; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -213,14 +215,12 @@ lean_object* l_Lean_SMap_contains___at_Lean_isClass___spec__4___boxed(lean_objec lean_object* l_Lean_Attribute_Builtin_ensureNoArgs(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Class___hyg_68____lambda__1(lean_object*); static lean_object* l_Lean_SMap_empty___at_Lean_ClassState_hasOutParam___default___spec__1___closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); -lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_contains___at_Lean_isClass___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_hasOutParams___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_addClass___closed__2; -lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2; uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Class_0__Lean_checkOutParam___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__4(lean_object*); @@ -234,6 +234,7 @@ uint32_t lean_uint32_of_nat(lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_isClass___spec__7(lean_object*, lean_object*); static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__4___closed__2; +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addClass___closed__3; uint8_t lean_has_out_params(lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -247,7 +248,6 @@ static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Class___hyg_68____spec__4___lambda__4___boxed(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Name_instBEqName; -static lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1; uint8_t l_Lean_ClassEntry_lt(lean_object* x_1, lean_object* x_2) { _start: { @@ -3094,7 +3094,7 @@ return x_33; } } } -lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__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; uint8_t x_7; @@ -3132,7 +3132,7 @@ return x_13; } } } -lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3145,7 +3145,7 @@ x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2(x_7, x_2, x_3, x_4); +x_8 = l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__2(x_7, x_2, x_3, x_4); return x_8; } else @@ -3161,12 +3161,12 @@ return x_10; } } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____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: { lean_object* x_7; lean_object* x_8; x_7 = l_Lean_addClass(x_1, x_2); -x_8 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_7, x_4, x_5, x_6); +x_8 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_7, 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; @@ -3202,7 +3202,7 @@ return x_15; } } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1() { _start: { lean_object* x_1; @@ -3210,16 +3210,16 @@ x_1 = lean_mk_string("invalid attribute 'class', must be global"); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1; +x_1 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -3248,7 +3248,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_dec(x_10); lean_dec(x_1); -x_15 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2; +x_15 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2; x_16 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__5(x_15, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); @@ -3275,7 +3275,7 @@ else { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1(x_10, x_1, x_21, x_4, x_5, x_12); +x_22 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__1(x_10, x_1, x_21, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); return x_22; @@ -3309,7 +3309,7 @@ return x_26; } } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1() { _start: { lean_object* x_1; @@ -3317,25 +3317,25 @@ x_1 = lean_mk_string("attribute cannot be erased"); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1; +x_1 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3(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 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2; +x_5 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2; x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4); return x_6; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1() { _start: { lean_object* x_1; @@ -3343,17 +3343,17 @@ x_1 = lean_mk_string("class"); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3() { _start: { lean_object* x_1; @@ -3361,12 +3361,12 @@ x_1 = lean_mk_string("type class"); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2; -x_2 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3; +x_1 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3; x_3 = 0; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_1); @@ -3375,29 +3375,29 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); return x_4; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4; -x_2 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5; -x_3 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6; +x_1 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4; +x_2 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5; +x_3 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3405,61 +3405,61 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673_(lean_object* x_1) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7; +x_2 = l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__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_throwError___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____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_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2(x_1, x_2, x_7, x_4, x_5, x_6); return x_8; } } -lean_object* l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___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_initFn____x40_Lean_Class___hyg_673____lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -3583,29 +3583,29 @@ l_Lean_addClass___closed__4 = _init_l_Lean_addClass___closed__4(); lean_mark_persistent(l_Lean_addClass___closed__4); l_Lean_addClass___closed__5 = _init_l_Lean_addClass___closed__5(); lean_mark_persistent(l_Lean_addClass___closed__5); -l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__1); -l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__2___closed__2); -l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__1); -l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____lambda__3___closed__2); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__1); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__2); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__3); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__4); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__5); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__6); -l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7 = _init_l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_673____closed__7); -res = l_Lean_initFn____x40_Lean_Class___hyg_673_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__1); +l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__2___closed__2); +l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__1); +l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____lambda__3___closed__2); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__1); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__2); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__3); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__4); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__5); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__6); +l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7 = _init_l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Class___hyg_675____closed__7); +res = l_Lean_initFn____x40_Lean_Class___hyg_675_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Compiler/ExternAttr.c b/stage0/stdlib/Lean/Compiler/ExternAttr.c index cc918a8b51..8e041f4d00 100644 --- a/stage0/stdlib/Lean/Compiler/ExternAttr.c +++ b/stage0/stdlib/Lean/Compiler/ExternAttr.c @@ -152,6 +152,7 @@ static lean_object* l_Lean_externAttr___lambda__1___closed__1; lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_342____spec__1___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_externAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_342____spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getExternConstArity___closed__21; lean_object* l_Lean_getExternConstArity___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_342____spec__1___lambda__3(lean_object*); @@ -163,9 +164,9 @@ lean_object* l_Nat_repr(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instHashableExpr; static lean_object* l_Lean_getConstInfo___at_Lean_getExternConstArity___spec__1___closed__4; -lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_getExternConstArity_match__3(lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); @@ -198,7 +199,6 @@ static lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_L lean_object* l_Lean_externAttr___lambda__5(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_342____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_getConstInfo___at_Lean_getExternConstArity___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); static lean_object* l_Lean_registerParametricAttribute___at_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_342____spec__1___lambda__6___closed__2; @@ -2329,7 +2329,7 @@ else lean_object* x_15; lean_object* x_16; lean_free_object(x_6); x_15 = lean_add_extern(x_10, x_1); -x_16 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_15, x_3, x_4, x_9); +x_16 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_15, x_3, x_4, x_9); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -2370,7 +2370,7 @@ else lean_object* x_24; lean_object* x_25; lean_free_object(x_6); x_24 = lean_add_extern(x_10, x_1); -x_25 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_24, x_3, x_4, x_9); +x_25 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_24, x_3, x_4, x_9); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -2442,7 +2442,7 @@ else { lean_object* x_41; lean_object* x_42; x_41 = lean_add_extern(x_35, x_1); -x_42 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_41, x_3, x_4, x_34); +x_42 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_41, x_3, x_4, x_34); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -2484,7 +2484,7 @@ else { lean_object* x_50; lean_object* x_51; x_50 = lean_add_extern(x_35, x_1); -x_51 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_673____spec__1(x_50, x_3, x_4, x_34); +x_51 = l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_675____spec__1(x_50, x_3, x_4, x_34); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; lean_object* x_54; @@ -5275,8 +5275,20 @@ static lean_object* _init_l_Lean_getExternConstArity___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_getExternConstArity___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_getExternConstArity___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_getExternConstArity___closed__4; +x_2 = l_Lean_getExternConstArity___closed__10; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -5288,7 +5300,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__11() { +static lean_object* _init_l_Lean_getExternConstArity___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5300,24 +5312,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__12() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_getExternConstArity___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_getExternConstArity___closed__3; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_getExternConstArity___closed__14() { @@ -5335,6 +5335,18 @@ return x_3; static lean_object* _init_l_Lean_getExternConstArity___closed__15() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_getExternConstArity___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_getExternConstArity___closed__16() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -5343,7 +5355,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__16() { +static lean_object* _init_l_Lean_getExternConstArity___closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -5354,7 +5366,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__17() { +static lean_object* _init_l_Lean_getExternConstArity___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5366,14 +5378,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__18() { +static lean_object* _init_l_Lean_getExternConstArity___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_getExternConstArity___closed__11; -x_2 = l_Lean_getExternConstArity___closed__13; -x_3 = l_Lean_getExternConstArity___closed__14; -x_4 = l_Lean_getExternConstArity___closed__17; +x_1 = l_Lean_getExternConstArity___closed__12; +x_2 = l_Lean_getExternConstArity___closed__14; +x_3 = l_Lean_getExternConstArity___closed__15; +x_4 = l_Lean_getExternConstArity___closed__18; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -5385,23 +5397,23 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__19() { +static lean_object* _init_l_Lean_getExternConstArity___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_getExternConstArity___closed__10; -x_2 = l_Lean_getExternConstArity___closed__18; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_getExternConstArity___closed__11; +x_3 = l_Lean_getExternConstArity___closed__19; x_4 = l_Lean_getExternConstArity___closed__7; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_getExternConstArity___closed__20() { +static lean_object* _init_l_Lean_getExternConstArity___closed__21() { _start: { lean_object* x_1; @@ -5466,14 +5478,14 @@ x_20 = lean_st_ref_get(x_3, x_18); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_getExternConstArity___closed__19; +x_22 = l_Lean_getExternConstArity___closed__20; x_23 = lean_st_mk_ref(x_22, x_21); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); -x_26 = l_Lean_getExternConstArity___closed__20; +x_26 = l_Lean_getExternConstArity___closed__21; x_27 = l_Lean_getExternConstArity___closed__9; lean_inc(x_3); lean_inc(x_24); @@ -5622,14 +5634,14 @@ x_55 = lean_st_ref_get(x_3, x_53); x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); -x_57 = l_Lean_getExternConstArity___closed__19; +x_57 = l_Lean_getExternConstArity___closed__20; x_58 = lean_st_mk_ref(x_57, x_56); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); lean_dec(x_58); -x_61 = l_Lean_getExternConstArity___closed__20; +x_61 = l_Lean_getExternConstArity___closed__21; x_62 = l_Lean_getExternConstArity___closed__9; lean_inc(x_3); lean_inc(x_59); @@ -5810,14 +5822,14 @@ x_98 = lean_st_ref_get(x_3, x_96); x_99 = lean_ctor_get(x_98, 1); lean_inc(x_99); lean_dec(x_98); -x_100 = l_Lean_getExternConstArity___closed__19; +x_100 = l_Lean_getExternConstArity___closed__20; x_101 = lean_st_mk_ref(x_100, x_99); x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); x_103 = lean_ctor_get(x_101, 1); lean_inc(x_103); lean_dec(x_101); -x_104 = l_Lean_getExternConstArity___closed__20; +x_104 = l_Lean_getExternConstArity___closed__21; x_105 = l_Lean_getExternConstArity___closed__9; lean_inc(x_3); lean_inc(x_102); @@ -6490,6 +6502,8 @@ l_Lean_getExternConstArity___closed__19 = _init_l_Lean_getExternConstArity___clo lean_mark_persistent(l_Lean_getExternConstArity___closed__19); l_Lean_getExternConstArity___closed__20 = _init_l_Lean_getExternConstArity___closed__20(); lean_mark_persistent(l_Lean_getExternConstArity___closed__20); +l_Lean_getExternConstArity___closed__21 = _init_l_Lean_getExternConstArity___closed__21(); +lean_mark_persistent(l_Lean_getExternConstArity___closed__21); l_Lean_getExternConstArityExport___closed__1 = _init_l_Lean_getExternConstArityExport___closed__1(); lean_mark_persistent(l_Lean_getExternConstArityExport___closed__1); l_Lean_getExternConstArityExport___closed__2 = _init_l_Lean_getExternConstArityExport___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/IR/Checker.c b/stage0/stdlib/Lean/Compiler/IR/Checker.c index ffd03f9999..db3dee21e1 100644 --- a/stage0/stdlib/Lean/Compiler/IR/Checker.c +++ b/stage0/stdlib/Lean/Compiler/IR/Checker.c @@ -4300,13 +4300,86 @@ return x_293; } case 9: { -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_361; lean_object* x_362; x_294 = lean_ctor_get(x_2, 0); lean_inc(x_294); x_295 = lean_ctor_get(x_2, 1); lean_inc(x_295); lean_dec(x_2); -x_296 = l_Lean_IR_Checker_checkObjType(x_1, x_3, x_4); +x_361 = l_Lean_IR_Checker_checkObjType(x_1, x_3, x_4); +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +if (lean_obj_tag(x_362) == 0) +{ +uint8_t x_363; +x_363 = !lean_is_exclusive(x_361); +if (x_363 == 0) +{ +lean_object* x_364; uint8_t x_365; +x_364 = lean_ctor_get(x_361, 0); +lean_dec(x_364); +x_365 = !lean_is_exclusive(x_362); +if (x_365 == 0) +{ +x_296 = x_361; +goto block_360; +} +else +{ +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_362, 0); +lean_inc(x_366); +lean_dec(x_362); +x_367 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_367, 0, x_366); +lean_ctor_set(x_361, 0, x_367); +x_296 = x_361; +goto block_360; +} +} +else +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_368 = lean_ctor_get(x_361, 1); +lean_inc(x_368); +lean_dec(x_361); +x_369 = lean_ctor_get(x_362, 0); +lean_inc(x_369); +if (lean_is_exclusive(x_362)) { + lean_ctor_release(x_362, 0); + x_370 = x_362; +} else { + lean_dec_ref(x_362); + x_370 = lean_box(0); +} +if (lean_is_scalar(x_370)) { + x_371 = lean_alloc_ctor(0, 1, 0); +} else { + x_371 = x_370; +} +lean_ctor_set(x_371, 0, x_369); +x_372 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_368); +x_296 = x_372; +goto block_360; +} +} +else +{ +lean_object* x_373; lean_object* x_374; +lean_dec(x_362); +x_373 = lean_ctor_get(x_361, 1); +lean_inc(x_373); +lean_dec(x_361); +lean_inc(x_295); +x_374 = l_Lean_IR_Checker_checkScalarVar(x_295, x_3, x_373); +x_296 = x_374; +goto block_360; +} +block_360: +{ +lean_object* x_297; x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); if (lean_obj_tag(x_297) == 0) @@ -4372,16 +4445,14 @@ lean_dec(x_297); x_308 = lean_ctor_get(x_296, 1); lean_inc(x_308); lean_dec(x_296); -lean_inc(x_295); -x_309 = l_Lean_IR_Checker_checkScalarVar(x_295, x_3, x_308); +x_309 = l_Lean_IR_Checker_getType(x_295, x_3, x_308); +lean_dec(x_3); x_310 = lean_ctor_get(x_309, 0); lean_inc(x_310); if (lean_obj_tag(x_310) == 0) { uint8_t x_311; -lean_dec(x_295); lean_dec(x_294); -lean_dec(x_3); x_311 = !lean_is_exclusive(x_309); if (x_311 == 0) { @@ -4434,122 +4505,100 @@ return x_320; } else { -lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_310); -x_321 = lean_ctor_get(x_309, 1); -lean_inc(x_321); -lean_dec(x_309); -x_322 = l_Lean_IR_Checker_getType(x_295, x_3, x_321); -lean_dec(x_3); -x_323 = lean_ctor_get(x_322, 0); -lean_inc(x_323); -if (lean_obj_tag(x_323) == 0) +uint8_t x_321; +x_321 = !lean_is_exclusive(x_309); +if (x_321 == 0) { -uint8_t x_324; -lean_dec(x_294); -x_324 = !lean_is_exclusive(x_322); -if (x_324 == 0) -{ -lean_object* x_325; uint8_t x_326; -x_325 = lean_ctor_get(x_322, 0); -lean_dec(x_325); -x_326 = !lean_is_exclusive(x_323); -if (x_326 == 0) -{ -return x_322; -} -else -{ -lean_object* x_327; lean_object* x_328; -x_327 = lean_ctor_get(x_323, 0); -lean_inc(x_327); -lean_dec(x_323); -x_328 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_328, 0, x_327); -lean_ctor_set(x_322, 0, x_328); -return x_322; -} -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_329 = lean_ctor_get(x_322, 1); -lean_inc(x_329); +lean_object* x_322; uint8_t x_323; +x_322 = lean_ctor_get(x_309, 0); lean_dec(x_322); -x_330 = lean_ctor_get(x_323, 0); -lean_inc(x_330); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - x_331 = x_323; -} else { - lean_dec_ref(x_323); - x_331 = lean_box(0); -} -if (lean_is_scalar(x_331)) { - x_332 = lean_alloc_ctor(0, 1, 0); -} else { - x_332 = x_331; -} -lean_ctor_set(x_332, 0, x_330); -x_333 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_329); -return x_333; -} -} -else +x_323 = !lean_is_exclusive(x_310); +if (x_323 == 0) { -uint8_t x_334; -x_334 = !lean_is_exclusive(x_322); -if (x_334 == 0) -{ -lean_object* x_335; uint8_t x_336; -x_335 = lean_ctor_get(x_322, 0); -lean_dec(x_335); -x_336 = !lean_is_exclusive(x_323); -if (x_336 == 0) -{ -lean_object* x_337; uint8_t x_338; -x_337 = lean_ctor_get(x_323, 0); -x_338 = l_Lean_IR_IRType_beq(x_337, x_294); +lean_object* x_324; uint8_t x_325; +x_324 = lean_ctor_get(x_310, 0); +x_325 = l_Lean_IR_IRType_beq(x_324, x_294); lean_dec(x_294); -if (x_338 == 0) +if (x_325 == 0) { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_339 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_337); -x_340 = l_Std_Format_defWidth; -x_341 = lean_format_pretty(x_339, x_340); -x_342 = l_Lean_IR_Checker_checkType___closed__1; -x_343 = lean_string_append(x_342, x_341); -lean_dec(x_341); -x_344 = l_Lean_IR_Checker_getDecl___closed__2; -x_345 = lean_string_append(x_343, x_344); -lean_ctor_set_tag(x_323, 0); -lean_ctor_set(x_323, 0, x_345); -return x_322; +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_326 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_324); +x_327 = l_Std_Format_defWidth; +x_328 = lean_format_pretty(x_326, x_327); +x_329 = l_Lean_IR_Checker_checkType___closed__1; +x_330 = lean_string_append(x_329, x_328); +lean_dec(x_328); +x_331 = l_Lean_IR_Checker_getDecl___closed__2; +x_332 = lean_string_append(x_330, x_331); +lean_ctor_set_tag(x_310, 0); +lean_ctor_set(x_310, 0, x_332); +return x_309; } else { -lean_object* x_346; -lean_free_object(x_323); -lean_dec(x_337); -x_346 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -lean_ctor_set(x_322, 0, x_346); -return x_322; +lean_object* x_333; +lean_free_object(x_310); +lean_dec(x_324); +x_333 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +lean_ctor_set(x_309, 0, x_333); +return x_309; } } else { -lean_object* x_347; uint8_t x_348; -x_347 = lean_ctor_get(x_323, 0); -lean_inc(x_347); -lean_dec(x_323); -x_348 = l_Lean_IR_IRType_beq(x_347, x_294); +lean_object* x_334; uint8_t x_335; +x_334 = lean_ctor_get(x_310, 0); +lean_inc(x_334); +lean_dec(x_310); +x_335 = l_Lean_IR_IRType_beq(x_334, x_294); +lean_dec(x_294); +if (x_335 == 0) +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_336 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_334); +x_337 = l_Std_Format_defWidth; +x_338 = lean_format_pretty(x_336, x_337); +x_339 = l_Lean_IR_Checker_checkType___closed__1; +x_340 = lean_string_append(x_339, x_338); +lean_dec(x_338); +x_341 = l_Lean_IR_Checker_getDecl___closed__2; +x_342 = lean_string_append(x_340, x_341); +x_343 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_343, 0, x_342); +lean_ctor_set(x_309, 0, x_343); +return x_309; +} +else +{ +lean_object* x_344; +lean_dec(x_334); +x_344 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +lean_ctor_set(x_309, 0, x_344); +return x_309; +} +} +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; +x_345 = lean_ctor_get(x_309, 1); +lean_inc(x_345); +lean_dec(x_309); +x_346 = lean_ctor_get(x_310, 0); +lean_inc(x_346); +if (lean_is_exclusive(x_310)) { + lean_ctor_release(x_310, 0); + x_347 = x_310; +} else { + lean_dec_ref(x_310); + x_347 = lean_box(0); +} +x_348 = l_Lean_IR_IRType_beq(x_346, x_294); lean_dec(x_294); if (x_348 == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_349 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_347); +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_349 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_346); x_350 = l_Std_Format_defWidth; x_351 = lean_format_pretty(x_349, x_350); x_352 = l_Lean_IR_Checker_checkType___closed__1; @@ -4557,71 +4606,28 @@ x_353 = lean_string_append(x_352, x_351); lean_dec(x_351); x_354 = l_Lean_IR_Checker_getDecl___closed__2; x_355 = lean_string_append(x_353, x_354); -x_356 = lean_alloc_ctor(0, 1, 0); +if (lean_is_scalar(x_347)) { + x_356 = lean_alloc_ctor(0, 1, 0); +} else { + x_356 = x_347; + lean_ctor_set_tag(x_356, 0); +} lean_ctor_set(x_356, 0, x_355); -lean_ctor_set(x_322, 0, x_356); -return x_322; +x_357 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_345); +return x_357; } else { -lean_object* x_357; +lean_object* x_358; lean_object* x_359; lean_dec(x_347); -x_357 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -lean_ctor_set(x_322, 0, x_357); -return x_322; -} -} -} -else -{ -lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; -x_358 = lean_ctor_get(x_322, 1); -lean_inc(x_358); -lean_dec(x_322); -x_359 = lean_ctor_get(x_323, 0); -lean_inc(x_359); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - x_360 = x_323; -} else { - lean_dec_ref(x_323); - x_360 = lean_box(0); -} -x_361 = l_Lean_IR_IRType_beq(x_359, x_294); -lean_dec(x_294); -if (x_361 == 0) -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; -x_362 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_359); -x_363 = l_Std_Format_defWidth; -x_364 = lean_format_pretty(x_362, x_363); -x_365 = l_Lean_IR_Checker_checkType___closed__1; -x_366 = lean_string_append(x_365, x_364); -lean_dec(x_364); -x_367 = l_Lean_IR_Checker_getDecl___closed__2; -x_368 = lean_string_append(x_366, x_367); -if (lean_is_scalar(x_360)) { - x_369 = lean_alloc_ctor(0, 1, 0); -} else { - x_369 = x_360; - lean_ctor_set_tag(x_369, 0); -} -lean_ctor_set(x_369, 0, x_368); -x_370 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_358); -return x_370; -} -else -{ -lean_object* x_371; lean_object* x_372; -lean_dec(x_360); -lean_dec(x_359); -x_371 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -x_372 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_372, 0, x_371); -lean_ctor_set(x_372, 1, x_358); -return x_372; +lean_dec(x_346); +x_358 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_345); +return x_359; } } } @@ -4630,304 +4636,304 @@ return x_372; } case 10: { -lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_373 = lean_ctor_get(x_2, 0); -lean_inc(x_373); -lean_dec(x_2); -x_374 = l_Lean_IR_Checker_checkScalarType(x_1, x_3, x_4); -x_375 = lean_ctor_get(x_374, 0); +lean_object* x_375; lean_object* x_376; lean_object* x_377; +x_375 = lean_ctor_get(x_2, 0); lean_inc(x_375); -if (lean_obj_tag(x_375) == 0) +lean_dec(x_2); +x_376 = l_Lean_IR_Checker_checkScalarType(x_1, x_3, x_4); +x_377 = lean_ctor_get(x_376, 0); +lean_inc(x_377); +if (lean_obj_tag(x_377) == 0) { -uint8_t x_376; -lean_dec(x_373); +uint8_t x_378; +lean_dec(x_375); lean_dec(x_3); -x_376 = !lean_is_exclusive(x_374); -if (x_376 == 0) -{ -lean_object* x_377; uint8_t x_378; -x_377 = lean_ctor_get(x_374, 0); -lean_dec(x_377); -x_378 = !lean_is_exclusive(x_375); +x_378 = !lean_is_exclusive(x_376); if (x_378 == 0) { -return x_374; +lean_object* x_379; uint8_t x_380; +x_379 = lean_ctor_get(x_376, 0); +lean_dec(x_379); +x_380 = !lean_is_exclusive(x_377); +if (x_380 == 0) +{ +return x_376; } else { -lean_object* x_379; lean_object* x_380; -x_379 = lean_ctor_get(x_375, 0); -lean_inc(x_379); -lean_dec(x_375); -x_380 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_374, 0, x_380); -return x_374; -} -} -else -{ -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_381 = lean_ctor_get(x_374, 1); +lean_object* x_381; lean_object* x_382; +x_381 = lean_ctor_get(x_377, 0); lean_inc(x_381); -lean_dec(x_374); -x_382 = lean_ctor_get(x_375, 0); -lean_inc(x_382); -if (lean_is_exclusive(x_375)) { - lean_ctor_release(x_375, 0); - x_383 = x_375; -} else { - lean_dec_ref(x_375); - x_383 = lean_box(0); -} -if (lean_is_scalar(x_383)) { - x_384 = lean_alloc_ctor(0, 1, 0); -} else { - x_384 = x_383; -} -lean_ctor_set(x_384, 0, x_382); -x_385 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_385, 0, x_384); -lean_ctor_set(x_385, 1, x_381); -return x_385; +lean_dec(x_377); +x_382 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_382, 0, x_381); +lean_ctor_set(x_376, 0, x_382); +return x_376; } } else { -lean_object* x_386; lean_object* x_387; -lean_dec(x_375); -x_386 = lean_ctor_get(x_374, 1); -lean_inc(x_386); -lean_dec(x_374); -x_387 = l_Lean_IR_Checker_checkObjVar(x_373, x_3, x_386); -lean_dec(x_3); +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_376, 1); +lean_inc(x_383); +lean_dec(x_376); +x_384 = lean_ctor_get(x_377, 0); +lean_inc(x_384); +if (lean_is_exclusive(x_377)) { + lean_ctor_release(x_377, 0); + x_385 = x_377; +} else { + lean_dec_ref(x_377); + x_385 = lean_box(0); +} +if (lean_is_scalar(x_385)) { + x_386 = lean_alloc_ctor(0, 1, 0); +} else { + x_386 = x_385; +} +lean_ctor_set(x_386, 0, x_384); +x_387 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_387, 0, x_386); +lean_ctor_set(x_387, 1, x_383); return x_387; } } +else +{ +lean_object* x_388; lean_object* x_389; +lean_dec(x_377); +x_388 = lean_ctor_get(x_376, 1); +lean_inc(x_388); +lean_dec(x_376); +x_389 = l_Lean_IR_Checker_checkObjVar(x_375, x_3, x_388); +lean_dec(x_3); +return x_389; +} +} case 11: { -lean_object* x_388; -x_388 = lean_ctor_get(x_2, 0); -lean_inc(x_388); +lean_object* x_390; +x_390 = lean_ctor_get(x_2, 0); +lean_inc(x_390); lean_dec(x_2); -if (lean_obj_tag(x_388) == 0) +if (lean_obj_tag(x_390) == 0) { -lean_object* x_389; lean_object* x_390; -lean_dec(x_388); +lean_object* x_391; lean_object* x_392; +lean_dec(x_390); lean_dec(x_3); lean_dec(x_1); -x_389 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -x_390 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_390, 0, x_389); -lean_ctor_set(x_390, 1, x_4); -return x_390; +x_391 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +x_392 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_392, 0, x_391); +lean_ctor_set(x_392, 1, x_4); +return x_392; } else { -lean_object* x_391; -lean_dec(x_388); -x_391 = l_Lean_IR_Checker_checkObjType(x_1, x_3, x_4); +lean_object* x_393; +lean_dec(x_390); +x_393 = l_Lean_IR_Checker_checkObjType(x_1, x_3, x_4); lean_dec(x_3); -return x_391; +return x_393; } } default: { -lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_392 = lean_ctor_get(x_2, 0); -lean_inc(x_392); -lean_dec(x_2); -x_393 = l_Lean_IR_Checker_checkObjVar(x_392, x_3, x_4); -lean_dec(x_3); -x_394 = lean_ctor_get(x_393, 0); +lean_object* x_394; lean_object* x_395; lean_object* x_396; +x_394 = lean_ctor_get(x_2, 0); lean_inc(x_394); -if (lean_obj_tag(x_394) == 0) +lean_dec(x_2); +x_395 = l_Lean_IR_Checker_checkObjVar(x_394, x_3, x_4); +lean_dec(x_3); +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +if (lean_obj_tag(x_396) == 0) { -uint8_t x_395; +uint8_t x_397; lean_dec(x_1); -x_395 = !lean_is_exclusive(x_393); -if (x_395 == 0) -{ -lean_object* x_396; uint8_t x_397; -x_396 = lean_ctor_get(x_393, 0); -lean_dec(x_396); -x_397 = !lean_is_exclusive(x_394); +x_397 = !lean_is_exclusive(x_395); if (x_397 == 0) { -return x_393; +lean_object* x_398; uint8_t x_399; +x_398 = lean_ctor_get(x_395, 0); +lean_dec(x_398); +x_399 = !lean_is_exclusive(x_396); +if (x_399 == 0) +{ +return x_395; } else { -lean_object* x_398; lean_object* x_399; -x_398 = lean_ctor_get(x_394, 0); -lean_inc(x_398); -lean_dec(x_394); -x_399 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_393, 0, x_399); -return x_393; -} -} -else -{ -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_400 = lean_ctor_get(x_393, 1); +lean_object* x_400; lean_object* x_401; +x_400 = lean_ctor_get(x_396, 0); lean_inc(x_400); -lean_dec(x_393); -x_401 = lean_ctor_get(x_394, 0); -lean_inc(x_401); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - x_402 = x_394; -} else { - lean_dec_ref(x_394); - x_402 = lean_box(0); -} -if (lean_is_scalar(x_402)) { - x_403 = lean_alloc_ctor(0, 1, 0); -} else { - x_403 = x_402; -} -lean_ctor_set(x_403, 0, x_401); -x_404 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_400); -return x_404; +lean_dec(x_396); +x_401 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_395, 0, x_401); +return x_395; } } else { -uint8_t x_405; -x_405 = !lean_is_exclusive(x_394); -if (x_405 == 0) +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_395, 1); +lean_inc(x_402); +lean_dec(x_395); +x_403 = lean_ctor_get(x_396, 0); +lean_inc(x_403); +if (lean_is_exclusive(x_396)) { + lean_ctor_release(x_396, 0); + x_404 = x_396; +} else { + lean_dec_ref(x_396); + x_404 = lean_box(0); +} +if (lean_is_scalar(x_404)) { + x_405 = lean_alloc_ctor(0, 1, 0); +} else { + x_405 = x_404; +} +lean_ctor_set(x_405, 0, x_403); +x_406 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_406, 0, x_405); +lean_ctor_set(x_406, 1, x_402); +return x_406; +} +} +else { -lean_object* x_406; uint8_t x_407; -x_406 = lean_ctor_get(x_394, 0); -lean_dec(x_406); -x_407 = !lean_is_exclusive(x_393); +uint8_t x_407; +x_407 = !lean_is_exclusive(x_396); if (x_407 == 0) { -lean_object* x_408; lean_object* x_409; uint8_t x_410; -x_408 = lean_ctor_get(x_393, 0); +lean_object* x_408; uint8_t x_409; +x_408 = lean_ctor_get(x_396, 0); lean_dec(x_408); -x_409 = lean_box(1); -x_410 = l_Lean_IR_IRType_beq(x_1, x_409); -if (x_410 == 0) +x_409 = !lean_is_exclusive(x_395); +if (x_409 == 0) { -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; -x_411 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); -x_412 = l_Std_Format_defWidth; -x_413 = lean_format_pretty(x_411, x_412); -x_414 = l_Lean_IR_Checker_checkType___closed__1; -x_415 = lean_string_append(x_414, x_413); -lean_dec(x_413); -x_416 = l_Lean_IR_Checker_getDecl___closed__2; -x_417 = lean_string_append(x_415, x_416); -lean_ctor_set_tag(x_394, 0); -lean_ctor_set(x_394, 0, x_417); -return x_393; +lean_object* x_410; lean_object* x_411; uint8_t x_412; +x_410 = lean_ctor_get(x_395, 0); +lean_dec(x_410); +x_411 = lean_box(1); +x_412 = l_Lean_IR_IRType_beq(x_1, x_411); +if (x_412 == 0) +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +x_413 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); +x_414 = l_Std_Format_defWidth; +x_415 = lean_format_pretty(x_413, x_414); +x_416 = l_Lean_IR_Checker_checkType___closed__1; +x_417 = lean_string_append(x_416, x_415); +lean_dec(x_415); +x_418 = l_Lean_IR_Checker_getDecl___closed__2; +x_419 = lean_string_append(x_417, x_418); +lean_ctor_set_tag(x_396, 0); +lean_ctor_set(x_396, 0, x_419); +return x_395; } else { -lean_object* x_418; -lean_free_object(x_394); +lean_object* x_420; +lean_free_object(x_396); lean_dec(x_1); -x_418 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -lean_ctor_set(x_393, 0, x_418); -return x_393; +x_420 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +lean_ctor_set(x_395, 0, x_420); +return x_395; } } else { -lean_object* x_419; lean_object* x_420; uint8_t x_421; -x_419 = lean_ctor_get(x_393, 1); -lean_inc(x_419); -lean_dec(x_393); -x_420 = lean_box(1); -x_421 = l_Lean_IR_IRType_beq(x_1, x_420); -if (x_421 == 0) +lean_object* x_421; lean_object* x_422; uint8_t x_423; +x_421 = lean_ctor_get(x_395, 1); +lean_inc(x_421); +lean_dec(x_395); +x_422 = lean_box(1); +x_423 = l_Lean_IR_IRType_beq(x_1, x_422); +if (x_423 == 0) { -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_object* x_428; lean_object* x_429; -x_422 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); -x_423 = l_Std_Format_defWidth; -x_424 = lean_format_pretty(x_422, x_423); -x_425 = l_Lean_IR_Checker_checkType___closed__1; -x_426 = lean_string_append(x_425, x_424); -lean_dec(x_424); -x_427 = l_Lean_IR_Checker_getDecl___closed__2; -x_428 = lean_string_append(x_426, x_427); -lean_ctor_set_tag(x_394, 0); -lean_ctor_set(x_394, 0, x_428); -x_429 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_429, 0, x_394); -lean_ctor_set(x_429, 1, x_419); -return x_429; -} -else -{ -lean_object* x_430; lean_object* x_431; -lean_free_object(x_394); -lean_dec(x_1); -x_430 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; +x_424 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); +x_425 = l_Std_Format_defWidth; +x_426 = lean_format_pretty(x_424, x_425); +x_427 = l_Lean_IR_Checker_checkType___closed__1; +x_428 = lean_string_append(x_427, x_426); +lean_dec(x_426); +x_429 = l_Lean_IR_Checker_getDecl___closed__2; +x_430 = lean_string_append(x_428, x_429); +lean_ctor_set_tag(x_396, 0); +lean_ctor_set(x_396, 0, x_430); x_431 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_419); +lean_ctor_set(x_431, 0, x_396); +lean_ctor_set(x_431, 1, x_421); return x_431; } -} -} else { -lean_object* x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; -lean_dec(x_394); -x_432 = lean_ctor_get(x_393, 1); -lean_inc(x_432); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_433 = x_393; -} else { - lean_dec_ref(x_393); - x_433 = lean_box(0); -} -x_434 = lean_box(1); -x_435 = l_Lean_IR_IRType_beq(x_1, x_434); -if (x_435 == 0) -{ -lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; -x_436 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); -x_437 = l_Std_Format_defWidth; -x_438 = lean_format_pretty(x_436, x_437); -x_439 = l_Lean_IR_Checker_checkType___closed__1; -x_440 = lean_string_append(x_439, x_438); -lean_dec(x_438); -x_441 = l_Lean_IR_Checker_getDecl___closed__2; -x_442 = lean_string_append(x_440, x_441); -x_443 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_443, 0, x_442); -if (lean_is_scalar(x_433)) { - x_444 = lean_alloc_ctor(0, 2, 0); -} else { - x_444 = x_433; -} -lean_ctor_set(x_444, 0, x_443); -lean_ctor_set(x_444, 1, x_432); -return x_444; -} -else -{ -lean_object* x_445; lean_object* x_446; +lean_object* x_432; lean_object* x_433; +lean_free_object(x_396); lean_dec(x_1); -x_445 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; -if (lean_is_scalar(x_433)) { +x_432 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +x_433 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_433, 0, x_432); +lean_ctor_set(x_433, 1, x_421); +return x_433; +} +} +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; +lean_dec(x_396); +x_434 = lean_ctor_get(x_395, 1); +lean_inc(x_434); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_435 = x_395; +} else { + lean_dec_ref(x_395); + x_435 = lean_box(0); +} +x_436 = lean_box(1); +x_437 = l_Lean_IR_IRType_beq(x_1, x_436); +if (x_437 == 0) +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_438 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_1); +x_439 = l_Std_Format_defWidth; +x_440 = lean_format_pretty(x_438, x_439); +x_441 = l_Lean_IR_Checker_checkType___closed__1; +x_442 = lean_string_append(x_441, x_440); +lean_dec(x_440); +x_443 = l_Lean_IR_Checker_getDecl___closed__2; +x_444 = lean_string_append(x_442, x_443); +x_445 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_445, 0, x_444); +if (lean_is_scalar(x_435)) { x_446 = lean_alloc_ctor(0, 2, 0); } else { - x_446 = x_433; + x_446 = x_435; } lean_ctor_set(x_446, 0, x_445); -lean_ctor_set(x_446, 1, x_432); +lean_ctor_set(x_446, 1, x_434); return x_446; } +else +{ +lean_object* x_447; lean_object* x_448; +lean_dec(x_1); +x_447 = l_Lean_IR_Checker_markIndex___lambda__1___closed__1; +if (lean_is_scalar(x_435)) { + x_448 = lean_alloc_ctor(0, 2, 0); +} else { + x_448 = x_435; +} +lean_ctor_set(x_448, 0, x_447); +lean_ctor_set(x_448, 1, x_434); +return x_448; +} } } } diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index a0f62d1cca..a95c935e8d 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -54,6 +54,7 @@ lean_object* l_Lean_Core_withCurrHeartbeats___rarg(lean_object*, lean_object*, l lean_object* l_Lean_Core_instMonadRecDepthCoreM___lambda__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadEnvCoreM___closed__1; lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Core_checkMaxHeartbeatsCore___closed__6; lean_object* l_Lean_Core_instMonadRefCoreM___lambda__1(lean_object*, lean_object*, lean_object*); @@ -204,6 +205,7 @@ lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___lambda__1(lean_object*, l static lean_object* l_Lean_Core_instInhabitedState___closed__9; lean_object* l_IO_println___at_Lean_instEval__1___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Core_instInhabitedState___closed__4; +static lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4; lean_object* l_Lean_catchInternalId(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_catchInternalId___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__1; @@ -1227,8 +1229,20 @@ static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAdd _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Core_instInhabitedState___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Core_instInhabitedState___closed__4; +x_2 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -1240,11 +1254,23 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2() { +static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Core_instInhabitedState___closed__4; +x_1 = l_Lean_Core_instInhabitedState___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3; x_2 = l_Lean_Core_State_traceState___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1266,8 +1292,8 @@ x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); lean_dec(x_7); x_9 = lean_ctor_get(x_2, 0); -x_10 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1; -x_11 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2; +x_10 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2; +x_11 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4; lean_inc(x_9); x_12 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_12, 0, x_8); @@ -1292,8 +1318,8 @@ x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); lean_dec(x_14); x_17 = lean_ctor_get(x_2, 0); -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1; -x_19 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2; +x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2; +x_19 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4; lean_inc(x_17); x_20 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_20, 0, x_16); @@ -4780,6 +4806,10 @@ l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1); l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2 = _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2(); lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2); +l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3 = _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3(); +lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3); +l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4 = _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4(); +lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__4); l_Lean_Core_instAddMessageContextCoreM___closed__1 = _init_l_Lean_Core_instAddMessageContextCoreM___closed__1(); lean_mark_persistent(l_Lean_Core_instAddMessageContextCoreM___closed__1); l_Lean_Core_instAddMessageContextCoreM = _init_l_Lean_Core_instAddMessageContextCoreM(); diff --git a/stage0/stdlib/Lean/Data/Xml/Parser.c b/stage0/stdlib/Lean/Data/Xml/Parser.c index 75f85d0b42..155f08809c 100644 --- a/stage0/stdlib/Lean/Data/Xml/Parser.c +++ b/stage0/stdlib/Lean/Data/Xml/Parser.c @@ -7934,7 +7934,7 @@ static lean_object* _init_l_Lean_Xml_Parser_ExternalID___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("PUBLIC"); +x_1 = lean_mk_string("SYSTEM"); return x_1; } } @@ -7942,255 +7942,151 @@ static lean_object* _init_l_Lean_Xml_Parser_ExternalID___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string("SYSTEM"); +x_1 = lean_mk_string("PUBLIC"); return x_1; } } lean_object* l_Lean_Xml_Parser_ExternalID(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_43; lean_object* x_44; -x_43 = l_Lean_Xml_Parser_ExternalID___closed__2; +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Xml_Parser_ExternalID___closed__1; lean_inc(x_1); -x_44 = l_Lean_Parsec_pstring(x_43, x_1); -if (lean_obj_tag(x_44) == 0) +x_3 = l_Lean_Parsec_pstring(x_2, x_1); +if (lean_obj_tag(x_3) == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -lean_dec(x_44); -x_46 = l_Lean_Xml_Parser_S(x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -lean_dec(x_46); -x_48 = l_Lean_Xml_Parser_SystemLiteral(x_47); -if (lean_obj_tag(x_48) == 0) -{ -uint8_t x_49; -lean_dec(x_1); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_48, 1); -lean_dec(x_50); -x_51 = lean_box(0); -lean_ctor_set(x_48, 1, x_51); -return x_48; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_48, 0); -lean_inc(x_52); -lean_dec(x_48); -x_53 = lean_box(0); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_48, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_48, 1); -lean_inc(x_56); -lean_dec(x_48); -x_2 = x_55; -x_3 = x_56; -goto block_42; -} -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_46, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_46, 1); -lean_inc(x_58); -lean_dec(x_46); -x_2 = x_57; -x_3 = x_58; -goto block_42; -} -} -else -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_44, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_44, 1); -lean_inc(x_60); -lean_dec(x_44); -x_2 = x_59; -x_3 = x_60; -goto block_42; -} -block_42: -{ -uint8_t x_4; -x_4 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_2); -if (x_4 == 0) -{ -lean_object* x_5; -lean_dec(x_1); -x_5 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -return x_5; -} -else +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = l_Lean_Xml_Parser_S(x_4); +if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; -lean_dec(x_3); -lean_dec(x_2); -x_6 = l_Lean_Xml_Parser_ExternalID___closed__1; -x_7 = l_Lean_Parsec_pstring(x_6, x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Lean_Xml_Parser_SystemLiteral(x_6); if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = l_Lean_Xml_Parser_S(x_8); -if (lean_obj_tag(x_9) == 0) +uint8_t x_8; +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 1); lean_dec(x_9); -x_11 = l_Lean_Xml_Parser_PubidLiteral(x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Xml_Parser_S(x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -x_15 = l_Lean_Xml_Parser_SystemLiteral(x_14); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_15, 1, x_18); -return x_15; +x_10 = lean_box(0); +lean_ctor_set(x_7, 1, x_10); +return x_7; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 0); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -return x_15; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_15); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_13); -if (x_26 == 0) -{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); return x_13; } -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_13); -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 { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_11); -if (x_30 == 0) +uint8_t x_14; +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) { -return x_11; +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +x_17 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_15); +if (x_17 == 0) +{ +lean_dec(x_1); +return x_7; +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_free_object(x_7); +lean_dec(x_16); +lean_dec(x_15); +x_18 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_19 = l_Lean_Parsec_pstring(x_18, x_1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_Xml_Parser_S(x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +lean_dec(x_21); +x_23 = l_Lean_Xml_Parser_PubidLiteral(x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Xml_Parser_S(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_Lean_Xml_Parser_SystemLiteral(x_26); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 1); +lean_dec(x_29); +x_30 = lean_box(0); +lean_ctor_set(x_27, 1, x_30); +return x_27; } else { lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_11, 0); -x_32 = lean_ctor_get(x_11, 1); -lean_inc(x_32); +x_31 = lean_ctor_get(x_27, 0); lean_inc(x_31); -lean_dec(x_11); -x_33 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_27); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); return x_33; } } -} else { uint8_t x_34; -x_34 = !lean_is_exclusive(x_9); +x_34 = !lean_is_exclusive(x_27); if (x_34 == 0) { -return x_9; +return x_27; } else { lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_9, 0); -x_36 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_ctor_get(x_27, 1); lean_inc(x_36); lean_inc(x_35); -lean_dec(x_9); +lean_dec(x_27); x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -8201,19 +8097,19 @@ return x_37; else { uint8_t x_38; -x_38 = !lean_is_exclusive(x_7); +x_38 = !lean_is_exclusive(x_25); if (x_38 == 0) { -return x_7; +return x_25; } else { lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_7, 0); -x_40 = lean_ctor_get(x_7, 1); +x_39 = lean_ctor_get(x_25, 0); +x_40 = lean_ctor_get(x_25, 1); lean_inc(x_40); lean_inc(x_39); -lean_dec(x_7); +lean_dec(x_25); x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -8221,6 +8117,1072 @@ return x_41; } } } +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_23); +if (x_42 == 0) +{ +return x_23; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_23, 0); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_23); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_21); +if (x_46 == 0) +{ +return x_21; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_21, 0); +x_48 = lean_ctor_get(x_21, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_21); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +x_50 = !lean_is_exclusive(x_19); +if (x_50 == 0) +{ +return x_19; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_19, 0); +x_52 = lean_ctor_get(x_19, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_19); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_7, 0); +x_55 = lean_ctor_get(x_7, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_7); +x_56 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_54); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_1); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_55); +lean_dec(x_54); +x_58 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_59 = l_Lean_Parsec_pstring(x_58, x_1); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l_Lean_Xml_Parser_S(x_60); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l_Lean_Xml_Parser_PubidLiteral(x_62); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l_Lean_Xml_Parser_S(x_64); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +lean_dec(x_65); +x_67 = l_Lean_Xml_Parser_SystemLiteral(x_66); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +x_70 = lean_box(0); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_67, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_67, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_74 = x_67; +} else { + lean_dec_ref(x_67); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_65, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_65, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_78 = x_65; +} else { + lean_dec_ref(x_65); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_80 = lean_ctor_get(x_63, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_63, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_82 = x_63; +} else { + lean_dec_ref(x_63); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_61, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_61, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_86 = x_61; +} else { + lean_dec_ref(x_61); + 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; +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_59, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_59, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_90 = x_59; +} else { + lean_dec_ref(x_59); + 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; +} +} +} +} +} +else +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_5); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_5, 0); +x_94 = lean_ctor_get(x_5, 1); +x_95 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_93); +if (x_95 == 0) +{ +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_96; lean_object* x_97; +lean_free_object(x_5); +lean_dec(x_94); +lean_dec(x_93); +x_96 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_97 = l_Lean_Parsec_pstring(x_96, x_1); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +lean_dec(x_97); +x_99 = l_Lean_Xml_Parser_S(x_98); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +lean_dec(x_99); +x_101 = l_Lean_Xml_Parser_PubidLiteral(x_100); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +lean_dec(x_101); +x_103 = l_Lean_Xml_Parser_S(x_102); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +lean_dec(x_103); +x_105 = l_Lean_Xml_Parser_SystemLiteral(x_104); +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; lean_object* x_108; +x_107 = lean_ctor_get(x_105, 1); +lean_dec(x_107); +x_108 = lean_box(0); +lean_ctor_set(x_105, 1, x_108); +return x_105; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_105, 0); +lean_inc(x_109); +lean_dec(x_105); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; +} +} +else +{ +uint8_t x_112; +x_112 = !lean_is_exclusive(x_105); +if (x_112 == 0) +{ +return x_105; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_105, 0); +x_114 = lean_ctor_get(x_105, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_105); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +else +{ +uint8_t x_116; +x_116 = !lean_is_exclusive(x_103); +if (x_116 == 0) +{ +return x_103; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_103, 0); +x_118 = lean_ctor_get(x_103, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_103); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else +{ +uint8_t x_120; +x_120 = !lean_is_exclusive(x_101); +if (x_120 == 0) +{ +return x_101; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_101, 0); +x_122 = lean_ctor_get(x_101, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_101); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; +} +} +} +else +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_99); +if (x_124 == 0) +{ +return x_99; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_99, 0); +x_126 = lean_ctor_get(x_99, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_99); +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; +} +} +} +else +{ +uint8_t x_128; +x_128 = !lean_is_exclusive(x_97); +if (x_128 == 0) +{ +return x_97; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_97, 0); +x_130 = lean_ctor_get(x_97, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_97); +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; uint8_t x_134; +x_132 = lean_ctor_get(x_5, 0); +x_133 = lean_ctor_get(x_5, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_5); +x_134 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_132); +if (x_134 == 0) +{ +lean_object* x_135; +lean_dec(x_1); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; +} +else +{ +lean_object* x_136; lean_object* x_137; +lean_dec(x_133); +lean_dec(x_132); +x_136 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_137 = l_Lean_Parsec_pstring(x_136, x_1); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; lean_object* x_139; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +lean_dec(x_137); +x_139 = l_Lean_Xml_Parser_S(x_138); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +lean_dec(x_139); +x_141 = l_Lean_Xml_Parser_PubidLiteral(x_140); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +lean_dec(x_141); +x_143 = l_Lean_Xml_Parser_S(x_142); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +lean_dec(x_143); +x_145 = l_Lean_Xml_Parser_SystemLiteral(x_144); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; +} else { + lean_dec_ref(x_145); + x_147 = lean_box(0); +} +x_148 = lean_box(0); +if (lean_is_scalar(x_147)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_147; +} +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_148); +return x_149; +} +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); +lean_inc(x_150); +x_151 = lean_ctor_get(x_145, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_152 = x_145; +} else { + lean_dec_ref(x_145); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_154 = lean_ctor_get(x_143, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_143, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_156 = x_143; +} else { + lean_dec_ref(x_143); + x_156 = lean_box(0); +} +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_156; +} +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_155); +return x_157; +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_158 = lean_ctor_get(x_141, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_141, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_160 = x_141; +} else { + lean_dec_ref(x_141); + x_160 = lean_box(0); +} +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_139, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_139, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_164 = x_139; +} else { + lean_dec_ref(x_139); + x_164 = lean_box(0); +} +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_164; +} +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_166 = lean_ctor_get(x_137, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_137, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_168 = x_137; +} else { + lean_dec_ref(x_137); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +} +} +else +{ +uint8_t x_170; +x_170 = !lean_is_exclusive(x_3); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_171 = lean_ctor_get(x_3, 0); +x_172 = lean_ctor_get(x_3, 1); +x_173 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_171); +if (x_173 == 0) +{ +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_174; lean_object* x_175; +lean_free_object(x_3); +lean_dec(x_172); +lean_dec(x_171); +x_174 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_175 = l_Lean_Parsec_pstring(x_174, x_1); +if (lean_obj_tag(x_175) == 0) +{ +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +lean_dec(x_175); +x_177 = l_Lean_Xml_Parser_S(x_176); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +lean_dec(x_177); +x_179 = l_Lean_Xml_Parser_PubidLiteral(x_178); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +lean_dec(x_179); +x_181 = l_Lean_Xml_Parser_S(x_180); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; lean_object* x_183; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +lean_dec(x_181); +x_183 = l_Lean_Xml_Parser_SystemLiteral(x_182); +if (lean_obj_tag(x_183) == 0) +{ +uint8_t x_184; +x_184 = !lean_is_exclusive(x_183); +if (x_184 == 0) +{ +lean_object* x_185; lean_object* x_186; +x_185 = lean_ctor_get(x_183, 1); +lean_dec(x_185); +x_186 = lean_box(0); +lean_ctor_set(x_183, 1, x_186); +return x_183; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +lean_dec(x_183); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; +} +} +else +{ +uint8_t x_190; +x_190 = !lean_is_exclusive(x_183); +if (x_190 == 0) +{ +return x_183; +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_183, 0); +x_192 = lean_ctor_get(x_183, 1); +lean_inc(x_192); +lean_inc(x_191); +lean_dec(x_183); +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +return x_193; +} +} +} +else +{ +uint8_t x_194; +x_194 = !lean_is_exclusive(x_181); +if (x_194 == 0) +{ +return x_181; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_181, 0); +x_196 = lean_ctor_get(x_181, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_181); +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_195); +lean_ctor_set(x_197, 1, x_196); +return x_197; +} +} +} +else +{ +uint8_t x_198; +x_198 = !lean_is_exclusive(x_179); +if (x_198 == 0) +{ +return x_179; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_179, 0); +x_200 = lean_ctor_get(x_179, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_179); +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 +{ +uint8_t x_202; +x_202 = !lean_is_exclusive(x_177); +if (x_202 == 0) +{ +return x_177; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_177, 0); +x_204 = lean_ctor_get(x_177, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_177); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +} +else +{ +uint8_t x_206; +x_206 = !lean_is_exclusive(x_175); +if (x_206 == 0) +{ +return x_175; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_175, 0); +x_208 = lean_ctor_get(x_175, 1); +lean_inc(x_208); +lean_inc(x_207); +lean_dec(x_175); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +return x_209; +} +} +} +} +else +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +x_210 = lean_ctor_get(x_3, 0); +x_211 = lean_ctor_get(x_3, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_3); +x_212 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_210); +if (x_212 == 0) +{ +lean_object* x_213; +lean_dec(x_1); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_210); +lean_ctor_set(x_213, 1, x_211); +return x_213; +} +else +{ +lean_object* x_214; lean_object* x_215; +lean_dec(x_211); +lean_dec(x_210); +x_214 = l_Lean_Xml_Parser_ExternalID___closed__2; +x_215 = l_Lean_Parsec_pstring(x_214, x_1); +if (lean_obj_tag(x_215) == 0) +{ +lean_object* x_216; lean_object* x_217; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +lean_dec(x_215); +x_217 = l_Lean_Xml_Parser_S(x_216); +if (lean_obj_tag(x_217) == 0) +{ +lean_object* x_218; lean_object* x_219; +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +lean_dec(x_217); +x_219 = l_Lean_Xml_Parser_PubidLiteral(x_218); +if (lean_obj_tag(x_219) == 0) +{ +lean_object* x_220; lean_object* x_221; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +lean_dec(x_219); +x_221 = l_Lean_Xml_Parser_S(x_220); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; lean_object* x_223; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +lean_dec(x_221); +x_223 = l_Lean_Xml_Parser_SystemLiteral(x_222); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_225 = x_223; +} else { + lean_dec_ref(x_223); + x_225 = lean_box(0); +} +x_226 = lean_box(0); +if (lean_is_scalar(x_225)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_225; +} +lean_ctor_set(x_227, 0, x_224); +lean_ctor_set(x_227, 1, x_226); +return x_227; +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_228 = lean_ctor_get(x_223, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_223, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_230 = x_223; +} else { + lean_dec_ref(x_223); + x_230 = lean_box(0); +} +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); +} else { + x_231 = x_230; +} +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +return x_231; +} +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_232 = lean_ctor_get(x_221, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_221, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_234 = x_221; +} else { + lean_dec_ref(x_221); + 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 +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_236 = lean_ctor_get(x_219, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_219, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_238 = x_219; +} else { + lean_dec_ref(x_219); + x_238 = lean_box(0); +} +if (lean_is_scalar(x_238)) { + x_239 = lean_alloc_ctor(1, 2, 0); +} else { + x_239 = x_238; +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_237); +return x_239; +} +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_240 = lean_ctor_get(x_217, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_217, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_242 = x_217; +} else { + lean_dec_ref(x_217); + x_242 = lean_box(0); +} +if (lean_is_scalar(x_242)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_242; +} +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_241); +return x_243; +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_244 = lean_ctor_get(x_215, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_215, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_246 = x_215; +} else { + lean_dec_ref(x_215); + x_246 = lean_box(0); +} +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); +} else { + x_247 = x_246; +} +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; +} +} +} } } } @@ -8459,6 +9421,14 @@ return x_3; static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__4() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("#PCDATA"); +return x_1; +} +} +static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__5() { +_start: +{ uint32_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 40; x_2 = l_Lean_Xml_Parser_endl___closed__1; @@ -8466,22 +9436,12 @@ x_3 = lean_string_push(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Xml_Parser_endl___closed__3; -x_2 = l_Lean_Xml_Parser_Mixed___closed__4; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Xml_Parser_Mixed___closed__5; -x_2 = l_Lean_Xml_Parser_endl___closed__5; +x_1 = l_Lean_Xml_Parser_endl___closed__3; +x_2 = l_Lean_Xml_Parser_Mixed___closed__5; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -8489,9 +9449,11 @@ return x_3; static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("#PCDATA"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Xml_Parser_Mixed___closed__6; +x_2 = l_Lean_Xml_Parser_endl___closed__5; +x_3 = lean_string_append(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Xml_Parser_Mixed___closed__8() { @@ -8513,114 +9475,114 @@ return x_1; lean_object* l_Lean_Xml_Parser_Mixed(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; uint32_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_95; uint8_t x_128; -x_15 = 40; -x_128 = l_String_Iterator_hasNext(x_1); -if (x_128 == 0) +lean_object* x_2; lean_object* x_3; lean_object* x_15; uint32_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_61; uint8_t x_94; +x_37 = 40; +x_94 = l_String_Iterator_hasNext(x_1); +if (x_94 == 0) { -lean_object* x_129; -x_129 = l_Lean_Parsec_unexpectedEndOfInput; +lean_object* x_95; +x_95 = l_Lean_Parsec_unexpectedEndOfInput; lean_inc(x_1); -x_16 = x_1; -x_17 = x_129; -goto block_94; +x_38 = x_1; +x_39 = x_95; +goto block_60; } else { -lean_object* x_130; uint32_t x_131; uint8_t x_132; +lean_object* x_96; uint32_t x_97; uint8_t x_98; lean_inc(x_1); -x_130 = l_String_Iterator_next(x_1); -x_131 = l_String_Iterator_curr(x_1); -x_132 = x_131 == x_15; -if (x_132 == 0) +x_96 = l_String_Iterator_next(x_1); +x_97 = l_String_Iterator_curr(x_1); +x_98 = x_97 == x_37; +if (x_98 == 0) { -lean_object* x_133; -lean_dec(x_130); -x_133 = l_Lean_Xml_Parser_Mixed___closed__6; +lean_object* x_99; +lean_dec(x_96); +x_99 = l_Lean_Xml_Parser_Mixed___closed__7; lean_inc(x_1); -x_16 = x_1; -x_17 = x_133; -goto block_94; +x_38 = x_1; +x_39 = x_99; +goto block_60; } else { -lean_object* x_134; -lean_inc(x_130); -x_134 = l_Lean_Xml_Parser_S(x_130); -if (lean_obj_tag(x_134) == 0) +lean_object* x_100; +lean_inc(x_96); +x_100 = l_Lean_Xml_Parser_S(x_96); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_130); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -lean_dec(x_134); -x_136 = l_Lean_Xml_Parser_Mixed___closed__7; -x_137 = l_Lean_Parsec_pstring(x_136, x_135); -if (lean_obj_tag(x_137) == 0) +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_96); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +lean_dec(x_100); +x_102 = l_Lean_Xml_Parser_Mixed___closed__4; +x_103 = l_Lean_Parsec_pstring(x_102, x_101); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_138; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -lean_dec(x_137); -x_95 = x_138; -goto block_127; +lean_object* x_104; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +lean_dec(x_103); +x_61 = x_104; +goto block_93; } else { -lean_object* x_139; lean_object* x_140; -x_139 = lean_ctor_get(x_137, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec(x_137); -x_16 = x_139; -x_17 = x_140; -goto block_94; +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_103, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_38 = x_105; +x_39 = x_106; +goto block_60; } } else { -lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_141 = lean_ctor_get(x_134, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_134, 1); -lean_inc(x_142); -lean_dec(x_134); -x_143 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_130, x_141); -if (x_143 == 0) +lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_107 = lean_ctor_get(x_100, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_100, 1); +lean_inc(x_108); +lean_dec(x_100); +x_109 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_96, x_107); +if (x_109 == 0) { -lean_dec(x_130); -x_16 = x_141; -x_17 = x_142; -goto block_94; +lean_dec(x_96); +x_38 = x_107; +x_39 = x_108; +goto block_60; } else { -lean_object* x_144; lean_object* x_145; -lean_dec(x_142); -lean_dec(x_141); -x_144 = l_Lean_Xml_Parser_Mixed___closed__7; -x_145 = l_Lean_Parsec_pstring(x_144, x_130); -if (lean_obj_tag(x_145) == 0) +lean_object* x_110; lean_object* x_111; +lean_dec(x_108); +lean_dec(x_107); +x_110 = l_Lean_Xml_Parser_Mixed___closed__4; +x_111 = l_Lean_Parsec_pstring(x_110, x_96); +if (lean_obj_tag(x_111) == 0) { -lean_object* x_146; -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -lean_dec(x_145); -x_95 = x_146; -goto block_127; +lean_object* x_112; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_61 = x_112; +goto block_93; } else { -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_145, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_145, 1); -lean_inc(x_148); -lean_dec(x_145); -x_16 = x_147; -x_17 = x_148; -goto block_94; +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +lean_dec(x_111); +x_38 = x_113; +x_39 = x_114; +goto block_60; } } } @@ -8670,549 +9632,367 @@ return x_13; } } } -block_94: +block_36: { -uint8_t x_18; -x_18 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_16); -if (x_18 == 0) +lean_object* x_16; lean_object* x_17; +x_16 = l_Lean_Xml_Parser_Mixed___closed__4; +x_17 = l_Lean_Parsec_pstring(x_16, x_15); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; -lean_dec(x_1); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_17); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +lean_inc(x_18); +x_19 = l_Lean_Xml_Parser_S(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_box(0); +x_2 = x_20; +x_3 = x_21; +goto block_14; +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_19, 0); +x_24 = lean_ctor_get(x_19, 1); +x_25 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_18, x_23); +if (x_25 == 0) +{ +lean_dec(x_18); return x_19; } else { -uint8_t x_20; -lean_dec(x_17); -lean_dec(x_16); -x_20 = l_String_Iterator_hasNext(x_1); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_Parsec_unexpectedEndOfInput; -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_1); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_object* x_26; +lean_free_object(x_19); +lean_dec(x_24); +lean_dec(x_23); +x_26 = lean_box(0); +x_2 = x_18; +x_3 = x_26; +goto block_14; +} } else { -lean_object* x_23; uint32_t x_24; uint8_t x_25; -lean_inc(x_1); -x_23 = l_String_Iterator_next(x_1); -x_24 = l_String_Iterator_curr(x_1); -x_25 = x_24 == x_15; -if (x_25 == 0) +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_19); +x_29 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_18, x_27); +if (x_29 == 0) { -lean_object* x_26; lean_object* x_27; -lean_dec(x_23); -x_26 = l_Lean_Xml_Parser_Mixed___closed__6; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_1); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_object* x_30; +lean_dec(x_18); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_28); +return x_30; } else { -lean_object* x_28; -lean_dec(x_1); -lean_inc(x_23); -x_28 = l_Lean_Xml_Parser_S(x_23); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_23); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); +lean_object* x_31; lean_dec(x_28); -x_30 = l_Lean_Xml_Parser_Mixed___closed__7; -x_31 = l_Lean_Parsec_pstring(x_30, x_29); -if (lean_obj_tag(x_31) == 0) +lean_dec(x_27); +x_31 = lean_box(0); +x_2 = x_18; +x_3 = x_31; +goto block_14; +} +} +} +} +else { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -lean_dec(x_31); -lean_inc(x_32); -x_33 = l_Lean_Xml_Parser_S(x_32); -if (lean_obj_tag(x_33) == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_17); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; -lean_dec(x_32); -x_34 = lean_ctor_get(x_33, 0); +return x_17; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_17, 0); +x_34 = lean_ctor_get(x_17, 1); lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_box(0); -x_2 = x_34; -x_3 = x_35; -goto block_14; +lean_inc(x_33); +lean_dec(x_17); +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; +} +} +} +block_60: +{ +uint8_t x_40; +x_40 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_1, x_38); +if (x_40 == 0) +{ +lean_object* x_41; +lean_dec(x_1); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_39); +return x_41; } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -x_39 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_32, x_37); -if (x_39 == 0) -{ -lean_dec(x_32); -return x_33; -} -else -{ -lean_object* x_40; -lean_free_object(x_33); +uint8_t x_42; +lean_dec(x_39); lean_dec(x_38); -lean_dec(x_37); -x_40 = lean_box(0); -x_2 = x_32; -x_3 = x_40; -goto block_14; -} -} -else +x_42 = l_String_Iterator_hasNext(x_1); +if (x_42 == 0) { -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_33, 0); -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_33); -x_43 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_32, x_41); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_32); +lean_object* x_43; lean_object* x_44; +x_43 = l_Lean_Parsec_unexpectedEndOfInput; x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 0, x_1); +lean_ctor_set(x_44, 1, x_43); return x_44; } else { -lean_object* x_45; -lean_dec(x_42); -lean_dec(x_41); -x_45 = lean_box(0); -x_2 = x_32; -x_3 = x_45; -goto block_14; -} -} -} -} -else +lean_object* x_45; uint32_t x_46; uint8_t x_47; +lean_inc(x_1); +x_45 = l_String_Iterator_next(x_1); +x_46 = l_String_Iterator_curr(x_1); +x_47 = x_46 == x_37; +if (x_47 == 0) { -uint8_t x_46; -x_46 = !lean_is_exclusive(x_31); -if (x_46 == 0) -{ -return x_31; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_31, 0); -x_48 = lean_ctor_get(x_31, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_31); +lean_object* x_48; lean_object* x_49; +lean_dec(x_45); +x_48 = l_Lean_Xml_Parser_Mixed___closed__7; x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 0, x_1); lean_ctor_set(x_49, 1, x_48); return x_49; } +else +{ +lean_object* x_50; +lean_dec(x_1); +lean_inc(x_45); +x_50 = l_Lean_Xml_Parser_S(x_45); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; +lean_dec(x_45); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +lean_dec(x_50); +x_15 = x_51; +goto block_36; +} +else +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_50); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_50, 0); +x_54 = lean_ctor_get(x_50, 1); +x_55 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_45, x_53); +if (x_55 == 0) +{ +lean_dec(x_45); +return x_50; +} +else +{ +lean_free_object(x_50); +lean_dec(x_54); +lean_dec(x_53); +x_15 = x_45; +goto block_36; } } else { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_28); -if (x_50 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_50, 0); +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_50); +x_58 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_45, x_56); +if (x_58 == 0) { -lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_51 = lean_ctor_get(x_28, 0); -x_52 = lean_ctor_get(x_28, 1); -x_53 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_23, x_51); -if (x_53 == 0) -{ -lean_dec(x_23); -return x_28; +lean_object* x_59; +lean_dec(x_45); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } else { -lean_object* x_54; lean_object* x_55; -lean_free_object(x_28); -lean_dec(x_52); -lean_dec(x_51); -x_54 = l_Lean_Xml_Parser_Mixed___closed__7; -x_55 = l_Lean_Parsec_pstring(x_54, x_23); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -lean_dec(x_55); -lean_inc(x_56); -x_57 = l_Lean_Xml_Parser_S(x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; -lean_dec(x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); lean_dec(x_57); -x_59 = lean_box(0); -x_2 = x_58; -x_3 = x_59; -goto block_14; -} -else -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_57); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_57, 0); -x_62 = lean_ctor_get(x_57, 1); -x_63 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_56, x_61); -if (x_63 == 0) -{ lean_dec(x_56); -return x_57; +x_15 = x_45; +goto block_36; } -else +} +} +} +} +} +} +block_93: { -lean_object* x_64; -lean_free_object(x_57); -lean_dec(x_62); -lean_dec(x_61); -x_64 = lean_box(0); -x_2 = x_56; -x_3 = x_64; -goto block_14; -} -} -else +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = l_Lean_Xml_Parser_Mixed___closed__8; +x_63 = l_Lean_Parsec_many(lean_box(0)); +x_64 = lean_apply_2(x_63, x_62, x_61); +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_57, 0); -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_57); -x_67 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_56, x_65); -if (x_67 == 0) +lean_dec(x_64); +lean_inc(x_65); +x_66 = l_Lean_Xml_Parser_S(x_65); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_68; -lean_dec(x_56); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; -} -else -{ -lean_object* x_69; -lean_dec(x_66); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_dec(x_65); -x_69 = lean_box(0); -x_2 = x_56; -x_3 = x_69; -goto block_14; -} -} -} -} -else +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +lean_dec(x_66); +x_68 = l_Lean_Xml_Parser_Mixed___closed__9; +x_69 = l_Lean_Parsec_pstring(x_68, x_67); +if (lean_obj_tag(x_69) == 0) { uint8_t x_70; -x_70 = !lean_is_exclusive(x_55); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_69); if (x_70 == 0) { -return x_55; +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_69, 1); +lean_dec(x_71); +x_72 = lean_box(0); +lean_ctor_set(x_69, 1, x_72); +return x_69; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_55, 0); -x_72 = lean_ctor_get(x_55, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_55); -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; -} -} +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_69, 0); +lean_inc(x_73); +lean_dec(x_69); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(0, 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_74; lean_object* x_75; uint8_t x_76; -x_74 = lean_ctor_get(x_28, 0); -x_75 = lean_ctor_get(x_28, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_28); -x_76 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_23, x_74); -if (x_76 == 0) -{ -lean_object* x_77; -lean_dec(x_23); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_69, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_69, 1); +lean_inc(x_77); +lean_dec(x_69); +x_38 = x_76; +x_39 = x_77; +goto block_60; +} } else { -lean_object* x_78; lean_object* x_79; -lean_dec(x_75); -lean_dec(x_74); -x_78 = l_Lean_Xml_Parser_Mixed___closed__7; -x_79 = l_Lean_Parsec_pstring(x_78, x_23); -if (lean_obj_tag(x_79) == 0) +lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_78 = lean_ctor_get(x_66, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_66, 1); +lean_inc(x_79); +lean_dec(x_66); +x_80 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_65, x_78); +if (x_80 == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); +lean_dec(x_65); +x_38 = x_78; +x_39 = x_79; +goto block_60; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_dec(x_79); -lean_inc(x_80); -x_81 = l_Lean_Xml_Parser_S(x_80); -if (lean_obj_tag(x_81) == 0) +lean_dec(x_78); +x_81 = l_Lean_Xml_Parser_Mixed___closed__9; +x_82 = l_Lean_Parsec_pstring(x_81, x_65); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_82; lean_object* x_83; -lean_dec(x_80); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -lean_dec(x_81); -x_83 = lean_box(0); -x_2 = x_82; -x_3 = x_83; -goto block_14; +uint8_t x_83; +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_82, 1); +lean_dec(x_84); +x_85 = lean_box(0); +lean_ctor_set(x_82, 1, x_85); +return x_82; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = lean_ctor_get(x_81, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_81, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_86 = x_81; -} else { - lean_dec_ref(x_81); - x_86 = lean_box(0); -} -x_87 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_80, x_84); -if (x_87 == 0) -{ -lean_object* x_88; -lean_dec(x_80); -if (lean_is_scalar(x_86)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_86; -} -lean_ctor_set(x_88, 0, x_84); -lean_ctor_set(x_88, 1, x_85); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_82, 0); +lean_inc(x_86); +lean_dec(x_82); +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); return x_88; } -else -{ -lean_object* x_89; -lean_dec(x_86); -lean_dec(x_85); -lean_dec(x_84); -x_89 = lean_box(0); -x_2 = x_80; -x_3 = x_89; -goto block_14; -} -} } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_79, 0); +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_82, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_82, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_79, 1); +lean_dec(x_82); +x_38 = x_89; +x_39 = x_90; +goto block_60; +} +} +} +} +else +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_64, 0); lean_inc(x_91); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_92 = x_79; -} else { - lean_dec_ref(x_79); - x_92 = lean_box(0); -} -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); -} else { - x_93 = x_92; -} -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; -} -} -} -} -} -} -} -} -block_127: -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = l_Lean_Xml_Parser_Mixed___closed__8; -x_97 = l_Lean_Parsec_many(lean_box(0)); -x_98 = lean_apply_2(x_97, x_96, x_95); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -lean_dec(x_98); -lean_inc(x_99); -x_100 = l_Lean_Xml_Parser_S(x_99); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -lean_dec(x_99); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l_Lean_Xml_Parser_Mixed___closed__9; -x_103 = l_Lean_Parsec_pstring(x_102, x_101); -if (lean_obj_tag(x_103) == 0) -{ -uint8_t x_104; -lean_dec(x_1); -x_104 = !lean_is_exclusive(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_103, 1); -lean_dec(x_105); -x_106 = lean_box(0); -lean_ctor_set(x_103, 1, x_106); -return x_103; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_103, 0); -lean_inc(x_107); -lean_dec(x_103); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_103, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_103, 1); -lean_inc(x_111); -lean_dec(x_103); -x_16 = x_110; -x_17 = x_111; -goto block_94; -} -} -else -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = lean_ctor_get(x_100, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_100, 1); -lean_inc(x_113); -lean_dec(x_100); -x_114 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_99, x_112); -if (x_114 == 0) -{ -lean_dec(x_99); -x_16 = x_112; -x_17 = x_113; -goto block_94; -} -else -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_113); -lean_dec(x_112); -x_115 = l_Lean_Xml_Parser_Mixed___closed__9; -x_116 = l_Lean_Parsec_pstring(x_115, x_99); -if (lean_obj_tag(x_116) == 0) -{ -uint8_t x_117; -lean_dec(x_1); -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, 1); -lean_dec(x_118); -x_119 = lean_box(0); -lean_ctor_set(x_116, 1, x_119); -return x_116; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_116, 0); -lean_inc(x_120); -lean_dec(x_116); -x_121 = lean_box(0); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -else -{ -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_116, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_116, 1); -lean_inc(x_124); -lean_dec(x_116); -x_16 = x_123; -x_17 = x_124; -goto block_94; -} -} -} -} -else -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_98, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_98, 1); -lean_inc(x_126); -lean_dec(x_98); -x_16 = x_125; -x_17 = x_126; -goto block_94; +x_92 = lean_ctor_get(x_64, 1); +lean_inc(x_92); +lean_dec(x_64); +x_38 = x_91; +x_39 = x_92; +goto block_60; } } } @@ -10025,7 +10805,7 @@ if (x_47 == 0) { lean_object* x_48; lean_object* x_49; lean_dec(x_45); -x_48 = l_Lean_Xml_Parser_Mixed___closed__6; +x_48 = l_Lean_Xml_Parser_Mixed___closed__7; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_1); lean_ctor_set(x_49, 1, x_48); @@ -10480,7 +11260,7 @@ if (x_47 == 0) { lean_object* x_48; lean_object* x_49; lean_dec(x_45); -x_48 = l_Lean_Xml_Parser_Mixed___closed__6; +x_48 = l_Lean_Xml_Parser_Mixed___closed__7; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_1); lean_ctor_set(x_49, 1, x_48); @@ -13740,7 +14520,7 @@ if (x_53 == 0) { lean_object* x_54; lean_dec(x_51); -x_54 = l_Lean_Xml_Parser_Mixed___closed__6; +x_54 = l_Lean_Xml_Parser_Mixed___closed__7; lean_ctor_set_tag(x_44, 1); lean_ctor_set(x_44, 1, x_54); return x_44; @@ -13844,7 +14624,7 @@ if (x_72 == 0) { lean_object* x_73; lean_object* x_74; lean_dec(x_70); -x_73 = l_Lean_Xml_Parser_Mixed___closed__6; +x_73 = l_Lean_Xml_Parser_Mixed___closed__7; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_65); lean_ctor_set(x_74, 1, x_73); @@ -14342,7 +15122,7 @@ if (x_47 == 0) { lean_object* x_48; lean_object* x_49; lean_dec(x_45); -x_48 = l_Lean_Xml_Parser_Mixed___closed__6; +x_48 = l_Lean_Xml_Parser_Mixed___closed__7; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_1); lean_ctor_set(x_49, 1, x_48); @@ -20652,7 +21432,7 @@ lean_object* l_Lean_Xml_Parser_PublicID(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Xml_Parser_ExternalID___closed__1; +x_2 = l_Lean_Xml_Parser_ExternalID___closed__2; x_3 = l_Lean_Parsec_pstring(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -20775,141 +21555,71 @@ return x_1; lean_object* l_Lean_Xml_Parser_NotationDecl(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_15; lean_object* x_16; -x_15 = l_Lean_Xml_Parser_NotationDecl___closed__1; -x_16 = l_Lean_Parsec_pstring(x_15, x_1); -if (lean_obj_tag(x_16) == 0) +lean_object* x_2; lean_object* x_15; lean_object* x_27; lean_object* x_28; +x_27 = l_Lean_Xml_Parser_NotationDecl___closed__1; +x_28 = l_Lean_Parsec_pstring(x_27, x_1); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Xml_Parser_S(x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Xml_Parser_Name(x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -lean_inc(x_21); -x_22 = l_Lean_Xml_Parser_ExternalID(x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; -lean_dec(x_21); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -lean_inc(x_23); -x_24 = l_Lean_Xml_Parser_S(x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -lean_dec(x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -lean_dec(x_24); -x_2 = x_25; -goto block_14; -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_24, 0); -x_28 = lean_ctor_get(x_24, 1); -x_29 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_23, x_27); -if (x_29 == 0) -{ -lean_dec(x_23); -return x_24; -} -else -{ -lean_free_object(x_24); +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); lean_dec(x_28); -lean_dec(x_27); -x_2 = x_23; -goto block_14; -} -} -else +x_30 = l_Lean_Xml_Parser_S(x_29); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_24, 0); -x_31 = lean_ctor_get(x_24, 1); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_24); -x_32 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_23, x_30); -if (x_32 == 0) -{ -lean_object* x_33; -lean_dec(x_23); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -return x_33; -} -else -{ -lean_dec(x_31); lean_dec(x_30); -x_2 = x_23; -goto block_14; -} -} -} +x_32 = l_Lean_Xml_Parser_Name(x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(x_32); +lean_inc(x_33); +x_34 = l_Lean_Xml_Parser_ExternalID(x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +lean_dec(x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_15 = x_35; +goto block_26; } else { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_22); -if (x_34 == 0) +uint8_t x_36; +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_22, 0); -x_36 = lean_ctor_get(x_22, 1); -x_37 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_21, x_35); -if (x_37 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_34, 0); +x_38 = lean_ctor_get(x_34, 1); +x_39 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_33, x_37); +if (x_39 == 0) { -lean_dec(x_21); -return x_22; +lean_dec(x_33); +return x_34; } else { -lean_object* x_38; -lean_free_object(x_22); -lean_dec(x_36); -lean_dec(x_35); -x_38 = l_Lean_Xml_Parser_PublicID(x_21); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); +lean_object* x_40; +lean_free_object(x_34); lean_dec(x_38); -lean_inc(x_39); -x_40 = l_Lean_Xml_Parser_S(x_39); +lean_dec(x_37); +x_40 = l_Lean_Xml_Parser_PublicID(x_33); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; -lean_dec(x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); lean_dec(x_40); -x_2 = x_41; -goto block_14; +x_15 = x_41; +goto block_26; } else { @@ -20917,37 +21627,37 @@ uint8_t x_42; x_42 = !lean_is_exclusive(x_40); if (x_42 == 0) { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_40, 0); -x_44 = lean_ctor_get(x_40, 1); -x_45 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_39, x_43); -if (x_45 == 0) -{ -lean_dec(x_39); return x_40; } else { -lean_free_object(x_40); -lean_dec(x_44); -lean_dec(x_43); -x_2 = x_39; -goto block_14; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_40); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} } } else { lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); +x_46 = lean_ctor_get(x_34, 0); +x_47 = lean_ctor_get(x_34, 1); lean_inc(x_47); lean_inc(x_46); -lean_dec(x_40); -x_48 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_39, x_46); +lean_dec(x_34); +x_48 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_33, x_46); if (x_48 == 0) { lean_object* x_49; -lean_dec(x_39); +lean_dec(x_33); x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_46); lean_ctor_set(x_49, 1, x_47); @@ -20955,213 +21665,113 @@ return x_49; } else { +lean_object* x_50; lean_dec(x_47); lean_dec(x_46); -x_2 = x_39; -goto block_14; -} -} -} -} -else +x_50 = l_Lean_Xml_Parser_PublicID(x_33); +if (lean_obj_tag(x_50) == 0) { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_38); -if (x_50 == 0) -{ -return x_38; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_38, 0); -x_52 = lean_ctor_get(x_38, 1); -lean_inc(x_52); +lean_object* x_51; +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -lean_dec(x_38); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_50); +x_15 = x_51; +goto block_26; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +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); + 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(1, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} } } } } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_22, 0); -x_55 = lean_ctor_get(x_22, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_22); -x_56 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_21, x_54); +uint8_t x_56; +x_56 = !lean_is_exclusive(x_32); if (x_56 == 0) { -lean_object* x_57; -lean_dec(x_21); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; +return x_32; } else { -lean_object* x_58; -lean_dec(x_55); -lean_dec(x_54); -x_58 = l_Lean_Xml_Parser_PublicID(x_21); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -lean_dec(x_58); -lean_inc(x_59); -x_60 = l_Lean_Xml_Parser_S(x_59); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; -lean_dec(x_59); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -lean_dec(x_60); -x_2 = x_61; -goto block_14; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_32, 0); +x_58 = lean_ctor_get(x_32, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_32); +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_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_62 = lean_ctor_get(x_60, 0); +uint8_t x_60; +x_60 = !lean_is_exclusive(x_30); +if (x_60 == 0) +{ +return x_30; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_30, 0); +x_62 = lean_ctor_get(x_30, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_64 = x_60; -} else { - lean_dec_ref(x_60); - x_64 = lean_box(0); -} -x_65 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_59, x_62); -if (x_65 == 0) -{ -lean_object* x_66; -lean_dec(x_59); -if (lean_is_scalar(x_64)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_64; -} -lean_ctor_set(x_66, 0, x_62); -lean_ctor_set(x_66, 1, x_63); -return x_66; -} -else -{ -lean_dec(x_64); -lean_dec(x_63); -lean_dec(x_62); -x_2 = x_59; -goto block_14; +lean_inc(x_61); +lean_dec(x_30); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_58, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_58, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_69 = x_58; -} else { - lean_dec_ref(x_58); - x_69 = lean_box(0); -} -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); -} else { - x_70 = x_69; -} -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_68); -return x_70; -} -} -} -} +uint8_t x_64; +x_64 = !lean_is_exclusive(x_28); +if (x_64 == 0) +{ +return x_28; } else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_20); -if (x_71 == 0) -{ -return x_20; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_20, 0); -x_73 = lean_ctor_get(x_20, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_20); -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 -{ -uint8_t x_75; -x_75 = !lean_is_exclusive(x_18); -if (x_75 == 0) -{ -return x_18; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_18, 0); -x_77 = lean_ctor_get(x_18, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_18); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -} -else -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_16); -if (x_79 == 0) -{ -return x_16; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_16, 0); -x_81 = lean_ctor_get(x_16, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_16); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_28, 0); +x_66 = lean_ctor_get(x_28, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_28); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } block_14: @@ -21207,6 +21817,73 @@ return x_13; } } } +block_26: +{ +lean_object* x_16; +lean_inc(x_15); +x_16 = l_Lean_Xml_Parser_S(x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_2 = x_17; +goto block_14; +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +x_21 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_19); +if (x_21 == 0) +{ +lean_dec(x_15); +return x_16; +} +else +{ +lean_free_object(x_16); +lean_dec(x_20); +lean_dec(x_19); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_22); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_15); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +else +{ +lean_dec(x_23); +lean_dec(x_22); +x_2 = x_15; +goto block_14; +} +} +} +} } } lean_object* l_Lean_Xml_Parser_markupDecl(lean_object* x_1) { @@ -22911,218 +23588,218 @@ return x_1; lean_object* l_Lean_Xml_Parser_doctypedecl(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_15; lean_object* x_45; lean_object* x_57; lean_object* x_58; -x_57 = l_Lean_Xml_Parser_doctypedecl___closed__7; -x_58 = l_Lean_Parsec_pstring(x_57, x_1); -if (lean_obj_tag(x_58) == 0) +lean_object* x_2; lean_object* x_15; lean_object* x_81; lean_object* x_93; lean_object* x_94; +x_93 = l_Lean_Xml_Parser_doctypedecl___closed__7; +x_94 = l_Lean_Parsec_pstring(x_93, x_1); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l_Lean_Xml_Parser_S(x_59); -if (lean_obj_tag(x_60) == 0) +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +lean_dec(x_94); +x_96 = l_Lean_Xml_Parser_S(x_95); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -lean_dec(x_60); -x_62 = l_Lean_Xml_Parser_Name(x_61); -if (lean_obj_tag(x_62) == 0) +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +lean_dec(x_96); +x_98 = l_Lean_Xml_Parser_Name(x_97); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -lean_dec(x_62); -lean_inc(x_63); -x_64 = l_Lean_Xml_Parser_S(x_63); -if (lean_obj_tag(x_64) == 0) +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +lean_dec(x_98); +lean_inc(x_99); +x_100 = l_Lean_Xml_Parser_S(x_99); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -lean_dec(x_64); -x_66 = l_Lean_Xml_Parser_ExternalID(x_65); -if (lean_obj_tag(x_66) == 0) +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +lean_dec(x_100); +x_102 = l_Lean_Xml_Parser_ExternalID(x_101); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_67; -lean_dec(x_63); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -lean_dec(x_66); -x_45 = x_67; -goto block_56; +lean_object* x_103; +lean_dec(x_99); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +lean_dec(x_102); +x_81 = x_103; +goto block_92; } else { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_66); -if (x_68 == 0) +uint8_t x_104; +x_104 = !lean_is_exclusive(x_102); +if (x_104 == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_66, 0); -x_70 = lean_ctor_get(x_66, 1); -x_71 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_63, x_69); -if (x_71 == 0) +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_102, 0); +x_106 = lean_ctor_get(x_102, 1); +x_107 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_99, x_105); +if (x_107 == 0) { -lean_dec(x_63); -return x_66; +lean_dec(x_99); +return x_102; } else { -lean_free_object(x_66); -lean_dec(x_70); -lean_dec(x_69); -x_45 = x_63; -goto block_56; +lean_free_object(x_102); +lean_dec(x_106); +lean_dec(x_105); +x_81 = x_99; +goto block_92; } } else { -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_66, 0); -x_73 = lean_ctor_get(x_66, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_66); -x_74 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_63, x_72); -if (x_74 == 0) +lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_108 = lean_ctor_get(x_102, 0); +x_109 = lean_ctor_get(x_102, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_102); +x_110 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_99, x_108); +if (x_110 == 0) { -lean_object* x_75; -lean_dec(x_63); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_object* x_111; +lean_dec(x_99); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } else { -lean_dec(x_73); -lean_dec(x_72); -x_45 = x_63; -goto block_56; +lean_dec(x_109); +lean_dec(x_108); +x_81 = x_99; +goto block_92; } } } } else { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_64); -if (x_76 == 0) +uint8_t x_112; +x_112 = !lean_is_exclusive(x_100); +if (x_112 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_64, 0); -x_78 = lean_ctor_get(x_64, 1); -x_79 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_63, x_77); -if (x_79 == 0) +lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_113 = lean_ctor_get(x_100, 0); +x_114 = lean_ctor_get(x_100, 1); +x_115 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_99, x_113); +if (x_115 == 0) { -lean_dec(x_63); -return x_64; +lean_dec(x_99); +return x_100; } else { -lean_free_object(x_64); -lean_dec(x_78); -lean_dec(x_77); -x_45 = x_63; -goto block_56; +lean_free_object(x_100); +lean_dec(x_114); +lean_dec(x_113); +x_81 = x_99; +goto block_92; } } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_64, 0); -x_81 = lean_ctor_get(x_64, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_64); -x_82 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_63, x_80); -if (x_82 == 0) +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_100, 0); +x_117 = lean_ctor_get(x_100, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_100); +x_118 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_99, x_116); +if (x_118 == 0) { -lean_object* x_83; -lean_dec(x_63); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +lean_object* x_119; +lean_dec(x_99); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } else { -lean_dec(x_81); -lean_dec(x_80); -x_45 = x_63; -goto block_56; +lean_dec(x_117); +lean_dec(x_116); +x_81 = x_99; +goto block_92; } } } } else { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_62); -if (x_84 == 0) +uint8_t x_120; +x_120 = !lean_is_exclusive(x_98); +if (x_120 == 0) { -return x_62; +return x_98; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_62, 0); -x_86 = lean_ctor_get(x_62, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_62); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_98, 0); +x_122 = lean_ctor_get(x_98, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_98); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } else { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_60); -if (x_88 == 0) +uint8_t x_124; +x_124 = !lean_is_exclusive(x_96); +if (x_124 == 0) { -return x_60; +return x_96; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_60, 0); -x_90 = lean_ctor_get(x_60, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_60); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_96, 0); +x_126 = lean_ctor_get(x_96, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_96); +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; } } } else { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_58); -if (x_92 == 0) +uint8_t x_128; +x_128 = !lean_is_exclusive(x_94); +if (x_128 == 0) { -return x_58; +return x_94; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_58, 0); -x_94 = lean_ctor_get(x_58, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_58); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_94, 0); +x_130 = lean_ctor_get(x_94, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_94); +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; } } block_14: @@ -23168,217 +23845,473 @@ return x_13; } } } -block_44: +block_80: { -uint32_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_22; +uint32_t x_16; uint8_t x_17; x_16 = 91; -x_22 = l_String_Iterator_hasNext(x_15); -if (x_22 == 0) +x_17 = l_String_Iterator_hasNext(x_15); +if (x_17 == 0) { -lean_object* x_23; -x_23 = l_Lean_Parsec_unexpectedEndOfInput; -lean_inc(x_15); -x_17 = x_15; -x_18 = x_23; -goto block_21; -} -else +uint8_t x_18; +x_18 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_15); +if (x_18 == 0) { -lean_object* x_24; uint32_t x_25; uint8_t x_26; -lean_inc(x_15); -x_24 = l_String_Iterator_next(x_15); -x_25 = l_String_Iterator_curr(x_15); -x_26 = x_25 == x_16; -if (x_26 == 0) -{ -lean_object* x_27; -lean_dec(x_24); -x_27 = l_Lean_Xml_Parser_doctypedecl___closed__3; -lean_inc(x_15); -x_17 = x_15; -x_18 = x_27; -goto block_21; -} -else -{ -lean_object* x_28; -x_28 = l_Lean_Xml_Parser_intSubset(x_24); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; uint32_t x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -lean_dec(x_28); -x_30 = 93; -x_31 = l_String_Iterator_hasNext(x_29); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = l_Lean_Parsec_unexpectedEndOfInput; -x_17 = x_29; -x_18 = x_32; -goto block_21; -} -else -{ -lean_object* x_33; uint32_t x_34; uint8_t x_35; -lean_inc(x_29); -x_33 = l_String_Iterator_next(x_29); -x_34 = l_String_Iterator_curr(x_29); -x_35 = x_34 == x_30; -if (x_35 == 0) -{ -lean_object* x_36; -lean_dec(x_33); -x_36 = l_Lean_Xml_Parser_doctypedecl___closed__6; -x_17 = x_29; -x_18 = x_36; -goto block_21; -} -else -{ -lean_object* x_37; -lean_dec(x_29); -lean_inc(x_33); -x_37 = l_Lean_Xml_Parser_S(x_33); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; -lean_dec(x_33); -lean_dec(x_15); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -x_2 = x_38; -goto block_14; -} -else -{ -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_33, x_39); -if (x_41 == 0) -{ -lean_dec(x_33); -x_17 = x_39; -x_18 = x_40; -goto block_21; -} -else -{ -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_15); -x_2 = x_33; -goto block_14; -} -} -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_28, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_28, 1); -lean_inc(x_43); -lean_dec(x_28); -x_17 = x_42; -x_18 = x_43; -goto block_21; -} -} -} -block_21: -{ -uint8_t x_19; -x_19 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_17); -if (x_19 == 0) -{ -lean_object* x_20; -lean_dec(x_15); +lean_object* x_19; lean_object* x_20; +x_19 = l_Lean_Parsec_unexpectedEndOfInput; x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_17); -lean_ctor_set(x_20, 1, x_18); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_19); return x_20; } else { -lean_dec(x_18); -lean_dec(x_17); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_21; uint32_t x_22; uint8_t x_23; +lean_inc(x_15); +x_21 = l_String_Iterator_next(x_15); +x_22 = l_String_Iterator_curr(x_15); +x_23 = x_22 == x_16; +if (x_23 == 0) +{ +uint8_t x_24; +lean_dec(x_21); +x_24 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_15); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = l_Lean_Xml_Parser_doctypedecl___closed__3; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_15); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +else +{ +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_27; +x_27 = l_Lean_Xml_Parser_intSubset(x_21); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint32_t x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_dec(x_30); +x_31 = 93; +x_32 = l_String_Iterator_hasNext(x_29); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_29); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_15); +x_34 = l_Lean_Parsec_unexpectedEndOfInput; +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 1, x_34); +return x_27; +} +else +{ +lean_free_object(x_27); +lean_dec(x_29); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_35; uint32_t x_36; uint8_t x_37; +lean_inc(x_29); +x_35 = l_String_Iterator_next(x_29); +x_36 = l_String_Iterator_curr(x_29); +x_37 = x_36 == x_31; +if (x_37 == 0) +{ +uint8_t x_38; +lean_dec(x_35); +x_38 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_29); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_15); +x_39 = l_Lean_Xml_Parser_doctypedecl___closed__6; +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 1, x_39); +return x_27; +} +else +{ +lean_free_object(x_27); +lean_dec(x_29); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_40; +lean_free_object(x_27); +lean_dec(x_29); +lean_inc(x_35); +x_40 = l_Lean_Xml_Parser_S(x_35); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +lean_dec(x_35); +lean_dec(x_15); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_2 = x_41; +goto block_14; +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_40, 1); +x_45 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_35, x_43); +if (x_45 == 0) +{ +uint8_t x_46; +lean_dec(x_35); +x_46 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_43); +if (x_46 == 0) +{ +lean_dec(x_15); +return x_40; +} +else +{ +lean_free_object(x_40); +lean_dec(x_44); +lean_dec(x_43); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_free_object(x_40); +lean_dec(x_44); +lean_dec(x_43); +lean_dec(x_15); +x_2 = x_35; +goto block_14; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +x_49 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_35, x_47); +if (x_49 == 0) +{ +uint8_t x_50; +lean_dec(x_35); +x_50 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_47); +if (x_50 == 0) +{ +lean_object* x_51; +lean_dec(x_15); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_47); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_dec(x_48); +lean_dec(x_47); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_dec(x_48); +lean_dec(x_47); +lean_dec(x_15); +x_2 = x_35; +goto block_14; +} +} +} +} +} +} +else +{ +lean_object* x_52; uint32_t x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_27, 0); +lean_inc(x_52); +lean_dec(x_27); +x_53 = 93; +x_54 = l_String_Iterator_hasNext(x_52); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_52); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_15); +x_56 = l_Lean_Parsec_unexpectedEndOfInput; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_52); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +else +{ +lean_dec(x_52); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_58; uint32_t x_59; uint8_t x_60; +lean_inc(x_52); +x_58 = l_String_Iterator_next(x_52); +x_59 = l_String_Iterator_curr(x_52); +x_60 = x_59 == x_53; +if (x_60 == 0) +{ +uint8_t x_61; +lean_dec(x_58); +x_61 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_52); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_15); +x_62 = l_Lean_Xml_Parser_doctypedecl___closed__6; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_52); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +else +{ +lean_dec(x_52); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_64; +lean_dec(x_52); +lean_inc(x_58); +x_64 = l_Lean_Xml_Parser_S(x_58); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +lean_dec(x_58); +lean_dec(x_15); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +lean_dec(x_64); +x_2 = x_65; +goto block_14; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_68 = x_64; +} else { + lean_dec_ref(x_64); + x_68 = lean_box(0); +} +x_69 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_58, x_66); +if (x_69 == 0) +{ +uint8_t x_70; +lean_dec(x_58); +x_70 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_66); +if (x_70 == 0) +{ +lean_object* x_71; +lean_dec(x_15); +if (lean_is_scalar(x_68)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_68; +} +lean_ctor_set(x_71, 0, x_66); +lean_ctor_set(x_71, 1, x_67); +return x_71; +} +else +{ +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); +lean_dec(x_15); +x_2 = x_58; +goto block_14; +} +} +} +} +} +} +else +{ +uint8_t x_72; +x_72 = !lean_is_exclusive(x_27); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_27, 0); +x_74 = lean_ctor_get(x_27, 1); +x_75 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_73); +if (x_75 == 0) +{ +lean_dec(x_15); +return x_27; +} +else +{ +lean_free_object(x_27); +lean_dec(x_74); +lean_dec(x_73); +x_2 = x_15; +goto block_14; +} +} +else +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = lean_ctor_get(x_27, 0); +x_77 = lean_ctor_get(x_27, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_27); +x_78 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_15, x_76); +if (x_78 == 0) +{ +lean_object* x_79; +lean_dec(x_15); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +else +{ +lean_dec(x_77); +lean_dec(x_76); x_2 = x_15; goto block_14; } } } -block_56: +} +} +} +block_92: { -lean_object* x_46; -lean_inc(x_45); -x_46 = l_Lean_Xml_Parser_S(x_45); -if (lean_obj_tag(x_46) == 0) +lean_object* x_82; +lean_inc(x_81); +x_82 = l_Lean_Xml_Parser_S(x_81); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_47; -lean_dec(x_45); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -lean_dec(x_46); -x_15 = x_47; -goto block_44; +lean_object* x_83; +lean_dec(x_81); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +lean_dec(x_82); +x_15 = x_83; +goto block_80; } else { -uint8_t x_48; -x_48 = !lean_is_exclusive(x_46); -if (x_48 == 0) +uint8_t x_84; +x_84 = !lean_is_exclusive(x_82); +if (x_84 == 0) { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_46, 0); -x_50 = lean_ctor_get(x_46, 1); -x_51 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_45, x_49); -if (x_51 == 0) +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_82, 0); +x_86 = lean_ctor_get(x_82, 1); +x_87 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_81, x_85); +if (x_87 == 0) { -lean_dec(x_45); -return x_46; +lean_dec(x_81); +return x_82; } else { -lean_free_object(x_46); -lean_dec(x_50); -lean_dec(x_49); -x_15 = x_45; -goto block_44; +lean_free_object(x_82); +lean_dec(x_86); +lean_dec(x_85); +x_15 = x_81; +goto block_80; } } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_46, 0); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_46); -x_54 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_45, x_52); -if (x_54 == 0) +lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_82); +x_90 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_1267_(x_81, x_88); +if (x_90 == 0) { -lean_object* x_55; -lean_dec(x_45); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_object* x_91; +lean_dec(x_81); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } else { -lean_dec(x_53); -lean_dec(x_52); -x_15 = x_45; -goto block_44; +lean_dec(x_89); +lean_dec(x_88); +x_15 = x_81; +goto block_80; } } } diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index e10b933832..c60e4ad434 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -38,6 +38,7 @@ lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__1; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__12; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__5; @@ -707,7 +708,6 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHo lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__3; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1924,7 +1924,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f(lean_obje _start: { 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; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_10 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); diff --git a/stage0/stdlib/Lean/Elab/Attributes.c b/stage0/stdlib/Lean/Elab/Attributes.c index e4add85128..c9833f26b9 100644 --- a/stage0/stdlib/Lean/Elab/Attributes.c +++ b/stage0/stdlib/Lean/Elab/Attributes.c @@ -144,7 +144,6 @@ static lean_object* l_Lean_Elab_toAttributeKind___closed__4; lean_object* l_List_forM___at_Lean_Elab_elabAttr___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Elab_elabAttr___spec__2(lean_object*); static lean_object* l_Lean_Elab_toAttributeKind___closed__2; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_toAttributeKind___closed__8; lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1360,7 +1359,7 @@ _start: { 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_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1___boxed), 4, 1); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1), 4, 1); lean_closure_set(x_13, 0, x_1); lean_inc(x_2); x_14 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -1805,7 +1804,7 @@ _start: { 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_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1___boxed), 4, 1); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1), 4, 1); lean_closure_set(x_13, 0, x_1); lean_inc(x_2); x_14 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -2272,15 +2271,6 @@ x_9 = l_List_forM___at_Lean_Elab_elabAttr___spec__2___rarg___lambda__3(x_1, x_2, return x_9; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_elabAttr___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 7f739d215a..326d91ff9b 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -21,6 +21,7 @@ static lean_object* l_Lean_Elab_Term_expandWhereDecls___closed__9; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__6; lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclCore_match__1(lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(lean_object*, lean_object*); @@ -46,6 +47,7 @@ lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__12; static lean_object* l_Lean_Elab_Term_expandWhereDecls___closed__1; static lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___closed__3; +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___closed__2; lean_object* l_Lean_Elab_Term_elabDepArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,7 +65,6 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTacti static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__11; lean_object* lean_name_mk_string(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___closed__2; -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDepArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabArrow___closed__1; lean_object* lean_array_uget(lean_object*, size_t); @@ -155,6 +156,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun___closed__1; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun___closed__2; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandFunBinders_loop___spec__3(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclCore_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabFun___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -238,7 +240,6 @@ static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__30; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__33; -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_getBinderIds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__14; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_precheckFun___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -249,6 +250,7 @@ static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinder static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__3; lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabFun___closed__1; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandLetEqnsDecl___closed__2; @@ -293,6 +295,7 @@ static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__8; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshIdent___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__5; @@ -323,7 +326,6 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___closed__3; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForall___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__24; @@ -358,7 +360,6 @@ uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckFun___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__14; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandWhereDeclsOpt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__5; @@ -420,7 +421,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic lean_object* l_Lean_Elab_Term_elabFunBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandWhereDecls___closed__3; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__11; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getBinderIds___boxed__const__1; @@ -500,7 +500,6 @@ static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__14; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__1; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__8; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandFunBinders_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__5; static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__15; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f___spec__3___closed__2; @@ -536,10 +535,12 @@ static lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3___closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__8; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__11; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl(lean_object*); lean_object* l_Lean_Elab_Term_expandFunBinders_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__3; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__14; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___spec__1___rarg(lean_object*); @@ -580,8 +581,8 @@ static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__17; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__1; lean_object* l_Lean_Elab_Term_declareTacticSyntax___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__34; +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandWhereDeclsOpt(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getMatchAltsNumPatterns___boxed(lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__2___closed__6; @@ -17729,7 +17730,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term return x_2; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(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; uint8_t x_7; @@ -17896,15 +17897,40 @@ return x_48; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___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; -x_6 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg___boxed), 2, 0); +x_6 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg___boxed), 2, 0); return x_6; } } -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -17956,11 +17982,11 @@ return x_20; } } } -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg), 10, 0); return x_2; } } @@ -17988,7 +18014,7 @@ x_18 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBind x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); -x_20 = l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg(x_13, x_19); +x_20 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(x_8, x_9, x_10, x_11, x_12, x_13, x_19); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -18615,7 +18641,7 @@ x_23 = l_Lean_replaceRef(x_17, x_22); lean_dec(x_22); lean_dec(x_17); lean_ctor_set(x_8, 3, x_23); -x_24 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +x_24 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_16); return x_24; } else @@ -18650,7 +18676,7 @@ lean_ctor_set(x_34, 4, x_29); lean_ctor_set(x_34, 5, x_30); lean_ctor_set(x_34, 6, x_31); lean_ctor_set(x_34, 7, x_32); -x_35 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_34, x_9, x_16); +x_35 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_34, x_9, x_16); return x_35; } } @@ -18689,20 +18715,20 @@ return x_39; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___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_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___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_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -18711,6 +18737,20 @@ lean_dec(x_1); return x_6; } } +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -18906,7 +18946,7 @@ x_29 = lean_apply_2(x_3, x_27, x_28); if (x_25 == 0) { lean_object* x_30; -x_30 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_26, x_23, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_30 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_26, x_23, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_21); return x_30; } else @@ -18922,7 +18962,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_34 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_26, x_23, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +x_34 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_26, x_23, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_33); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; @@ -22186,7 +22226,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -22817,15 +22857,6 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -23068,7 +23099,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -25138,7 +25169,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 7cb404d592..88d7b9ae1f 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -95,7 +95,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert___closed__5; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandHave___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic___closed__5; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor___closed__5; static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5; uint8_t lean_name_eq(lean_object*, lean_object*); @@ -12151,7 +12150,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -13374,15 +13373,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 8e6a8d7e53..cd4baac65a 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -74,12 +74,11 @@ lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__1___box lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__11(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_DocString_0__Lean_docStringExt; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_liftAttrM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static uint32_t l_Lean_Elab_Command_instInhabitedState___closed__3; +static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__3; static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_liftIO(lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -148,7 +147,7 @@ lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__5; static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__1; static lean_object* l_Lean_Elab_Command_State_messages___default___closed__1; -static size_t l_Lean_Elab_Command_instInhabitedState___closed__7; +static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__7; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__10; lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -179,7 +178,6 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1___bo static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__3; lean_object* l_Lean_Elab_Command_elabCommand_match__2(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_expandMacroImpl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1(lean_object*, size_t, size_t, lean_object*); @@ -252,7 +250,7 @@ static lean_object* l_Lean_Elab_Command_State_nextMacroScope___default___closed_ lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__8; +static size_t l_Lean_Elab_Command_instInhabitedState___closed__8; lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_liftEIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -345,6 +343,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Com static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__6; lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__13; lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_348_(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1642_(lean_object*); @@ -375,6 +374,7 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); lean_object* l_Lean_Elab_Command_getScopes(lean_object*); +static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3; extern lean_object* l_Lean_protectedExt; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__4___closed__7; lean_object* l_Lean_Elab_Command_Context_currRecDepth___default; @@ -441,7 +441,6 @@ lean_object* l_Lean_Elab_Command_withMacroExpansion(lean_object*); lean_object* l_Lean_Elab_Command_withLogging_match__1(lean_object*); lean_object* l_Lean_Elab_Command_modifyScope_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__6___lambda__2___closed__1; @@ -533,7 +532,7 @@ lean_object* l_Lean_Elab_Command_instInhabitedScope; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___closed__5; static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__3; -static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__4; +static uint32_t l_Lean_Elab_Command_instInhabitedState___closed__4; static lean_object* l_Lean_Elab_Command_Scope_varDecls___default___closed__1; static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__3; lean_object* l_Lean_Elab_Command_runTermElabM_match__1(lean_object*); @@ -1018,10 +1017,22 @@ return x_2; static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_State_infoState___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__3() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Elab_Command_instInhabitedState___closed__1; -x_3 = l_Lean_Elab_Command_State_infoState___default___closed__3; +x_3 = l_Lean_Elab_Command_instInhabitedState___closed__2; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -1029,7 +1040,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static uint32_t _init_l_Lean_Elab_Command_instInhabitedState___closed__3() { +static uint32_t _init_l_Lean_Elab_Command_instInhabitedState___closed__4() { _start: { lean_object* x_1; uint32_t x_2; @@ -1038,11 +1049,11 @@ x_2 = lean_uint32_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__4() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__5() { _start: { uint32_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_instInhabitedState___closed__3; +x_1 = l_Lean_Elab_Command_instInhabitedState___closed__4; x_2 = 0; x_3 = lean_box(0); x_4 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; @@ -1056,14 +1067,14 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 4, x_2); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__5() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_Command_instInhabitedState___closed__1; -x_2 = l_Lean_Elab_Command_instInhabitedState___closed__2; +x_2 = l_Lean_Elab_Command_instInhabitedState___closed__3; x_3 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_4 = l_Lean_Elab_Command_instInhabitedState___closed__4; +x_4 = l_Lean_Elab_Command_instInhabitedState___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -1072,7 +1083,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__6() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -1082,7 +1093,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static size_t _init_l_Lean_Elab_Command_instInhabitedState___closed__7() { +static size_t _init_l_Lean_Elab_Command_instInhabitedState___closed__8() { _start: { lean_object* x_1; size_t x_2; @@ -1091,14 +1102,14 @@ x_2 = lean_usize_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__8() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_instInhabitedState___closed__6; +x_1 = l_Lean_Elab_Command_instInhabitedState___closed__7; x_2 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Elab_Command_instInhabitedState___closed__7; +x_4 = l_Lean_Elab_Command_instInhabitedState___closed__8; x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -1108,7 +1119,7 @@ lean_ctor_set_usize(x_5, 4, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__9() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1120,13 +1131,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__10() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__11() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; x_2 = l_Lean_Elab_Command_State_infoState___default___closed__3; -x_3 = l_Lean_Elab_Command_instInhabitedState___closed__8; +x_3 = l_Lean_Elab_Command_instInhabitedState___closed__9; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -1134,29 +1145,29 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__11() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__12() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 0; -x_2 = l_Lean_Elab_Command_instInhabitedState___closed__8; +x_2 = l_Lean_Elab_Command_instInhabitedState___closed__9; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__12() { +static lean_object* _init_l_Lean_Elab_Command_instInhabitedState___closed__13() { _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; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_instInhabitedState___closed__5; -x_3 = l_Lean_Elab_Command_instInhabitedState___closed__8; +x_2 = l_Lean_Elab_Command_instInhabitedState___closed__6; +x_3 = l_Lean_Elab_Command_instInhabitedState___closed__9; x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Elab_Command_instInhabitedState___closed__9; -x_6 = l_Lean_Elab_Command_instInhabitedState___closed__10; -x_7 = l_Lean_Elab_Command_instInhabitedState___closed__11; +x_5 = l_Lean_Elab_Command_instInhabitedState___closed__10; +x_6 = l_Lean_Elab_Command_instInhabitedState___closed__11; +x_7 = l_Lean_Elab_Command_instInhabitedState___closed__12; x_8 = lean_alloc_ctor(0, 9, 0); lean_ctor_set(x_8, 0, x_2); lean_ctor_set(x_8, 1, x_3); @@ -1174,7 +1185,7 @@ static lean_object* _init_l_Lean_Elab_Command_instInhabitedState() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_Command_instInhabitedState___closed__12; +x_1 = l_Lean_Elab_Command_instInhabitedState___closed__13; return x_1; } } @@ -2017,7 +2028,19 @@ static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_State_infoState___default___closed__3; +x_1 = l_Lean_Elab_Command_State_infoState___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2; x_2 = l_Lean_Elab_Command_State_messages___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2053,7 +2076,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); x_15 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1; -x_16 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2; +x_16 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3; x_17 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_17, 0, x_8); lean_ctor_set(x_17, 1, x_15); @@ -2082,7 +2105,7 @@ x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); x_24 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1; -x_25 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2; +x_25 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3; x_26 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_26, 0, x_8); lean_ctor_set(x_26, 1, x_24); @@ -6248,7 +6271,7 @@ _start: { lean_object* x_1; uint32_t x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_instInhabitedState___closed__3; +x_2 = l_Lean_Elab_Command_instInhabitedState___closed__4; x_3 = l_Lean_Elab_Command_instInhabitedScope___closed__1; x_4 = lean_alloc_ctor(0, 2, 4); lean_ctor_set(x_4, 0, x_1); @@ -10643,7 +10666,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -11257,7 +11280,7 @@ x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_inc(x_1); lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f), 4, 2); lean_closure_set(x_12, 0, x_11); lean_closure_set(x_12, 1, x_1); lean_inc(x_5); @@ -11277,7 +11300,6 @@ lean_dec(x_13); x_16 = l_Lean_Elab_Command_commandElabAttribute; lean_inc(x_2); x_17 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_16, x_11, x_2); -lean_dec(x_11); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -11578,15 +11600,6 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -14272,7 +14285,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext___closed__1; -x_3 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2; +x_3 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3; x_4 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 5, 0); @@ -17356,14 +17369,14 @@ static lean_object* _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__9() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1; -x_2 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__8; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1; +x_3 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__8; x_4 = l_Lean_Elab_Command_State_messages___default___closed__3; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -21309,15 +21322,15 @@ lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__1); l_Lean_Elab_Command_instInhabitedState___closed__2 = _init_l_Lean_Elab_Command_instInhabitedState___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__2); l_Lean_Elab_Command_instInhabitedState___closed__3 = _init_l_Lean_Elab_Command_instInhabitedState___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__3); l_Lean_Elab_Command_instInhabitedState___closed__4 = _init_l_Lean_Elab_Command_instInhabitedState___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__4); l_Lean_Elab_Command_instInhabitedState___closed__5 = _init_l_Lean_Elab_Command_instInhabitedState___closed__5(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__5); l_Lean_Elab_Command_instInhabitedState___closed__6 = _init_l_Lean_Elab_Command_instInhabitedState___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__6); l_Lean_Elab_Command_instInhabitedState___closed__7 = _init_l_Lean_Elab_Command_instInhabitedState___closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__7); l_Lean_Elab_Command_instInhabitedState___closed__8 = _init_l_Lean_Elab_Command_instInhabitedState___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__8); l_Lean_Elab_Command_instInhabitedState___closed__9 = _init_l_Lean_Elab_Command_instInhabitedState___closed__9(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__9); l_Lean_Elab_Command_instInhabitedState___closed__10 = _init_l_Lean_Elab_Command_instInhabitedState___closed__10(); @@ -21326,6 +21339,8 @@ l_Lean_Elab_Command_instInhabitedState___closed__11 = _init_l_Lean_Elab_Command_ lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__11); l_Lean_Elab_Command_instInhabitedState___closed__12 = _init_l_Lean_Elab_Command_instInhabitedState___closed__12(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__12); +l_Lean_Elab_Command_instInhabitedState___closed__13 = _init_l_Lean_Elab_Command_instInhabitedState___closed__13(); +lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState___closed__13); l_Lean_Elab_Command_instInhabitedState = _init_l_Lean_Elab_Command_instInhabitedState(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedState); l_Lean_Elab_Command_Context_currRecDepth___default = _init_l_Lean_Elab_Command_Context_currRecDepth___default(); @@ -21385,6 +21400,8 @@ l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextComm lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1); l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2 = _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2(); lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2); +l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3 = _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3(); +lean_mark_persistent(l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3); l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1 = _init_l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1); l_Lean_Elab_Command_instAddMessageContextCommandElabM = _init_l_Lean_Elab_Command_instAddMessageContextCommandElabM(); diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index aac90e1a87..f45c8d3f48 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -58,7 +58,6 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_DefKind_isTheorem_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__1; @@ -5331,7 +5330,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -5710,7 +5709,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -6045,15 +6044,6 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -6561,7 +6551,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -6940,7 +6930,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); diff --git a/stage0/stdlib/Lean/Elab/Deriving/BEq.c b/stage0/stdlib/Lean/Elab/Deriving/BEq.c index 1c98707ed5..ba6ae8c870 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/BEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/BEq.c @@ -25,13 +25,17 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__17; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__14; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23; +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13; lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__9; lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__4; lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -40,6 +44,7 @@ lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader___rarg(lean_object*, lean_obje static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__9; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__2; lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4; lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__1; @@ -49,11 +54,13 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__13; lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__7; +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__9; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__3; lean_object* lean_array_get_size(lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); @@ -64,10 +71,10 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1___closed__4; lean_object* lean_string_utf8_byte_size(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__7; -lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader___boxed(lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkLocalInstanceLetDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__6; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -78,10 +85,13 @@ lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__6; lean_object* l_List_mapTRAux___at___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___spec__1(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3; lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__1; lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__2; +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__19; @@ -99,13 +109,17 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__18; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__8; lean_object* l_Lean_Elab_Deriving_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, 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_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts_match__1(lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__1; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14; lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts_match__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__5; +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__3; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__7; lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__16; @@ -114,13 +128,14 @@ lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageCo static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__6; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMutualBlock___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__10; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__6; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__14; lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__24; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__4; extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -130,12 +145,12 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__11; lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__2; +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumCmd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts_match__2(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__7; lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader___rarg___closed__2; lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__4; @@ -144,38 +159,50 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_m lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__23; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__13; +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__21; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__8; lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__5; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__8; -lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179_(lean_object*); +lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615_(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__29; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__3; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMutualBlock___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__5; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__7; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__22; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__15; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__1; +lean_object* l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__18; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__6; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__16; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__4; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__3; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__7; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__5; lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_6598____spec__3(size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__9; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__5; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__26; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__12; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__3; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__13; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__7; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1___closed__2; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -185,28 +212,34 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__11; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1___closed__3; lean_object* l_Lean_Elab_registerBuiltinDerivingHandler(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__10; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__11; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__10; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__2; lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__1___closed__1; +static lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1; lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5___lambda__1___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__12; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__3; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__19; +lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* lean_mk_syntax_ident(lean_object*); +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12; +lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedInductiveVal; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__28; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__14; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__5; -static lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__10; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__20; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__8; @@ -216,6 +249,7 @@ lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler(lean_object*, lean_ob static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__7; lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__1; +static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11; lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__8; static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__12; @@ -232,7 +266,6 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__3; lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__9; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__4; @@ -5166,7 +5199,1369 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("explicitBinder"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__6; +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("("); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("x"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("y"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(")"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("x.toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7; +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("y.toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11; +x_2 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_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; uint8_t x_21; +x_10 = lean_ctor_get(x_1, 1); +x_11 = l_Lean_instInhabitedName; +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_array_get(x_11, x_10, x_12); +lean_inc(x_7); +x_14 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_7, x_8, x_9); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_16); +lean_dec(x_7); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_19); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_22 = lean_ctor_get(x_20, 0); +x_23 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__7; +lean_inc(x_15); +x_24 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__10; +x_26 = lean_array_push(x_25, x_24); +x_27 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__8; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_array_push(x_25, x_28); +x_30 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__15; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__10; +x_33 = lean_array_push(x_32, x_31); +x_34 = l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__3; +x_35 = lean_array_push(x_33, x_34); +x_36 = lean_array_push(x_35, x_34); +x_37 = lean_array_push(x_36, x_34); +x_38 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__6; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__11; +lean_inc(x_15); +x_41 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_41, 0, x_15); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_mk_syntax_ident(x_13); +x_43 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__14; +x_44 = lean_array_push(x_43, x_42); +x_45 = lean_array_push(x_44, x_34); +x_46 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__14; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3; +lean_inc(x_15); +x_49 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_49, 0, x_15); +lean_ctor_set(x_49, 1, x_48); +x_50 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7; +lean_inc(x_18); +lean_inc(x_22); +x_51 = l_Lean_addMacroScope(x_22, x_50, x_18); +x_52 = lean_box(0); +x_53 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6; +lean_inc(x_15); +x_54 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_54, 0, x_15); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_54, 2, x_51); +lean_ctor_set(x_54, 3, x_52); +x_55 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11; +lean_inc(x_18); +lean_inc(x_22); +x_56 = l_Lean_addMacroScope(x_22, x_55, x_18); +x_57 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10; +lean_inc(x_15); +x_58 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_58, 0, x_15); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_56); +lean_ctor_set(x_58, 3, x_52); +x_59 = lean_array_push(x_43, x_54); +x_60 = lean_array_push(x_59, x_58); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_30); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__19; +lean_inc(x_15); +x_63 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_63, 0, x_15); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_mk_syntax_ident(x_2); +x_65 = lean_array_push(x_43, x_63); +lean_inc(x_65); +x_66 = lean_array_push(x_65, x_64); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_30); +lean_ctor_set(x_67, 1, x_66); +x_68 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12; +lean_inc(x_15); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_15); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__27; +x_71 = lean_array_push(x_70, x_49); +x_72 = lean_array_push(x_71, x_61); +x_73 = lean_array_push(x_72, x_67); +x_74 = lean_array_push(x_73, x_34); +x_75 = lean_array_push(x_74, x_69); +x_76 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = lean_array_push(x_25, x_77); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_30); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__7; +lean_inc(x_18); +lean_inc(x_22); +x_81 = l_Lean_addMacroScope(x_22, x_80, x_18); +x_82 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__21; +x_83 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14; +lean_inc(x_15); +x_84 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_84, 0, x_15); +lean_ctor_set(x_84, 1, x_82); +lean_ctor_set(x_84, 2, x_81); +lean_ctor_set(x_84, 3, x_83); +x_85 = lean_array_push(x_65, x_84); +x_86 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__18; +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_85); +x_88 = lean_array_push(x_25, x_87); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_30); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_array_push(x_43, x_79); +x_91 = lean_array_push(x_90, x_89); +x_92 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__16; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__26; +lean_inc(x_15); +x_95 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_95, 0, x_15); +lean_ctor_set(x_95, 1, x_94); +x_96 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19; +lean_inc(x_18); +lean_inc(x_22); +x_97 = l_Lean_addMacroScope(x_22, x_96, x_18); +x_98 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17; +lean_inc(x_15); +x_99 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_99, 0, x_15); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_99, 2, x_97); +lean_ctor_set(x_99, 3, x_52); +x_100 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__10; +lean_inc(x_15); +x_101 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_101, 0, x_15); +lean_ctor_set(x_101, 1, x_100); +x_102 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23; +x_103 = l_Lean_addMacroScope(x_22, x_102, x_18); +x_104 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22; +x_105 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_105, 0, x_15); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_103); +lean_ctor_set(x_105, 3, x_52); +x_106 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__11; +x_107 = lean_array_push(x_106, x_99); +x_108 = lean_array_push(x_107, x_101); +x_109 = lean_array_push(x_108, x_105); +x_110 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__9; +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +x_112 = lean_array_push(x_106, x_95); +x_113 = lean_array_push(x_112, x_111); +x_114 = lean_array_push(x_113, x_34); +x_115 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__25; +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +x_117 = lean_array_push(x_70, x_41); +x_118 = lean_array_push(x_117, x_47); +x_119 = lean_array_push(x_118, x_93); +x_120 = lean_array_push(x_119, x_116); +x_121 = lean_array_push(x_120, x_34); +x_122 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__12; +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_121); +x_124 = lean_array_push(x_43, x_39); +x_125 = lean_array_push(x_124, x_123); +x_126 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__4; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_20, 0, x_127); +return x_20; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 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; 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; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; 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; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_128 = lean_ctor_get(x_20, 0); +x_129 = lean_ctor_get(x_20, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_20); +x_130 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__7; +lean_inc(x_15); +x_131 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_131, 0, x_15); +lean_ctor_set(x_131, 1, x_130); +x_132 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__10; +x_133 = lean_array_push(x_132, x_131); +x_134 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__8; +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +x_136 = lean_array_push(x_132, x_135); +x_137 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__15; +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +x_139 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__10; +x_140 = lean_array_push(x_139, x_138); +x_141 = l_Lean_Elab_Deriving_BEq_mkMatch___rarg___closed__3; +x_142 = lean_array_push(x_140, x_141); +x_143 = lean_array_push(x_142, x_141); +x_144 = lean_array_push(x_143, x_141); +x_145 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__6; +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_144); +x_147 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__11; +lean_inc(x_15); +x_148 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_148, 0, x_15); +lean_ctor_set(x_148, 1, x_147); +x_149 = lean_mk_syntax_ident(x_13); +x_150 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__14; +x_151 = lean_array_push(x_150, x_149); +x_152 = lean_array_push(x_151, x_141); +x_153 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__14; +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_152); +x_155 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3; +lean_inc(x_15); +x_156 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_156, 0, x_15); +lean_ctor_set(x_156, 1, x_155); +x_157 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7; +lean_inc(x_18); +lean_inc(x_128); +x_158 = l_Lean_addMacroScope(x_128, x_157, x_18); +x_159 = lean_box(0); +x_160 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6; +lean_inc(x_15); +x_161 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_161, 0, x_15); +lean_ctor_set(x_161, 1, x_160); +lean_ctor_set(x_161, 2, x_158); +lean_ctor_set(x_161, 3, x_159); +x_162 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11; +lean_inc(x_18); +lean_inc(x_128); +x_163 = l_Lean_addMacroScope(x_128, x_162, x_18); +x_164 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10; +lean_inc(x_15); +x_165 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_165, 0, x_15); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set(x_165, 2, x_163); +lean_ctor_set(x_165, 3, x_159); +x_166 = lean_array_push(x_150, x_161); +x_167 = lean_array_push(x_166, x_165); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_137); +lean_ctor_set(x_168, 1, x_167); +x_169 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__19; +lean_inc(x_15); +x_170 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_170, 0, x_15); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_mk_syntax_ident(x_2); +x_172 = lean_array_push(x_150, x_170); +lean_inc(x_172); +x_173 = lean_array_push(x_172, x_171); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_137); +lean_ctor_set(x_174, 1, x_173); +x_175 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12; +lean_inc(x_15); +x_176 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_176, 0, x_15); +lean_ctor_set(x_176, 1, x_175); +x_177 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__27; +x_178 = lean_array_push(x_177, x_156); +x_179 = lean_array_push(x_178, x_168); +x_180 = lean_array_push(x_179, x_174); +x_181 = lean_array_push(x_180, x_141); +x_182 = lean_array_push(x_181, x_176); +x_183 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2; +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +x_185 = lean_array_push(x_132, x_184); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_137); +lean_ctor_set(x_186, 1, x_185); +x_187 = l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__7; +lean_inc(x_18); +lean_inc(x_128); +x_188 = l_Lean_addMacroScope(x_128, x_187, x_18); +x_189 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__21; +x_190 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14; +lean_inc(x_15); +x_191 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_191, 0, x_15); +lean_ctor_set(x_191, 1, x_189); +lean_ctor_set(x_191, 2, x_188); +lean_ctor_set(x_191, 3, x_190); +x_192 = lean_array_push(x_172, x_191); +x_193 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__18; +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +x_195 = lean_array_push(x_132, x_194); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_137); +lean_ctor_set(x_196, 1, x_195); +x_197 = lean_array_push(x_150, x_186); +x_198 = lean_array_push(x_197, x_196); +x_199 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__16; +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +x_201 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__26; +lean_inc(x_15); +x_202 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_202, 0, x_15); +lean_ctor_set(x_202, 1, x_201); +x_203 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19; +lean_inc(x_18); +lean_inc(x_128); +x_204 = l_Lean_addMacroScope(x_128, x_203, x_18); +x_205 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17; +lean_inc(x_15); +x_206 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_206, 0, x_15); +lean_ctor_set(x_206, 1, x_205); +lean_ctor_set(x_206, 2, x_204); +lean_ctor_set(x_206, 3, x_159); +x_207 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__10; +lean_inc(x_15); +x_208 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_208, 0, x_15); +lean_ctor_set(x_208, 1, x_207); +x_209 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23; +x_210 = l_Lean_addMacroScope(x_128, x_209, x_18); +x_211 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22; +x_212 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_212, 0, x_15); +lean_ctor_set(x_212, 1, x_211); +lean_ctor_set(x_212, 2, x_210); +lean_ctor_set(x_212, 3, x_159); +x_213 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__11; +x_214 = lean_array_push(x_213, x_206); +x_215 = lean_array_push(x_214, x_208); +x_216 = lean_array_push(x_215, x_212); +x_217 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__9; +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_216); +x_219 = lean_array_push(x_213, x_202); +x_220 = lean_array_push(x_219, x_218); +x_221 = lean_array_push(x_220, x_141); +x_222 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__25; +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_221); +x_224 = lean_array_push(x_177, x_148); +x_225 = lean_array_push(x_224, x_154); +x_226 = lean_array_push(x_225, x_200); +x_227 = lean_array_push(x_226, x_223); +x_228 = lean_array_push(x_227, x_141); +x_229 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__12; +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +x_231 = lean_array_push(x_150, x_146); +x_232 = lean_array_push(x_231, x_230); +x_233 = l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__4; +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_232); +x_235 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_129); +return x_235; +} +} +} +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumCmd(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: +{ +lean_object* x_9; lean_object* x_10; +x_9 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_Elab_Deriving_mkContext(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +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; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_6); +lean_inc(x_1); +x_13 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__10; +x_17 = lean_array_push(x_16, x_1); +x_18 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___rarg___closed__2; +x_19 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_20 = l_Lean_Elab_Deriving_mkInstanceCmds(x_11, x_18, x_17, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_17); +lean_dec(x_11); +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; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +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_array_push(x_16, x_14); +x_25 = l_Array_append___rarg(x_24, x_21); +x_26 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__6; +x_44 = lean_st_ref_get(x_7, x_22); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_45, 3); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*1); +lean_dec(x_46); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_44, 1); +lean_inc(x_48); +lean_dec(x_44); +x_49 = 0; +x_27 = x_49; +x_28 = x_48; +goto block_43; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_50 = lean_ctor_get(x_44, 1); +lean_inc(x_50); +lean_dec(x_44); +x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_unbox(x_52); +lean_dec(x_52); +x_27 = x_54; +x_28 = x_53; +goto block_43; +} +block_43: +{ +if (x_27 == 0) +{ +lean_object* x_29; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_23)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_23; +} +lean_ctor_set(x_29, 0, x_25); +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; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_23); +lean_inc(x_25); +x_30 = lean_array_to_list(lean_box(0), x_25); +x_31 = lean_box(0); +x_32 = l_List_mapTRAux___at___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___spec__1(x_30, x_31); +x_33 = l_Lean_MessageData_ofList(x_32); +lean_dec(x_32); +x_34 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__8; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__10; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_26, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +lean_ctor_set(x_38, 0, x_25); +return x_38; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_25); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_55 = !lean_is_exclusive(x_20); +if (x_55 == 0) +{ +return x_20; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_20, 0); +x_57 = lean_ctor_get(x_20, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_20); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +uint8_t x_59; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_10); +if (x_59 == 0) +{ +return x_10; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_10, 0); +x_61 = lean_ctor_get(x_10, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_10); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +} +lean_object* l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_5 = 1; +x_6 = lean_box(x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_17; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +lean_inc(x_2); +x_17 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(x_8, x_2, x_3, x_4); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 6) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_20, 4); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_eq(x_21, x_22); +lean_dec(x_21); +x_10 = x_23; +x_11 = x_19; +goto block_16; +} +else +{ +lean_object* x_24; uint8_t x_25; +lean_dec(x_18); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_dec(x_17); +x_25 = 0; +x_10 = x_25; +x_11 = x_24; +goto block_16; +} +} +else +{ +uint8_t x_26; +lean_dec(x_9); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +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; +} +} +block_16: +{ +if (x_10 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_2); +x_12 = 0; +x_13 = lean_box(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_11); +return x_14; +} +else +{ +x_1 = x_9; +x_4 = x_11; +goto _start; +} +} +} +} +} +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_2); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 5) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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; uint8_t x_15; +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_ctor_get(x_10, 3); +lean_inc(x_11); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_List_lengthTRAux___rarg(x_11, x_12); +lean_dec(x_11); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_dec_eq(x_13, x_14); +lean_dec(x_13); +if (x_15 == 0) +{ +uint8_t x_16; lean_object* x_17; +lean_dec(x_10); +lean_dec(x_2); +x_16 = 0; +x_17 = lean_box(x_16); +lean_ctor_set(x_5, 0, x_17); +return x_5; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_10, 2); +lean_inc(x_18); +x_19 = lean_nat_dec_eq(x_18, x_12); +lean_dec(x_18); +if (x_19 == 0) +{ +uint8_t x_20; lean_object* x_21; +lean_dec(x_10); +lean_dec(x_2); +x_20 = 0; +x_21 = lean_box(x_20); +lean_ctor_set(x_5, 0, x_21); +return x_5; +} +else +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +x_23 = lean_nat_dec_eq(x_22, x_12); +lean_dec(x_22); +if (x_23 == 0) +{ +uint8_t x_24; lean_object* x_25; +lean_dec(x_10); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(x_24); +lean_ctor_set(x_5, 0, x_25); +return x_5; +} +else +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_10, 4); +lean_inc(x_26); +x_27 = l_List_isEmpty___rarg(x_26); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*5); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = lean_ctor_get_uint8(x_10, sizeof(void*)*5 + 3); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = lean_ctor_get_uint8(x_10, sizeof(void*)*5 + 1); +lean_dec(x_10); +if (x_30 == 0) +{ +lean_object* x_31; +lean_free_object(x_5); +x_31 = l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(x_26, x_2, x_3, x_8); +return x_31; +} +else +{ +uint8_t x_32; lean_object* x_33; +lean_dec(x_26); +lean_dec(x_2); +x_32 = 0; +x_33 = lean_box(x_32); +lean_ctor_set(x_5, 0, x_33); +return x_5; +} +} +else +{ +uint8_t x_34; lean_object* x_35; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_34 = 0; +x_35 = lean_box(x_34); +lean_ctor_set(x_5, 0, x_35); +return x_5; +} +} +else +{ +uint8_t x_36; lean_object* x_37; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_36 = 0; +x_37 = lean_box(x_36); +lean_ctor_set(x_5, 0, x_37); +return x_5; +} +} +else +{ +uint8_t x_38; lean_object* x_39; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_38 = 0; +x_39 = lean_box(x_38); +lean_ctor_set(x_5, 0, x_39); +return x_5; +} +} +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_5, 1); +lean_inc(x_40); +lean_dec(x_5); +x_41 = lean_ctor_get(x_6, 0); +lean_inc(x_41); +lean_dec(x_6); +x_42 = lean_ctor_get(x_41, 3); +lean_inc(x_42); +x_43 = lean_unsigned_to_nat(0u); +x_44 = l_List_lengthTRAux___rarg(x_42, x_43); +lean_dec(x_42); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_dec_eq(x_44, x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_41); +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 +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +x_51 = lean_nat_dec_eq(x_50, x_43); +lean_dec(x_50); +if (x_51 == 0) +{ +uint8_t x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_41); +lean_dec(x_2); +x_52 = 0; +x_53 = lean_box(x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_40); +return x_54; +} +else +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_41, 1); +lean_inc(x_55); +x_56 = lean_nat_dec_eq(x_55, x_43); +lean_dec(x_55); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_41); +lean_dec(x_2); +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_40); +return x_59; +} +else +{ +lean_object* x_60; uint8_t x_61; +x_60 = lean_ctor_get(x_41, 4); +lean_inc(x_60); +x_61 = l_List_isEmpty___rarg(x_60); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = lean_ctor_get_uint8(x_41, sizeof(void*)*5); +if (x_62 == 0) +{ +uint8_t x_63; +x_63 = lean_ctor_get_uint8(x_41, sizeof(void*)*5 + 3); +if (x_63 == 0) +{ +uint8_t x_64; +x_64 = lean_ctor_get_uint8(x_41, sizeof(void*)*5 + 1); +lean_dec(x_41); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(x_60, x_2, x_3, x_40); +return x_65; +} +else +{ +uint8_t x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_60); +lean_dec(x_2); +x_66 = 0; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_40); +return x_68; +} +} +else +{ +uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_69 = 0; +x_70 = lean_box(x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_40); +return x_71; +} +} +else +{ +uint8_t x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_72 = 0; +x_73 = lean_box(x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_40); +return x_74; +} +} +else +{ +uint8_t x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_75 = 0; +x_76 = lean_box(x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_40); +return x_77; +} +} +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_6); +lean_dec(x_2); +x_78 = !lean_is_exclusive(x_5); +if (x_78 == 0) +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_5, 0); +lean_dec(x_79); +x_80 = 0; +x_81 = lean_box(x_80); +lean_ctor_set(x_5, 0, x_81); +return x_5; +} +else +{ +lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_5, 1); +lean_inc(x_82); +lean_dec(x_5); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_2); +x_86 = !lean_is_exclusive(x_5); +if (x_86 == 0) +{ +return x_5; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_5, 0); +x_88 = lean_ctor_get(x_5, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_5); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +} +lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3(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; @@ -5268,7 +6663,7 @@ return x_30; } } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -5277,7 +6672,7 @@ if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_8 = lean_array_uget(x_1, x_2); -x_9 = l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(x_8, x_4, x_5, x_6); +x_9 = l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3(x_8, x_4, x_5, x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_unbox(x_10); @@ -5338,334 +6733,631 @@ return x_26; lean_object* l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler(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; lean_object* x_7; lean_object* x_74; uint8_t x_75; -x_5 = lean_array_get_size(x_1); -x_74 = lean_unsigned_to_nat(0u); -x_75 = lean_nat_dec_lt(x_74, x_5); -if (x_75 == 0) -{ -uint8_t x_76; -x_76 = 1; -x_6 = x_76; -x_7 = x_4; -goto block_73; -} -else -{ -uint8_t x_77; -x_77 = lean_nat_dec_le(x_5, x_5); -if (x_77 == 0) -{ -uint8_t x_78; -x_78 = 1; -x_6 = x_78; -x_7 = x_4; -goto block_73; -} -else -{ -size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_79 = 0; -x_80 = lean_usize_of_nat(x_5); -x_81 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(x_1, x_79, x_80, x_2, x_3, x_4); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_unbox(x_82); -lean_dec(x_82); -if (x_83 == 0) -{ -lean_object* x_84; uint8_t x_85; -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -lean_dec(x_81); -x_85 = 1; -x_6 = x_85; -x_7 = x_84; -goto block_73; -} -else -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_81, 1); -lean_inc(x_86); -lean_dec(x_81); -x_87 = 0; -x_6 = x_87; -x_7 = x_86; -goto block_73; -} -} -} -block_73: -{ -if (x_6 == 0) -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_8 = 0; -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_nat_dec_lt(x_11, x_5); -lean_dec(x_5); -if (x_12 == 0) -{ -uint8_t x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_7); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_box(0); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___boxed), 8, 1); -lean_closure_set(x_17, 0, x_1); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_instInhabitedName; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_get(x_5, x_1, x_6); lean_inc(x_2); -x_18 = l_Lean_Elab_Command_liftTermElabM___rarg(x_16, x_17, x_2, x_3, x_7); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_7); +x_8 = l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(x_7, x_2, x_3, x_4); +if (lean_obj_tag(x_8) == 0) { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_94; uint8_t x_95; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_11 = x_8; +} else { + lean_dec_ref(x_8); + x_11 = lean_box(0); +} +x_12 = lean_array_get_size(x_1); +x_94 = lean_unsigned_to_nat(1u); +x_95 = lean_nat_dec_eq(x_12, x_94); +if (x_95 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_array_get_size(x_20); -x_23 = lean_nat_dec_lt(x_11, x_22); -if (x_23 == 0) -{ -uint8_t x_24; lean_object* x_25; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_3); -lean_dec(x_2); -x_24 = 1; -x_25 = lean_box(x_24); -lean_ctor_set(x_18, 0, x_25); -return x_18; +lean_object* x_96; +lean_dec(x_9); +lean_dec(x_7); +x_96 = lean_box(0); +x_13 = x_96; +goto block_93; } else { +uint8_t x_97; +x_97 = lean_unbox(x_9); +lean_dec(x_9); +if (x_97 == 0) +{ +lean_object* x_98; +lean_dec(x_7); +x_98 = lean_box(0); +x_13 = x_98; +goto block_93; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_99 = lean_box(0); +x_100 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumCmd), 8, 1); +lean_closure_set(x_100, 0, x_7); +lean_inc(x_2); +x_101 = l_Lean_Elab_Command_liftTermElabM___rarg(x_99, x_100, x_2, x_3, x_10); +if (lean_obj_tag(x_101) == 0) +{ +uint8_t x_102; +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_103 = lean_ctor_get(x_101, 0); +x_104 = lean_ctor_get(x_101, 1); +x_105 = lean_array_get_size(x_103); +x_106 = lean_nat_dec_lt(x_6, x_105); +if (x_106 == 0) +{ +uint8_t x_107; lean_object* x_108; +lean_dec(x_105); +lean_dec(x_103); +lean_dec(x_3); +lean_dec(x_2); +x_107 = 1; +x_108 = lean_box(x_107); +lean_ctor_set(x_101, 0, x_108); +return x_101; +} +else +{ +uint8_t x_109; +x_109 = lean_nat_dec_le(x_105, x_105); +if (x_109 == 0) +{ +uint8_t x_110; lean_object* x_111; +lean_dec(x_105); +lean_dec(x_103); +lean_dec(x_3); +lean_dec(x_2); +x_110 = 1; +x_111 = lean_box(x_110); +lean_ctor_set(x_101, 0, x_111); +return x_101; +} +else +{ +size_t x_112; size_t x_113; lean_object* x_114; lean_object* x_115; +lean_free_object(x_101); +x_112 = 0; +x_113 = lean_usize_of_nat(x_105); +lean_dec(x_105); +x_114 = lean_box(0); +x_115 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_103, x_112, x_113, x_114, x_2, x_3, x_104); +lean_dec(x_103); +if (lean_obj_tag(x_115) == 0) +{ +uint8_t x_116; +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) +{ +lean_object* x_117; uint8_t x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_115, 0); +lean_dec(x_117); +x_118 = 1; +x_119 = lean_box(x_118); +lean_ctor_set(x_115, 0, x_119); +return x_115; +} +else +{ +lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_115, 1); +lean_inc(x_120); +lean_dec(x_115); +x_121 = 1; +x_122 = lean_box(x_121); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_120); +return x_123; +} +} +else +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_115); +if (x_124 == 0) +{ +return x_115; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_115, 0); +x_126 = lean_ctor_get(x_115, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_115); +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; +} +} +} +} +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_128 = lean_ctor_get(x_101, 0); +x_129 = lean_ctor_get(x_101, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_101); +x_130 = lean_array_get_size(x_128); +x_131 = lean_nat_dec_lt(x_6, x_130); +if (x_131 == 0) +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_130); +lean_dec(x_128); +lean_dec(x_3); +lean_dec(x_2); +x_132 = 1; +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_129); +return x_134; +} +else +{ +uint8_t x_135; +x_135 = lean_nat_dec_le(x_130, x_130); +if (x_135 == 0) +{ +uint8_t x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_130); +lean_dec(x_128); +lean_dec(x_3); +lean_dec(x_2); +x_136 = 1; +x_137 = lean_box(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_129); +return x_138; +} +else +{ +size_t x_139; size_t x_140; lean_object* x_141; lean_object* x_142; +x_139 = 0; +x_140 = lean_usize_of_nat(x_130); +lean_dec(x_130); +x_141 = lean_box(0); +x_142 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_128, x_139, x_140, x_141, x_2, x_3, x_129); +lean_dec(x_128); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_144 = x_142; +} else { + lean_dec_ref(x_142); + x_144 = lean_box(0); +} +x_145 = 1; +x_146 = lean_box(x_145); +if (lean_is_scalar(x_144)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_144; +} +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_143); +return x_147; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_142, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_142, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_150 = x_142; +} else { + lean_dec_ref(x_142); + 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; +lean_dec(x_3); +lean_dec(x_2); +x_152 = !lean_is_exclusive(x_101); +if (x_152 == 0) +{ +return x_101; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_101, 0); +x_154 = lean_ctor_get(x_101, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_101); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +} +block_93: +{ +uint8_t x_14; uint8_t x_15; lean_object* x_16; +lean_dec(x_13); +x_14 = lean_nat_dec_lt(x_6, x_12); +if (x_14 == 0) +{ +uint8_t x_81; +lean_dec(x_12); +x_81 = 1; +x_15 = x_81; +x_16 = x_10; +goto block_80; +} +else +{ +uint8_t x_82; +x_82 = lean_nat_dec_le(x_12, x_12); +if (x_82 == 0) +{ +uint8_t x_83; +lean_dec(x_12); +x_83 = 1; +x_15 = x_83; +x_16 = x_10; +goto block_80; +} +else +{ +size_t x_84; size_t x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_84 = 0; +x_85 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_86 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4(x_1, x_84, x_85, x_2, x_3, x_10); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +if (x_88 == 0) +{ +lean_object* x_89; uint8_t x_90; +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +lean_dec(x_86); +x_90 = 1; +x_15 = x_90; +x_16 = x_89; +goto block_80; +} +else +{ +lean_object* x_91; uint8_t x_92; +x_91 = lean_ctor_get(x_86, 1); +lean_inc(x_91); +lean_dec(x_86); +x_92 = 0; +x_15 = x_92; +x_16 = x_91; +goto block_80; +} +} +} +block_80: +{ +if (x_15 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 0; +x_18 = lean_box(x_17); +if (lean_is_scalar(x_11)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_11; +} +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +else +{ +if (x_14 == 0) +{ +uint8_t x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +x_21 = lean_box(x_20); +if (lean_is_scalar(x_11)) { + x_22 = lean_alloc_ctor(0, 2, 0); +} else { + x_22 = x_11; +} +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_16); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_11); +x_23 = lean_box(0); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___boxed), 8, 1); +lean_closure_set(x_24, 0, x_1); +lean_inc(x_2); +x_25 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_24, x_2, x_3, x_16); +if (lean_obj_tag(x_25) == 0) +{ uint8_t x_26; -x_26 = lean_nat_dec_le(x_22, x_22); +x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { -uint8_t x_27; lean_object* x_28; -lean_dec(x_22); -lean_dec(x_20); +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_29 = lean_array_get_size(x_27); +x_30 = lean_nat_dec_lt(x_6, x_29); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; +lean_dec(x_29); +lean_dec(x_27); lean_dec(x_3); lean_dec(x_2); -x_27 = 1; -x_28 = lean_box(x_27); -lean_ctor_set(x_18, 0, x_28); -return x_18; +x_31 = 1; +x_32 = lean_box(x_31); +lean_ctor_set(x_25, 0, x_32); +return x_25; } else { -size_t x_29; size_t x_30; lean_object* x_31; lean_object* x_32; -lean_free_object(x_18); -x_29 = 0; -x_30 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_31 = lean_box(0); -x_32 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_20, x_29, x_30, x_31, x_2, x_3, x_21); -lean_dec(x_20); -if (lean_obj_tag(x_32) == 0) -{ uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); +x_33 = lean_nat_dec_le(x_29, x_29); if (x_33 == 0) { -lean_object* x_34; uint8_t x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -x_35 = 1; -x_36 = lean_box(x_35); -lean_ctor_set(x_32, 0, x_36); -return x_32; +uint8_t x_34; lean_object* x_35; +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_2); +x_34 = 1; +x_35 = lean_box(x_34); +lean_ctor_set(x_25, 0, x_35); +return x_25; } else { -lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_dec(x_32); -x_38 = 1; -x_39 = lean_box(x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -return x_40; +size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; +lean_free_object(x_25); +x_36 = 0; +x_37 = lean_usize_of_nat(x_29); +lean_dec(x_29); +x_38 = lean_box(0); +x_39 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_27, x_36, x_37, x_38, x_2, x_3, x_28); +lean_dec(x_27); +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; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +x_42 = 1; +x_43 = lean_box(x_42); +lean_ctor_set(x_39, 0, x_43); +return x_39; +} +else +{ +lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +lean_dec(x_39); +x_45 = 1; +x_46 = lean_box(x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +return x_47; } } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_32); -if (x_41 == 0) -{ -return x_32; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_32, 0); -x_43 = lean_ctor_get(x_32, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_32); -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; uint8_t x_48; -x_45 = lean_ctor_get(x_18, 0); -x_46 = lean_ctor_get(x_18, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_18); -x_47 = lean_array_get_size(x_45); -x_48 = lean_nat_dec_lt(x_11, x_47); +uint8_t x_48; +x_48 = !lean_is_exclusive(x_39); if (x_48 == 0) { -uint8_t x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_47); -lean_dec(x_45); -lean_dec(x_3); -lean_dec(x_2); -x_49 = 1; -x_50 = lean_box(x_49); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_46); +return x_39; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_39, 0); +x_50 = lean_ctor_get(x_39, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_39); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); return x_51; } +} +} +} +} else { -uint8_t x_52; -x_52 = lean_nat_dec_le(x_47, x_47); -if (x_52 == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_25, 0); +x_53 = lean_ctor_get(x_25, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_25); +x_54 = lean_array_get_size(x_52); +x_55 = lean_nat_dec_lt(x_6, x_54); +if (x_55 == 0) { -uint8_t x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_47); -lean_dec(x_45); +uint8_t x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_52); lean_dec(x_3); lean_dec(x_2); -x_53 = 1; -x_54 = lean_box(x_53); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_46); -return x_55; +x_56 = 1; +x_57 = lean_box(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_53); +return x_58; } else { -size_t x_56; size_t x_57; lean_object* x_58; lean_object* x_59; -x_56 = 0; -x_57 = lean_usize_of_nat(x_47); -lean_dec(x_47); -x_58 = lean_box(0); -x_59 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_45, x_56, x_57, x_58, x_2, x_3, x_46); -lean_dec(x_45); -if (lean_obj_tag(x_59) == 0) +uint8_t x_59; +x_59 = lean_nat_dec_le(x_54, x_54); +if (x_59 == 0) { -lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_61 = x_59; -} else { - lean_dec_ref(x_59); - x_61 = lean_box(0); -} -x_62 = 1; -x_63 = lean_box(x_62); -if (lean_is_scalar(x_61)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_61; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_60); -return x_64; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_59, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_59, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_67 = x_59; -} else { - lean_dec_ref(x_59); - x_67 = lean_box(0); -} -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); -} else { - x_68 = x_67; -} -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; -} -} -} -} -} -else -{ -uint8_t x_69; +uint8_t x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_54); +lean_dec(x_52); lean_dec(x_3); lean_dec(x_2); -x_69 = !lean_is_exclusive(x_18); -if (x_69 == 0) -{ -return x_18; +x_60 = 1; +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_53); +return x_62; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_18, 0); -x_71 = lean_ctor_get(x_18, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_18); -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; +size_t x_63; size_t x_64; lean_object* x_65; lean_object* x_66; +x_63 = 0; +x_64 = lean_usize_of_nat(x_54); +lean_dec(x_54); +x_65 = lean_box(0); +x_66 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_52, x_63, x_64, x_65, x_2, x_3, x_53); +lean_dec(x_52); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_68 = x_66; +} else { + lean_dec_ref(x_66); + x_68 = lean_box(0); +} +x_69 = 1; +x_70 = lean_box(x_69); +if (lean_is_scalar(x_68)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_68; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_67); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_66, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_74 = x_66; +} else { + lean_dec_ref(x_66); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_3); +lean_dec(x_2); +x_76 = !lean_is_exclusive(x_25); +if (x_76 == 0) +{ +return x_25; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_25, 0); +x_78 = lean_ctor_get(x_25, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_25); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } @@ -5673,17 +7365,63 @@ return x_72; } } } -lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +else +{ +uint8_t x_156; +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_156 = !lean_is_exclusive(x_8); +if (x_156 == 0) +{ +return x_8; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_8, 0); +x_158 = lean_ctor_get(x_8, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_8); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +} +} +lean_object* l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__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_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_List_allM___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___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_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3___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_isInductive___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -5691,14 +7429,14 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__2(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler___spec__4(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1() { +static lean_object* _init_l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1() { _start: { lean_object* x_1; @@ -5706,12 +7444,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_BEq_mkBEqInstanceHandler), return x_1; } } -lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179_(lean_object* x_1) { +lean_object* l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_BEq_mkBEqHeader___rarg___closed__2; -x_3 = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1; +x_3 = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1; x_4 = l_Lean_Elab_registerBuiltinDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -6010,9 +7748,55 @@ l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds__ lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__9); l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__10 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__10(); lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanceCmds___closed__10); -l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1 = _init_l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1(); -lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179____closed__1); -res = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2179_(lean_io_mk_world()); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__1); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__2); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__3); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__4); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__5); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__6); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__7); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__8); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__9); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__11); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__12); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__13); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__14); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__15); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__17); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__18); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__19); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__20); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__21); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__22); +l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23 = _init_l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23(); +lean_mark_persistent(l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__23); +l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1 = _init_l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615____closed__1); +res = l_Lean_Elab_Deriving_BEq_initFn____x40_Lean_Elab_Deriving_BEq___hyg_2615_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Basic.c b/stage0/stdlib/Lean/Elab/Deriving/Basic.c index 9c7b96e1fb..df462938de 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Basic.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Basic.c @@ -126,6 +126,7 @@ lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_ela static lean_object* l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs___lambda__2___closed__2; static lean_object* l_Lean_Elab_elabDeriving___closed__6; lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,7 +209,6 @@ lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__17(lea lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__19___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_elabDeriving___closed__1; -lean_object* l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -559,7 +559,7 @@ lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); x_11 = lean_array_to_list(lean_box(0), x_2); x_12 = lean_box(0); -x_13 = l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(x_11, x_12); +x_13 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_11, x_12); x_14 = l_Lean_MessageData_ofList(x_13); lean_dec(x_13); x_15 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c index ee0f6bfb2d..eb97c5db18 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c @@ -16,73 +16,120 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__2; uint8_t l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__5; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__79; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__13; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__3; lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__2; +lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__81; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__3; +lean_object* lean_nat_div(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__2; +lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__1; lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___closed__2; lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__2; +lean_object* l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__6; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__3; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__68; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__9; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2; lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__1; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___boxed(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__4; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__6; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18; lean_object* l_Lean_Meta_compatibleCtors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__23; lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__6; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__75; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__58; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___closed__1; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__78; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__5; lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__26; lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7; lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22; lean_object* l_Lean_Core_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__19; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts_match__1(lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__61; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33; lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___boxed(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__12; +lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__22; lean_object* lean_string_utf8_byte_size(lean_object*); -static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1; -lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__21; lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42; +extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__11; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__39; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20; +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__6; lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__83; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__51; @@ -91,10 +138,11 @@ lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_obje static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1___closed__2; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__19; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1___closed__1; -static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32; +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__65; -lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__69; @@ -102,39 +150,49 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAl static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___closed__1; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__35; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__70; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1___closed__3; lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__44; lean_object* l_List_mapTRAux___at_Lean_Elab_Deriving_DecEq_mkDecEqCmds___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__8; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__10; -static lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1; +lean_object* l_Lean_mkRawNatLit(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__67; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__40; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__7; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__1; +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___closed__2; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__9; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__45; +lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__14; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__17; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__8; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__57; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__36; lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__43; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__9; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10; lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__5; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__8; +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__13; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,31 +203,43 @@ static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatc static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__5; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__4; +lean_object* l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__18; -lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__15; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__20; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__73; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2; extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12; +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__7; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts_match__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__13; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__72; +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__23; +lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1; +lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__1; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__24; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__6; +lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__80; lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__10; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__10; +lean_object* l_Lean_addAndCompile___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__48; @@ -179,23 +249,36 @@ lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlt static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__21; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__38; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__10; -lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__50; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__4; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts_match__2(lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__16; lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26; +static lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__46; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__52; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__29; +lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs_match__1(lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__62; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__54; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__12; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__82; @@ -204,30 +287,47 @@ lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__86; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__25; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__31; -lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480_(lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673_(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__59; +lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39; +lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__5; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__3; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__28; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2; +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__84; +lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__14; lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEq(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__33; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__5; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60; lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__1; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__37; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__17; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__42; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__53; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__71; @@ -237,46 +337,78 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__76; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__30; +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__18; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36; +lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts_match__2___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67; +lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40; +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1; lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__15; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__2; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8; extern lean_object* l_Lean_instInhabitedInductiveVal; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__85; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__56; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__12; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41; +lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__63; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___closed__3; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21; lean_object* l_Lean_Core_betaReduce___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__9; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__11; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__16; +extern lean_object* l_Lean_levelOne; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__8; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__7; +lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__55; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__74; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__2; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__60; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__4; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__6; lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__66; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__77; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__20; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__47; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__1; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__11; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__49; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__1; +extern lean_object* l_Lean_casesOnSuffix; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__2; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__4; +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__64; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___closed__5; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__34; @@ -285,6 +417,7 @@ lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34; static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__1() { _start: { @@ -6277,7 +6410,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__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; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -6331,7 +6464,7 @@ return x_20; } } } -static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1() { +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1() { _start: { lean_object* x_1; @@ -6339,16 +6472,16 @@ x_1 = lean_mk_string("' is not a inductive type"); return x_1; } } -static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2() { +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1; +x_1 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -6407,11 +6540,11 @@ x_17 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___sp x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2; +x_19 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(x_20, x_2, x_3, x_13); +x_21 = l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__2(x_20, x_2, x_3, x_13); return x_21; } } @@ -6441,6 +6574,2934 @@ return x_25; } } } +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_2); +x_5 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*5 + 3); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_box(0); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkDecEqCmds), 8, 1); +lean_closure_set(x_10, 0, x_6); +lean_inc(x_2); +x_11 = l_Lean_Elab_Command_liftTermElabM___rarg(x_9, x_10, x_2, x_3, x_8); +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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_array_get_size(x_13); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +x_18 = 1; +x_19 = lean_box(x_18); +lean_ctor_set(x_11, 0, x_19); +return x_11; +} +else +{ +uint8_t x_20; +x_20 = lean_nat_dec_le(x_15, x_15); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +x_21 = 1; +x_22 = lean_box(x_21); +lean_ctor_set(x_11, 0, x_22); +return x_11; +} +else +{ +size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; +lean_free_object(x_11); +x_23 = 0; +x_24 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_25 = lean_box(0); +x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_13, x_23, x_24, x_25, x_2, x_3, x_14); +lean_dec(x_13); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +x_29 = 1; +x_30 = lean_box(x_29); +lean_ctor_set(x_26, 0, x_30); +return x_26; +} +else +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_dec(x_26); +x_32 = 1; +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_31); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +return x_26; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_26, 0); +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_26); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_39 = lean_ctor_get(x_11, 0); +x_40 = lean_ctor_get(x_11, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_11); +x_41 = lean_array_get_size(x_39); +x_42 = lean_unsigned_to_nat(0u); +x_43 = lean_nat_dec_lt(x_42, x_41); +if (x_43 == 0) +{ +uint8_t x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +lean_dec(x_39); +lean_dec(x_3); +lean_dec(x_2); +x_44 = 1; +x_45 = lean_box(x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_40); +return x_46; +} +else +{ +uint8_t x_47; +x_47 = lean_nat_dec_le(x_41, x_41); +if (x_47 == 0) +{ +uint8_t x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_41); +lean_dec(x_39); +lean_dec(x_3); +lean_dec(x_2); +x_48 = 1; +x_49 = lean_box(x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_40); +return x_50; +} +else +{ +size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; +x_51 = 0; +x_52 = lean_usize_of_nat(x_41); +lean_dec(x_41); +x_53 = lean_box(0); +x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_39, x_51, x_52, x_53, x_2, x_3, x_40); +lean_dec(x_39); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = 1; +x_58 = lean_box(x_57); +if (lean_is_scalar(x_56)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_56; +} +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_55); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_54, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_54, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_62 = x_54; +} else { + lean_dec_ref(x_54); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_3); +lean_dec(x_2); +x_64 = !lean_is_exclusive(x_11); +if (x_64 == 0) +{ +return x_11; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_11, 0); +x_66 = lean_ctor_get(x_11, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_11); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_68 = !lean_is_exclusive(x_5); +if (x_68 == 0) +{ +lean_object* x_69; uint8_t x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_5, 0); +lean_dec(x_69); +x_70 = 0; +x_71 = lean_box(x_70); +lean_ctor_set(x_5, 0, x_71); +return x_5; +} +else +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_5, 1); +lean_inc(x_72); +lean_dec(x_5); +x_73 = 0; +x_74 = lean_box(x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_3); +lean_dec(x_2); +x_76 = !lean_is_exclusive(x_5); +if (x_76 == 0) +{ +return x_5; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_5, 0); +x_78 = lean_ctor_get(x_5, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_5); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__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_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___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_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Nat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ble"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("beq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(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; uint8_t x_9; +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_add(x_5, x_7); +x_9 = lean_nat_dec_eq(x_8, x_6); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_add(x_5, x_10); +x_12 = lean_nat_dec_eq(x_11, x_6); +lean_dec(x_11); +if (x_12 == 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; lean_object* x_19; lean_object* x_20; +lean_dec(x_8); +x_13 = lean_nat_add(x_5, x_6); +x_14 = lean_nat_div(x_13, x_10); +lean_dec(x_13); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_15 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(x_1, x_2, x_3, x_4, x_5, x_14); +lean_inc(x_14); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_16 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(x_1, x_2, x_3, x_4, x_14, x_6); +x_17 = l_Lean_mkRawNatLit(x_14); +x_18 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5; +x_19 = l_Lean_mkAppB(x_18, x_17, x_3); +x_20 = l_Lean_mkApp4(x_4, x_1, x_19, x_16, x_15); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_21 = lean_box(0); +lean_inc(x_5); +x_22 = l_Lean_mkRawNatLit(x_5); +x_23 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8; +x_24 = l_Lean_mkAppB(x_23, x_3, x_22); +x_25 = l_Lean_instInhabitedName; +x_26 = lean_array_get(x_25, x_2, x_5); +lean_dec(x_5); +x_27 = l_Lean_mkConst(x_26, x_21); +x_28 = lean_array_get(x_25, x_2, x_8); +lean_dec(x_8); +x_29 = l_Lean_mkConst(x_28, x_21); +x_30 = l_Lean_mkApp4(x_4, x_1, x_24, x_27, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_31 = l_Lean_instInhabitedName; +x_32 = lean_array_get(x_31, x_2, x_5); +lean_dec(x_5); +x_33 = lean_box(0); +x_34 = l_Lean_mkConst(x_32, x_33); +return x_34; +} +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___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_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_2); +return x_7; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("cond"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ofNat"); +return x_1; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +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; uint8_t x_21; uint8_t x_22; lean_object* x_23; +x_12 = l_Lean_levelZero; +lean_inc(x_1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2; +x_15 = l_Lean_mkConst(x_14, x_13); +x_16 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__35; +lean_inc(x_6); +x_17 = lean_array_push(x_16, x_6); +x_18 = lean_array_get_size(x_2); +x_19 = lean_unsigned_to_nat(0u); +lean_inc(x_3); +x_20 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree(x_3, x_2, x_6, x_15, x_19, x_18); +lean_dec(x_18); +x_21 = 0; +x_22 = 1; +lean_inc(x_7); +x_23 = l_Lean_Meta_mkLambdaFVars(x_17, x_20, x_21, x_22, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_mkArrow(x_4, x_3, x_7, x_8, x_9, x_10, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3; +x_30 = lean_name_mk_string(x_5, x_29); +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_1); +lean_ctor_set(x_31, 2, x_27); +x_32 = lean_box(1); +x_33 = 1; +x_34 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_24); +lean_ctor_set(x_34, 2, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*3, x_33); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = l_Lean_addAndCompile___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(x_35, x_7, x_8, x_9, x_10, x_28); +return x_36; +} +else +{ +uint8_t x_37; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_23); +if (x_37 == 0) +{ +return x_23; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_23); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat(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_1); +x_7 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +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; 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; lean_object* x_20; +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_box(0); +lean_inc(x_1); +x_11 = l_Lean_mkConst(x_1, x_10); +x_12 = lean_ctor_get(x_8, 4); +lean_inc(x_12); +lean_dec(x_8); +x_13 = l_List_redLength___rarg(x_12); +x_14 = lean_mk_empty_array_with_capacity(x_13); +lean_dec(x_13); +x_15 = l_List_toArrayAux___rarg(x_12, x_14); +x_16 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1; +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___boxed), 11, 5); +lean_closure_set(x_17, 0, x_10); +lean_closure_set(x_17, 1, x_15); +lean_closure_set(x_17, 2, x_11); +lean_closure_set(x_17, 3, x_16); +lean_closure_set(x_17, 4, x_1); +x_18 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__62; +x_19 = 0; +x_20 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm___spec__1___rarg(x_18, x_19, x_16, x_17, x_2, x_3, x_4, x_5, x_9); +return x_20; +} +else +{ +uint8_t x_21; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_7); +if (x_21 == 0) +{ +return x_7; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_7, 0); +x_23 = lean_ctor_get(x_7, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_7); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +return x_12; +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_10; +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_3, 1); +lean_inc(x_12); +lean_dec(x_3); +lean_inc(x_1); +x_13 = l_Lean_mkConst(x_11, x_1); +lean_inc(x_2); +x_14 = l_Lean_mkApp(x_2, x_13); +x_15 = l_Lean_mkApp(x_4, x_14); +x_3 = x_12; +x_4 = x_15; +goto _start; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ofNat_toCtorIdx"); +return x_1; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; +lean_inc(x_8); +x_14 = l_Lean_mkApp(x_1, x_8); +x_15 = l_Lean_mkApp(x_2, x_14); +lean_inc(x_8); +x_16 = l_Lean_mkAppB(x_3, x_15, x_8); +x_17 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__35; +lean_inc(x_8); +x_18 = lean_array_push(x_17, x_8); +x_19 = 0; +x_20 = 1; +lean_inc(x_9); +lean_inc(x_16); +lean_inc(x_18); +x_21 = l_Lean_Meta_mkLambdaFVars(x_18, x_16, x_19, x_20, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_casesOnSuffix; +lean_inc(x_4); +x_25 = lean_name_mk_string(x_4, x_24); +x_26 = l_Lean_levelZero; +lean_inc(x_5); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_5); +x_28 = l_Lean_mkConst(x_25, x_27); +x_29 = l_Lean_mkAppB(x_28, x_22, x_8); +lean_inc(x_5); +x_30 = l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1(x_5, x_6, x_7, x_29, x_9, x_10, x_11, x_12, x_23); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_9); +lean_inc(x_18); +x_33 = l_Lean_Meta_mkLambdaFVars(x_18, x_31, x_19, x_20, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +lean_inc(x_9); +x_36 = l_Lean_Meta_mkForallFVars(x_18, x_16, x_19, x_20, x_9, x_10, x_11, x_12, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1; +x_40 = lean_name_mk_string(x_4, x_39); +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_5); +lean_ctor_set(x_41, 2, x_37); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_34); +x_43 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l_Lean_addAndCompile___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__2(x_43, x_9, x_10, x_11, x_12, x_38); +return x_44; +} +else +{ +uint8_t x_45; +lean_dec(x_34); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_45 = !lean_is_exclusive(x_36); +if (x_45 == 0) +{ +return x_36; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_36, 0); +x_47 = lean_ctor_get(x_36, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_36); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_33); +if (x_49 == 0) +{ +return x_33; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_33, 0); +x_51 = lean_ctor_get(x_33, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_33); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_21); +if (x_53 == 0) +{ +return x_21; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_21, 0); +x_55 = lean_ctor_get(x_21, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_21); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Eq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_levelOne; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4; +x_3 = l_Lean_mkConst(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("refl"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4; +x_3 = l_Lean_mkConst(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("x"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm(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_1); +x_7 = l_Lean_getConstInfoInduct___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoForKernelRec___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +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; 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; uint8_t x_25; lean_object* x_26; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1; +lean_inc(x_1); +x_11 = lean_name_mk_string(x_1, x_10); +x_12 = lean_box(0); +x_13 = l_Lean_mkConst(x_11, x_12); +x_14 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3; +lean_inc(x_1); +x_15 = lean_name_mk_string(x_1, x_14); +x_16 = l_Lean_mkConst(x_15, x_12); +lean_inc(x_1); +x_17 = l_Lean_mkConst(x_1, x_12); +x_18 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5; +lean_inc(x_17); +x_19 = l_Lean_mkApp(x_18, x_17); +x_20 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8; +lean_inc(x_17); +x_21 = l_Lean_mkApp(x_20, x_17); +x_22 = lean_ctor_get(x_8, 4); +lean_inc(x_22); +lean_dec(x_8); +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1), 13, 7); +lean_closure_set(x_23, 0, x_13); +lean_closure_set(x_23, 1, x_16); +lean_closure_set(x_23, 2, x_19); +lean_closure_set(x_23, 3, x_1); +lean_closure_set(x_23, 4, x_12); +lean_closure_set(x_23, 5, x_21); +lean_closure_set(x_23, 6, x_22); +x_24 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10; +x_25 = 0; +x_26 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm___spec__1___rarg(x_24, x_25, x_17, x_23, x_2, x_3, x_4, x_5, x_9); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_7); +if (x_27 == 0) +{ +return x_7; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_7, 0); +x_29 = lean_ctor_get(x_7, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_7); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_10; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat(x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___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, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm(x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__14; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__10; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("instance"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__6; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("attrKind"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__19; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__35; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("declSig"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__6; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__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; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__36; +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("fun"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__19; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("basicFun"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__19; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("y"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("x.toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("y.toCtorIdx"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28; +x_2 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__5; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tacticHave__:=_"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("have"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("aux"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("congrArg"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rwSeq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rw"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rwRuleSeq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("["); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rwRule"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("]"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("location"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("at"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("locationHyp"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("contradiction"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__24; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch___rarg___closed__6; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__36; +x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum(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 = lean_box(0); +lean_inc(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__1___boxed), 8, 1); +lean_closure_set(x_6, 0, x_1); +lean_inc(x_2); +x_7 = l_Lean_Elab_Command_liftTermElabM___rarg(x_5, x_6, x_2, x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +lean_inc(x_1); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__2___boxed), 8, 1); +lean_closure_set(x_9, 0, x_1); +lean_inc(x_2); +x_10 = l_Lean_Elab_Command_liftTermElabM___rarg(x_5, x_9, x_2, x_3, x_8); +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; lean_object* x_18; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3; +lean_inc(x_1); +x_13 = lean_name_mk_string(x_1, x_12); +x_14 = lean_mk_syntax_ident(x_13); +x_15 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1; +lean_inc(x_1); +x_16 = lean_name_mk_string(x_1, x_15); +x_17 = lean_mk_syntax_ident(x_16); +lean_inc(x_2); +lean_inc(x_1); +x_18 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1(x_1, x_2, x_3, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 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; 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; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; 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; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 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_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; 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_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_2, x_3, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6; +lean_inc(x_21); +x_30 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__8; +lean_inc(x_21); +x_32 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__2; +lean_inc(x_24); +lean_inc(x_27); +x_34 = l_Lean_addMacroScope(x_27, x_33, x_24); +x_35 = lean_box(0); +x_36 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15; +x_37 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17; +lean_inc(x_21); +x_38 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_38, 0, x_21); +lean_ctor_set(x_38, 1, x_36); +lean_ctor_set(x_38, 2, x_34); +lean_ctor_set(x_38, 3, x_37); +x_39 = lean_mk_syntax_ident(x_1); +x_40 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__35; +x_41 = lean_array_push(x_40, x_39); +x_42 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__30; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__36; +x_45 = lean_array_push(x_44, x_38); +x_46 = lean_array_push(x_45, x_43); +x_47 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__44; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +lean_inc(x_32); +x_49 = lean_array_push(x_44, x_32); +x_50 = lean_array_push(x_49, x_48); +x_51 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__22; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18; +x_54 = lean_array_push(x_53, x_52); +x_55 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__85; +lean_inc(x_21); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_21); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19; +lean_inc(x_21); +x_60 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_60, 0, x_21); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10; +lean_inc(x_24); +lean_inc(x_27); +x_62 = l_Lean_addMacroScope(x_27, x_61, x_24); +x_63 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24; +lean_inc(x_21); +x_64 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_64, 0, x_21); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 2, x_62); +lean_ctor_set(x_64, 3, x_35); +x_65 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28; +lean_inc(x_24); +lean_inc(x_27); +x_66 = l_Lean_addMacroScope(x_27, x_65, x_24); +x_67 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27; +lean_inc(x_21); +x_68 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_68, 0, x_21); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_66); +lean_ctor_set(x_68, 3, x_35); +x_69 = lean_array_push(x_44, x_64); +x_70 = lean_array_push(x_69, x_68); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_42); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__11; +lean_inc(x_21); +x_73 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_73, 0, x_21); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__3; +lean_inc(x_21); +x_75 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_75, 0, x_21); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__7; +lean_inc(x_24); +lean_inc(x_27); +x_77 = l_Lean_addMacroScope(x_27, x_76, x_24); +x_78 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__6; +lean_inc(x_21); +x_79 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_79, 0, x_21); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_79, 2, x_77); +lean_ctor_set(x_79, 3, x_35); +x_80 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32; +lean_inc(x_24); +lean_inc(x_27); +x_81 = l_Lean_addMacroScope(x_27, x_80, x_24); +x_82 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31; +lean_inc(x_21); +x_83 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_83, 0, x_21); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_83, 2, x_81); +lean_ctor_set(x_83, 3, x_35); +x_84 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__11; +lean_inc(x_21); +x_85 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_85, 0, x_21); +lean_ctor_set(x_85, 1, x_84); +x_86 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36; +lean_inc(x_24); +lean_inc(x_27); +x_87 = l_Lean_addMacroScope(x_27, x_86, x_24); +x_88 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35; +lean_inc(x_21); +x_89 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_89, 0, x_21); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_87); +lean_ctor_set(x_89, 3, x_35); +x_90 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__12; +x_91 = lean_array_push(x_90, x_83); +x_92 = lean_array_push(x_91, x_85); +x_93 = lean_array_push(x_92, x_89); +x_94 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__10; +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +x_96 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__13; +lean_inc(x_21); +x_97 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_97, 0, x_21); +lean_ctor_set(x_97, 1, x_96); +x_98 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__4; +lean_inc(x_24); +lean_inc(x_27); +x_99 = l_Lean_addMacroScope(x_27, x_98, x_24); +x_100 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__3; +x_101 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38; +lean_inc(x_21); +x_102 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_102, 0, x_21); +lean_ctor_set(x_102, 1, x_100); +lean_ctor_set(x_102, 2, x_99); +lean_ctor_set(x_102, 3, x_101); +x_103 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__56; +lean_inc(x_21); +x_104 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_104, 0, x_21); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__22; +lean_inc(x_21); +x_106 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_106, 0, x_21); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41; +lean_inc(x_21); +x_108 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_108, 0, x_21); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45; +lean_inc(x_24); +lean_inc(x_27); +x_110 = l_Lean_addMacroScope(x_27, x_109, x_24); +x_111 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44; +lean_inc(x_21); +x_112 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_112, 0, x_21); +lean_ctor_set(x_112, 1, x_111); +lean_ctor_set(x_112, 2, x_110); +lean_ctor_set(x_112, 3, x_35); +x_113 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49; +lean_inc(x_24); +lean_inc(x_27); +x_114 = l_Lean_addMacroScope(x_27, x_113, x_24); +x_115 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48; +x_116 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51; +lean_inc(x_21); +x_117 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_117, 0, x_21); +lean_ctor_set(x_117, 1, x_115); +lean_ctor_set(x_117, 2, x_114); +lean_ctor_set(x_117, 3, x_116); +x_118 = lean_array_push(x_44, x_14); +lean_inc(x_79); +x_119 = lean_array_push(x_118, x_79); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_42); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_array_push(x_44, x_117); +x_122 = lean_array_push(x_121, x_120); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_47); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__72; +x_125 = lean_array_push(x_124, x_108); +lean_inc(x_112); +x_126 = lean_array_push(x_125, x_112); +lean_inc(x_58); +x_127 = lean_array_push(x_126, x_58); +x_128 = lean_array_push(x_127, x_123); +x_129 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40; +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +x_131 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__37; +lean_inc(x_21); +x_132 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_132, 0, x_21); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_array_push(x_40, x_132); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_42); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_array_push(x_44, x_130); +lean_inc(x_134); +x_136 = lean_array_push(x_135, x_134); +x_137 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__32; +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +x_139 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54; +lean_inc(x_21); +x_140 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_140, 0, x_21); +lean_ctor_set(x_140, 1, x_139); +x_141 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57; +lean_inc(x_21); +x_142 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_142, 0, x_21); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_array_push(x_53, x_17); +x_144 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59; +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__6___lambda__1___closed__9; +lean_inc(x_21); +x_147 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_147, 0, x_21); +lean_ctor_set(x_147, 1, x_146); +lean_inc(x_145); +x_148 = lean_array_push(x_90, x_145); +x_149 = lean_array_push(x_148, x_147); +x_150 = lean_array_push(x_149, x_145); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_42); +lean_ctor_set(x_151, 1, x_150); +x_152 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60; +lean_inc(x_21); +x_153 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_153, 0, x_21); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_array_push(x_90, x_142); +x_155 = lean_array_push(x_154, x_151); +x_156 = lean_array_push(x_155, x_153); +x_157 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63; +lean_inc(x_21); +x_160 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_160, 0, x_21); +lean_ctor_set(x_160, 1, x_159); +x_161 = lean_array_push(x_40, x_112); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_42); +lean_ctor_set(x_162, 1, x_161); +x_163 = lean_array_push(x_44, x_162); +x_164 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__41; +x_165 = lean_array_push(x_163, x_164); +x_166 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65; +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_165); +x_168 = lean_array_push(x_44, x_160); +x_169 = lean_array_push(x_168, x_167); +x_170 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_169); +x_172 = lean_array_push(x_40, x_171); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_42); +lean_ctor_set(x_173, 1, x_172); +x_174 = lean_array_push(x_90, x_140); +x_175 = lean_array_push(x_174, x_158); +x_176 = lean_array_push(x_175, x_173); +x_177 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53; +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = lean_array_push(x_44, x_178); +lean_inc(x_134); +x_180 = lean_array_push(x_179, x_134); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_137); +lean_ctor_set(x_181, 1, x_180); +x_182 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__70; +lean_inc(x_21); +x_183 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_183, 0, x_21); +lean_ctor_set(x_183, 1, x_182); +x_184 = lean_array_push(x_40, x_183); +x_185 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__71; +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_184); +x_187 = lean_array_push(x_44, x_186); +x_188 = lean_array_push(x_187, x_164); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_137); +lean_ctor_set(x_189, 1, x_188); +x_190 = lean_array_push(x_90, x_138); +x_191 = lean_array_push(x_190, x_181); +x_192 = lean_array_push(x_191, x_189); +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_42); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_array_push(x_40, x_193); +x_195 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__28; +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +x_197 = lean_array_push(x_40, x_196); +x_198 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__26; +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_197); +x_200 = lean_array_push(x_44, x_106); +lean_inc(x_200); +x_201 = lean_array_push(x_200, x_199); +x_202 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__21; +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_201); +x_204 = lean_array_push(x_44, x_203); +x_205 = lean_array_push(x_204, x_164); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_42); +lean_ctor_set(x_206, 1, x_205); +x_207 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__73; +lean_inc(x_21); +x_208 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_208, 0, x_21); +lean_ctor_set(x_208, 1, x_207); +x_209 = lean_array_push(x_90, x_104); +x_210 = lean_array_push(x_209, x_206); +x_211 = lean_array_push(x_210, x_208); +x_212 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__55; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +x_214 = lean_array_push(x_40, x_213); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_42); +lean_ctor_set(x_215, 1, x_214); +x_216 = lean_array_push(x_44, x_102); +x_217 = lean_array_push(x_216, x_215); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_47); +lean_ctor_set(x_218, 1, x_217); +x_219 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__42; +lean_inc(x_21); +x_220 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_220, 0, x_21); +lean_ctor_set(x_220, 1, x_219); +x_221 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__48; +x_222 = l_Lean_addMacroScope(x_27, x_221, x_24); +x_223 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__47; +x_224 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__53; +lean_inc(x_21); +x_225 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_225, 0, x_21); +lean_ctor_set(x_225, 1, x_223); +lean_ctor_set(x_225, 2, x_222); +lean_ctor_set(x_225, 3, x_224); +lean_inc(x_79); +x_226 = lean_array_push(x_40, x_79); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_42); +lean_ctor_set(x_227, 1, x_226); +x_228 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__33; +lean_inc(x_21); +x_229 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_229, 0, x_21); +lean_ctor_set(x_229, 1, x_228); +x_230 = lean_array_push(x_44, x_229); +lean_inc(x_227); +x_231 = lean_array_push(x_230, x_227); +x_232 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__34; +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = lean_array_push(x_44, x_233); +x_235 = lean_array_push(x_234, x_134); +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_137); +lean_ctor_set(x_236, 1, x_235); +x_237 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66; +x_238 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_238, 0, x_21); +lean_ctor_set(x_238, 1, x_237); +x_239 = lean_array_push(x_40, x_238); +x_240 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67; +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_239); +x_242 = lean_array_push(x_44, x_241); +x_243 = lean_array_push(x_242, x_164); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_137); +lean_ctor_set(x_244, 1, x_243); +x_245 = lean_array_push(x_44, x_236); +x_246 = lean_array_push(x_245, x_244); +x_247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_247, 0, x_42); +lean_ctor_set(x_247, 1, x_246); +x_248 = lean_array_push(x_40, x_247); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_195); +lean_ctor_set(x_249, 1, x_248); +x_250 = lean_array_push(x_40, x_249); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_198); +lean_ctor_set(x_251, 1, x_250); +x_252 = lean_array_push(x_200, x_251); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_202); +lean_ctor_set(x_253, 1, x_252); +x_254 = lean_array_push(x_90, x_227); +lean_inc(x_73); +x_255 = lean_array_push(x_254, x_73); +x_256 = lean_array_push(x_255, x_253); +x_257 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22; +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_256); +x_259 = lean_array_push(x_44, x_60); +lean_inc(x_259); +x_260 = lean_array_push(x_259, x_258); +x_261 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20; +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +x_263 = lean_array_push(x_40, x_262); +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_42); +lean_ctor_set(x_264, 1, x_263); +x_265 = lean_array_push(x_44, x_225); +x_266 = lean_array_push(x_265, x_264); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_47); +lean_ctor_set(x_267, 1, x_266); +x_268 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__74; +x_269 = lean_array_push(x_268, x_75); +x_270 = lean_array_push(x_269, x_79); +x_271 = lean_array_push(x_270, x_32); +x_272 = lean_array_push(x_271, x_95); +x_273 = lean_array_push(x_272, x_97); +x_274 = lean_array_push(x_273, x_218); +x_275 = lean_array_push(x_274, x_220); +x_276 = lean_array_push(x_275, x_267); +x_277 = l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__2; +x_278 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_276); +x_279 = lean_array_push(x_90, x_71); +x_280 = lean_array_push(x_279, x_73); +x_281 = lean_array_push(x_280, x_278); +x_282 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_282, 0, x_257); +lean_ctor_set(x_282, 1, x_281); +x_283 = lean_array_push(x_259, x_282); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_261); +lean_ctor_set(x_284, 1, x_283); +x_285 = lean_array_push(x_90, x_58); +x_286 = lean_array_push(x_285, x_284); +x_287 = lean_array_push(x_286, x_164); +x_288 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__24; +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_287); +x_290 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68; +x_291 = lean_array_push(x_290, x_30); +x_292 = lean_array_push(x_291, x_164); +x_293 = lean_array_push(x_292, x_164); +x_294 = lean_array_push(x_293, x_56); +x_295 = lean_array_push(x_294, x_289); +x_296 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7; +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_295); +x_298 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69; +x_299 = lean_array_push(x_298, x_297); +x_300 = l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__8; +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_299); +x_302 = l_Lean_Elab_Command_elabCommand(x_301, x_2, x_3, x_28); +return x_302; +} +else +{ +uint8_t x_303; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_303 = !lean_is_exclusive(x_18); +if (x_303 == 0) +{ +return x_18; +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_18, 0); +x_305 = lean_ctor_get(x_18, 1); +lean_inc(x_305); +lean_inc(x_304); +lean_dec(x_18); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_304); +lean_ctor_set(x_306, 1, x_305); +return x_306; +} +} +} +else +{ +uint8_t x_307; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_307 = !lean_is_exclusive(x_10); +if (x_307 == 0) +{ +return x_10; +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = lean_ctor_get(x_10, 0); +x_309 = lean_ctor_get(x_10, 1); +lean_inc(x_309); +lean_inc(x_308); +lean_dec(x_10); +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_308); +lean_ctor_set(x_310, 1, x_309); +return x_310; +} +} +} +else +{ +uint8_t x_311; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_311 = !lean_is_exclusive(x_7); +if (x_311 == 0) +{ +return x_7; +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_7, 0); +x_313 = lean_ctor_get(x_7, 1); +lean_inc(x_313); +lean_inc(x_312); +lean_dec(x_7); +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; +} +} +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__2___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: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_5 = 1; +x_6 = lean_box(x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_17; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +lean_inc(x_2); +x_17 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(x_8, x_2, x_3, x_4); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 6) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_20, 4); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_eq(x_21, x_22); +lean_dec(x_21); +x_10 = x_23; +x_11 = x_19; +goto block_16; +} +else +{ +lean_object* x_24; uint8_t x_25; +lean_dec(x_18); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_dec(x_17); +x_25 = 0; +x_10 = x_25; +x_11 = x_24; +goto block_16; +} +} +else +{ +uint8_t x_26; +lean_dec(x_9); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +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; +} +} +block_16: +{ +if (x_10 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_2); +x_12 = 0; +x_13 = lean_box(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_11); +return x_14; +} +else +{ +x_1 = x_9; +x_4 = x_11; +goto _start; +} +} +} +} +} +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_2); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 5) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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; uint8_t x_15; +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_ctor_get(x_10, 3); +lean_inc(x_11); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_List_lengthTRAux___rarg(x_11, x_12); +lean_dec(x_11); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_dec_eq(x_13, x_14); +lean_dec(x_13); +if (x_15 == 0) +{ +uint8_t x_16; lean_object* x_17; +lean_dec(x_10); +lean_dec(x_2); +x_16 = 0; +x_17 = lean_box(x_16); +lean_ctor_set(x_5, 0, x_17); +return x_5; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_10, 2); +lean_inc(x_18); +x_19 = lean_nat_dec_eq(x_18, x_12); +lean_dec(x_18); +if (x_19 == 0) +{ +uint8_t x_20; lean_object* x_21; +lean_dec(x_10); +lean_dec(x_2); +x_20 = 0; +x_21 = lean_box(x_20); +lean_ctor_set(x_5, 0, x_21); +return x_5; +} +else +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +x_23 = lean_nat_dec_eq(x_22, x_12); +lean_dec(x_22); +if (x_23 == 0) +{ +uint8_t x_24; lean_object* x_25; +lean_dec(x_10); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(x_24); +lean_ctor_set(x_5, 0, x_25); +return x_5; +} +else +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_10, 4); +lean_inc(x_26); +x_27 = l_List_isEmpty___rarg(x_26); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*5); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = lean_ctor_get_uint8(x_10, sizeof(void*)*5 + 3); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = lean_ctor_get_uint8(x_10, sizeof(void*)*5 + 1); +lean_dec(x_10); +if (x_30 == 0) +{ +lean_object* x_31; +lean_free_object(x_5); +x_31 = l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(x_26, x_2, x_3, x_8); +return x_31; +} +else +{ +uint8_t x_32; lean_object* x_33; +lean_dec(x_26); +lean_dec(x_2); +x_32 = 0; +x_33 = lean_box(x_32); +lean_ctor_set(x_5, 0, x_33); +return x_5; +} +} +else +{ +uint8_t x_34; lean_object* x_35; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_34 = 0; +x_35 = lean_box(x_34); +lean_ctor_set(x_5, 0, x_35); +return x_5; +} +} +else +{ +uint8_t x_36; lean_object* x_37; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_36 = 0; +x_37 = lean_box(x_36); +lean_ctor_set(x_5, 0, x_37); +return x_5; +} +} +else +{ +uint8_t x_38; lean_object* x_39; +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_2); +x_38 = 0; +x_39 = lean_box(x_38); +lean_ctor_set(x_5, 0, x_39); +return x_5; +} +} +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_5, 1); +lean_inc(x_40); +lean_dec(x_5); +x_41 = lean_ctor_get(x_6, 0); +lean_inc(x_41); +lean_dec(x_6); +x_42 = lean_ctor_get(x_41, 3); +lean_inc(x_42); +x_43 = lean_unsigned_to_nat(0u); +x_44 = l_List_lengthTRAux___rarg(x_42, x_43); +lean_dec(x_42); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_dec_eq(x_44, x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_41); +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 +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +x_51 = lean_nat_dec_eq(x_50, x_43); +lean_dec(x_50); +if (x_51 == 0) +{ +uint8_t x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_41); +lean_dec(x_2); +x_52 = 0; +x_53 = lean_box(x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_40); +return x_54; +} +else +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_41, 1); +lean_inc(x_55); +x_56 = lean_nat_dec_eq(x_55, x_43); +lean_dec(x_55); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_41); +lean_dec(x_2); +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_40); +return x_59; +} +else +{ +lean_object* x_60; uint8_t x_61; +x_60 = lean_ctor_get(x_41, 4); +lean_inc(x_60); +x_61 = l_List_isEmpty___rarg(x_60); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = lean_ctor_get_uint8(x_41, sizeof(void*)*5); +if (x_62 == 0) +{ +uint8_t x_63; +x_63 = lean_ctor_get_uint8(x_41, sizeof(void*)*5 + 3); +if (x_63 == 0) +{ +uint8_t x_64; +x_64 = lean_ctor_get_uint8(x_41, sizeof(void*)*5 + 1); +lean_dec(x_41); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(x_60, x_2, x_3, x_40); +return x_65; +} +else +{ +uint8_t x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_60); +lean_dec(x_2); +x_66 = 0; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_40); +return x_68; +} +} +else +{ +uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_69 = 0; +x_70 = lean_box(x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_40); +return x_71; +} +} +else +{ +uint8_t x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_72 = 0; +x_73 = lean_box(x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_40); +return x_74; +} +} +else +{ +uint8_t x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_60); +lean_dec(x_41); +lean_dec(x_2); +x_75 = 0; +x_76 = lean_box(x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_40); +return x_77; +} +} +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_6); +lean_dec(x_2); +x_78 = !lean_is_exclusive(x_5); +if (x_78 == 0) +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_5, 0); +lean_dec(x_79); +x_80 = 0; +x_81 = lean_box(x_80); +lean_ctor_set(x_5, 0, x_81); +return x_5; +} +else +{ +lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_5, 1); +lean_inc(x_82); +lean_dec(x_5); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_2); +x_86 = !lean_is_exclusive(x_5); +if (x_86 == 0) +{ +return x_5; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_5, 0); +x_88 = lean_ctor_get(x_5, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_5); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +} lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -6468,327 +9529,125 @@ x_11 = l_Lean_instInhabitedName; x_12 = lean_unsigned_to_nat(0u); x_13 = lean_array_get(x_11, x_1, x_12); lean_inc(x_2); -x_14 = l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(x_13, x_2, x_3, x_4); +lean_inc(x_13); +x_14 = l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(x_13, x_2, x_3, x_4); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; uint8_t x_16; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*5 + 3); +x_16 = lean_unbox(x_15); +lean_dec(x_15); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_17; lean_object* x_18; x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); lean_dec(x_14); -x_18 = lean_box(0); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkDecEqCmds), 8, 1); -lean_closure_set(x_19, 0, x_15); -lean_inc(x_2); -x_20 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_19, x_2, x_3, x_17); +x_18 = l_Lean_Elab_Deriving_DecEq_mkDecEq(x_13, x_2, x_3, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = l_Lean_Elab_Deriving_DecEq_mkDecEqEnum(x_13, x_2, x_3, x_19); 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; lean_object* x_24; uint8_t x_25; +lean_object* x_22; uint8_t x_23; lean_object* x_24; x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_24 = lean_array_get_size(x_22); -x_25 = lean_nat_dec_lt(x_12, x_24); -if (x_25 == 0) -{ -uint8_t x_26; lean_object* x_27; -lean_dec(x_24); lean_dec(x_22); -lean_dec(x_3); -lean_dec(x_2); +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_20, 0, x_24); +return x_20; +} +else +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); x_26 = 1; x_27 = lean_box(x_26); -lean_ctor_set(x_20, 0, x_27); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_20); +if (x_29 == 0) +{ return x_20; } else { -uint8_t x_28; -x_28 = lean_nat_dec_le(x_24, x_24); -if (x_28 == 0) -{ -uint8_t x_29; lean_object* x_30; -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_3); -lean_dec(x_2); -x_29 = 1; -x_30 = lean_box(x_29); -lean_ctor_set(x_20, 0, x_30); -return x_20; -} -else -{ -size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; -lean_free_object(x_20); -x_31 = 0; -x_32 = lean_usize_of_nat(x_24); -lean_dec(x_24); -x_33 = lean_box(0); -x_34 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_22, x_31, x_32, x_33, x_2, x_3, x_23); -lean_dec(x_22); -if (lean_obj_tag(x_34) == 0) -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -x_37 = 1; -x_38 = lean_box(x_37); -lean_ctor_set(x_34, 0, x_38); -return x_34; -} -else -{ -lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_34, 1); -lean_inc(x_39); -lean_dec(x_34); -x_40 = 1; -x_41 = lean_box(x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; -} -} -else -{ -uint8_t x_43; -x_43 = !lean_is_exclusive(x_34); -if (x_43 == 0) -{ -return x_34; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_34, 0); -x_45 = lean_ctor_get(x_34, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_34); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_20, 0); -x_48 = lean_ctor_get(x_20, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_20); -x_49 = lean_array_get_size(x_47); -x_50 = lean_nat_dec_lt(x_12, x_49); -if (x_50 == 0) +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 { -uint8_t x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_49); -lean_dec(x_47); +uint8_t x_33; +lean_dec(x_13); lean_dec(x_3); lean_dec(x_2); -x_51 = 1; -x_52 = lean_box(x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_48); -return x_53; -} -else -{ -uint8_t x_54; -x_54 = lean_nat_dec_le(x_49, x_49); -if (x_54 == 0) -{ -uint8_t x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_49); -lean_dec(x_47); -lean_dec(x_3); -lean_dec(x_2); -x_55 = 1; -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 -{ -size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; -x_58 = 0; -x_59 = lean_usize_of_nat(x_49); -lean_dec(x_49); -x_60 = lean_box(0); -x_61 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(x_47, x_58, x_59, x_60, x_2, x_3, x_48); -lean_dec(x_47); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_63 = x_61; -} else { - lean_dec_ref(x_61); - x_63 = lean_box(0); -} -x_64 = 1; -x_65 = lean_box(x_64); -if (lean_is_scalar(x_63)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_63; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_62); -return x_66; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_61, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_69 = x_61; -} else { - lean_dec_ref(x_61); - x_69 = lean_box(0); -} -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); -} else { - x_70 = x_69; -} -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_68); -return x_70; -} -} -} -} -} -else -{ -uint8_t x_71; -lean_dec(x_3); -lean_dec(x_2); -x_71 = !lean_is_exclusive(x_20); -if (x_71 == 0) -{ -return x_20; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_20, 0); -x_73 = lean_ctor_get(x_20, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_20); -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 -{ -uint8_t x_75; -lean_dec(x_15); -lean_dec(x_3); -lean_dec(x_2); -x_75 = !lean_is_exclusive(x_14); -if (x_75 == 0) -{ -lean_object* x_76; uint8_t x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_14, 0); -lean_dec(x_76); -x_77 = 0; -x_78 = lean_box(x_77); -lean_ctor_set(x_14, 0, x_78); -return x_14; -} -else -{ -lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_14, 1); -lean_inc(x_79); -lean_dec(x_14); -x_80 = 0; -x_81 = lean_box(x_80); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_79); -return x_82; -} -} -} -else -{ -uint8_t x_83; -lean_dec(x_3); -lean_dec(x_2); -x_83 = !lean_is_exclusive(x_14); -if (x_83 == 0) +x_33 = !lean_is_exclusive(x_14); +if (x_33 == 0) { return x_14; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_14, 0); -x_85 = lean_ctor_get(x_14, 1); -lean_inc(x_85); -lean_inc(x_84); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_14, 0); +x_35 = lean_ctor_get(x_14, 1); +lean_inc(x_35); +lean_inc(x_34); lean_dec(x_14); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__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_throwError___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_List_allM___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___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_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -6802,7 +9661,7 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1() { +static lean_object* _init_l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1() { _start: { lean_object* x_1; @@ -6810,12 +9669,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandl return x_1; } } -lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480_(lean_object* x_1) { +lean_object* l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_DecEq_mkDecEqHeader___rarg___closed__2; -x_3 = l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1; +x_3 = l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1; x_4 = l_Lean_Elab_registerBuiltinDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -7206,13 +10065,197 @@ l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__9 = _init_l_Lean_Elab_Deriving_ lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__9); l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__10 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__10(); lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__10); -l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1(); -lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__1); -l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2(); -lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___closed__2); -l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1 = _init_l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1(); -lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480____closed__1); -res = l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_2480_(lean_io_mk_world()); +l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__1); +l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_DecEq_mkDecEq___spec__1___closed__2); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__2); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__3); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__5); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__6); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__8); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__1); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__2); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___lambda__1___closed__3); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNat___closed__1); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___lambda__1___closed__1); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__1); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__2); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__3); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__4); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__5); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__6); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__7); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__8); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__9); +l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10 = _init_l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkEnumOfNatThm___closed__10); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__1); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__2); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__3); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__4); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__5); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__6); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__7); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__8); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__9); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__10); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__11); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__12); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__13); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__14); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__15); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__17); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__18); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__19); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__20); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__21); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__22); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__26); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__27); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__28); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__29); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__30); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__31); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__33); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__34); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__35); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__36); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__37); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__38); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__39); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__40); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__42); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__43); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__45); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__46); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__47); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__48); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__49); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__50); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__51); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__52); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__53); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__54); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__55); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__56); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__57); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__58); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__59); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__60); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__61); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__62); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__63); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__64); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__65); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__66); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__67); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__68); +l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69 = _init_l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69); +l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1 = _init_l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673____closed__1); +res = l_Lean_Elab_Deriving_DecEq_initFn____x40_Lean_Elab_Deriving_DecEq___hyg_3673_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index 741c80047c..6786d56432 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -53,7 +53,6 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inh lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__23; lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lambda__3___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); @@ -104,6 +103,7 @@ lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_match__1(lean_object*); +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__11; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -114,10 +114,12 @@ lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedIn lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__39; +lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__3; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__15; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -136,12 +138,12 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inh static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__4; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux(lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_match__1(lean_object*); -lean_object* l_Std_RBNode_find___at_Lean_sanitizeName___spec__1(lean_object*, lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2___closed__3; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__1; lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__2; @@ -189,6 +191,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Derivi lean_object* l_List_mapTRAux___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__4___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2___closed__2; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__41; +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__34; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___lambda__2___closed__3; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__23; @@ -228,9 +231,9 @@ uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__45; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__9; -lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__8; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__4; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__8___closed__4; @@ -252,10 +255,10 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMe lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__33; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__11; +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__22; -lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_match__1(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__18; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance(lean_object*, lean_object*, lean_object*, lean_object*); @@ -297,12 +300,12 @@ lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Elab_Deriving_Inhabited static lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__1___closed__4; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__29; lean_object* l_List_mapTRAux___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__4___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__5___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__6(lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1___boxed(lean_object*, lean_object*); lean_object* l_runST___rarg(lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__26; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF___closed__1() { _start: @@ -527,6 +530,2476 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_Inhabited_0__Lea return x_2; } } +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___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, 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) { _start: { @@ -536,7 +3009,7 @@ x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_1, x_14); x_16 = l_Lean_Expr_fvarId_x21(x_2); lean_dec(x_2); -x_17 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_16, x_1); +x_17 = l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___spec__1(x_3, x_16, x_1); x_18 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg(x_4, x_5, x_15, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_18; } @@ -961,7 +3434,47 @@ x_13 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance return x_13; } } -lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; +lean_inc(x_6); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_6); +return x_10; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1000,7 +3513,7 @@ x_14 = lean_nat_dec_eq(x_2, x_10); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; -x_15 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_12, x_2, x_3); +x_15 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_12, x_2, x_3); x_16 = 0; lean_ctor_set(x_1, 3, x_15); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); @@ -1021,7 +3534,7 @@ return x_1; else { lean_object* x_18; uint8_t x_19; -x_18 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_9, x_2, x_3); +x_18 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_9, x_2, x_3); x_19 = 0; lean_ctor_set(x_1, 0, x_18); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19); @@ -1048,7 +3561,7 @@ x_25 = lean_nat_dec_eq(x_2, x_21); if (x_25 == 0) { lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_26 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_23, x_2, x_3); +x_26 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_23, x_2, x_3); x_27 = 0; x_28 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_28, 0, x_20); @@ -1076,7 +3589,7 @@ return x_30; else { lean_object* x_31; uint8_t x_32; lean_object* x_33; -x_31 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_20, x_2, x_3); +x_31 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_20, x_2, x_3); x_32 = 0; x_33 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_33, 0, x_31); @@ -1111,7 +3624,7 @@ x_41 = l_Std_RBNode_isRed___rarg(x_38); if (x_41 == 0) { lean_object* x_42; uint8_t x_43; -x_42 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_38, x_2, x_3); +x_42 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_38, x_2, x_3); x_43 = 1; lean_ctor_set(x_1, 3, x_42); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_43); @@ -1120,7 +3633,7 @@ return x_1; else { lean_object* x_44; lean_object* x_45; -x_44 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_38, x_2, x_3); +x_44 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_38, x_2, x_3); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); if (lean_obj_tag(x_45) == 0) @@ -1813,7 +4326,7 @@ x_203 = l_Std_RBNode_isRed___rarg(x_35); if (x_203 == 0) { lean_object* x_204; uint8_t x_205; -x_204 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_35, x_2, x_3); +x_204 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_35, x_2, x_3); x_205 = 1; lean_ctor_set(x_1, 0, x_204); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_205); @@ -1822,7 +4335,7 @@ return x_1; else { lean_object* x_206; lean_object* x_207; -x_206 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_35, x_2, x_3); +x_206 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_35, x_2, x_3); x_207 = lean_ctor_get(x_206, 0); lean_inc(x_207); if (lean_obj_tag(x_207) == 0) @@ -2530,7 +5043,7 @@ x_371 = l_Std_RBNode_isRed___rarg(x_368); if (x_371 == 0) { lean_object* x_372; uint8_t x_373; lean_object* x_374; -x_372 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_368, x_2, x_3); +x_372 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_368, x_2, x_3); x_373 = 1; x_374 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_374, 0, x_365); @@ -2543,7 +5056,7 @@ return x_374; else { lean_object* x_375; lean_object* x_376; -x_375 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_368, x_2, x_3); +x_375 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_368, x_2, x_3); x_376 = lean_ctor_get(x_375, 0); lean_inc(x_376); if (lean_obj_tag(x_376) == 0) @@ -2985,7 +5498,7 @@ x_459 = l_Std_RBNode_isRed___rarg(x_365); if (x_459 == 0) { lean_object* x_460; uint8_t x_461; lean_object* x_462; -x_460 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_365, x_2, x_3); +x_460 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_365, x_2, x_3); x_461 = 1; x_462 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_462, 0, x_460); @@ -2998,7 +5511,7 @@ return x_462; else { lean_object* x_463; lean_object* x_464; -x_463 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_365, x_2, x_3); +x_463 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_365, x_2, x_3); x_464 = lean_ctor_get(x_463, 0); lean_inc(x_464); if (lean_obj_tag(x_464) == 0) @@ -3423,7 +5936,7 @@ return x_544; } } } -lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -3431,19 +5944,19 @@ x_4 = l_Std_RBNode_isRed___rarg(x_1); if (x_4 == 0) { lean_object* x_5; -x_5 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_1, x_2, x_3); +x_5 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, x_2, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; -x_6 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_1, x_2, x_3); +x_6 = l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, x_2, x_3); x_7 = l_Std_RBNode_setBlack___rarg(x_6); return x_7; } } } -lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(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; uint8_t x_29; lean_object* x_30; lean_object* x_117; @@ -3467,7 +5980,7 @@ if (lean_obj_tag(x_3) == 1) lean_object* x_122; lean_object* x_123; x_122 = lean_ctor_get(x_3, 0); lean_inc(x_122); -x_123 = l_Std_RBNode_find___at_Lean_sanitizeName___spec__1(x_1, x_122); +x_123 = l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(x_1, x_122); lean_dec(x_122); if (lean_obj_tag(x_123) == 0) { @@ -3493,7 +6006,7 @@ x_128 = lean_ctor_get(x_126, 1); lean_inc(x_128); lean_dec(x_126); x_129 = lean_box(0); -x_130 = l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(x_127, x_125, x_129); +x_130 = l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_127, x_125, x_129); x_131 = lean_st_ref_set(x_5, x_130, x_128); if (lean_obj_tag(x_131) == 0) { @@ -3593,7 +6106,7 @@ if (lean_obj_tag(x_3) == 1) lean_object* x_147; lean_object* x_148; x_147 = lean_ctor_get(x_3, 0); lean_inc(x_147); -x_148 = l_Std_RBNode_find___at_Lean_sanitizeName___spec__1(x_1, x_147); +x_148 = l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(x_1, x_147); lean_dec(x_147); if (lean_obj_tag(x_148) == 0) { @@ -3619,7 +6132,7 @@ x_153 = lean_ctor_get(x_151, 1); lean_inc(x_153); lean_dec(x_151); x_154 = lean_box(0); -x_155 = l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(x_152, x_150, x_154); +x_155 = l_Std_RBNode_insert___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(x_152, x_150, x_154); x_156 = lean_st_ref_set(x_5, x_155, x_153); if (lean_obj_tag(x_156) == 0) { @@ -3842,14 +6355,14 @@ x_32 = lean_ctor_get(x_3, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_3, 1); lean_inc(x_33); -x_34 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_32, x_4, x_5, x_30); +x_34 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_32, x_4, x_5, x_30); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); lean_dec(x_34); -x_36 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_33, x_4, x_5, x_35); +x_36 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_33, x_4, x_5, x_35); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; @@ -3918,14 +6431,14 @@ x_47 = lean_ctor_get(x_3, 1); lean_inc(x_47); x_48 = lean_ctor_get(x_3, 2); lean_inc(x_48); -x_49 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_47, x_4, x_5, x_30); +x_49 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_47, x_4, x_5, x_30); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_object* x_51; x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec(x_49); -x_51 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_48, x_4, x_5, x_50); +x_51 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_48, x_4, x_5, x_50); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; @@ -3994,14 +6507,14 @@ x_62 = lean_ctor_get(x_3, 1); lean_inc(x_62); x_63 = lean_ctor_get(x_3, 2); lean_inc(x_63); -x_64 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_62, x_4, x_5, x_30); +x_64 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_62, x_4, x_5, x_30); if (lean_obj_tag(x_64) == 0) { lean_object* x_65; lean_object* x_66; x_65 = lean_ctor_get(x_64, 1); lean_inc(x_65); lean_dec(x_64); -x_66 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_63, x_4, x_5, x_65); +x_66 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_63, x_4, x_5, x_65); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; @@ -4072,21 +6585,21 @@ x_78 = lean_ctor_get(x_3, 2); lean_inc(x_78); x_79 = lean_ctor_get(x_3, 3); lean_inc(x_79); -x_80 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_77, x_4, x_5, x_30); +x_80 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_77, x_4, x_5, x_30); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); lean_dec(x_80); -x_82 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_78, x_4, x_5, x_81); +x_82 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_78, x_4, x_5, x_81); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; lean_object* x_84; x_83 = lean_ctor_get(x_82, 1); lean_inc(x_83); lean_dec(x_82); -x_84 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_79, x_4, x_5, x_83); +x_84 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_79, x_4, x_5, x_83); if (lean_obj_tag(x_84) == 0) { lean_object* x_85; lean_object* x_86; @@ -4179,7 +6692,7 @@ case 10: lean_object* x_99; lean_object* x_100; x_99 = lean_ctor_get(x_3, 1); lean_inc(x_99); -x_100 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_99, x_4, x_5, x_30); +x_100 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_99, x_4, x_5, x_30); if (lean_obj_tag(x_100) == 0) { lean_object* x_101; lean_object* x_102; @@ -4221,7 +6734,7 @@ case 11: lean_object* x_107; lean_object* x_108; x_107 = lean_ctor_get(x_3, 2); lean_inc(x_107); -x_108 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, lean_box(0), x_107, x_4, x_5, x_30); +x_108 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, lean_box(0), x_107, x_4, x_5, x_30); if (lean_obj_tag(x_108) == 0) { lean_object* x_109; lean_object* x_110; @@ -4303,7 +6816,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_2, lean_box(0), x_3, x_11, x_7, x_12); +x_13 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_2, lean_box(0), x_3, x_11, x_7, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -4500,11 +7013,21 @@ return x_6; } } } -lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_find___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4___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_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index b0e3c92fbc..66813f83b3 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -431,6 +431,7 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPoint_match__1(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__1; lean_object* l_Lean_Elab_Term_Do_getLetDeclVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandTermReturn(lean_object*); @@ -592,6 +593,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__32; static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__10; lean_object* l_Lean_Syntax_setKind(lean_object*, lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); +lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__3; @@ -610,9 +612,12 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_do static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__8___closed__9; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor___closed__2; static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__19; +lean_object* l_Std_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData(lean_object*); lean_object* l_Lean_Elab_Term_Do_mkSimpleJmp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__8___closed__4; lean_object* l_Lean_Elab_Term_Do_hasExitPoint___lambda__1___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -674,7 +679,6 @@ static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkDoIfView(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_toDoElem___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -711,7 +715,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Ter lean_object* l_Lean_Elab_Term_Do_extendUpdatedVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_mkDoSeq___spec__1(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___closed__25; -lean_object* l_Std_RBNode_erase___at_Lean_Meta_ToHide_unmark___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_instInhabitedCode; static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__16; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__3; @@ -745,11 +748,13 @@ lean_object* l_Lean_Elab_Term_Do_mkReassignCore___lambda__1(lean_object*, lean_o static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__23; static lean_object* l_Lean_Elab_Term_Do_getDoHaveVar___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_concat___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__3(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__4; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___closed__1; +lean_object* l_Std_RBNode_balLeft___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__8___closed__15; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS___closed__2; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -855,6 +860,7 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToTerm_retu lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -982,6 +988,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___cl static lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__1; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__2; static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_object* l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabLiftMethod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandTermReturn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1362,6 +1369,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__13; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__4; lean_object* l_Lean_Elab_Term_Do_ToTerm_toTerm_match__1(lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7080,6 +7088,100 @@ lean_dec(x_1); return x_7; } } +lean_object* l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_2, 2); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 3); +lean_inc(x_7); +lean_dec(x_2); +x_8 = l_Lean_Name_quickCmp(x_1, x_5); +switch (x_8) { +case 0: +{ +uint8_t x_9; +x_9 = l_Std_RBNode_isBlack___rarg(x_4); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_4); +x_11 = 0; +x_12 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_5); +lean_ctor_set(x_12, 2, x_6); +lean_ctor_set(x_12, 3, x_7); +lean_ctor_set_uint8(x_12, sizeof(void*)*4, x_11); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_4); +x_14 = l_Std_RBNode_balLeft___rarg(x_13, x_5, x_6, x_7); +return x_14; +} +} +case 1: +{ +lean_object* x_15; +lean_dec(x_6); +lean_dec(x_5); +x_15 = l_Std_RBNode_appendTrees___rarg(x_4, x_7); +return x_15; +} +default: +{ +uint8_t x_16; +x_16 = l_Std_RBNode_isBlack___rarg(x_7); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_17 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_7); +x_18 = 0; +x_19 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_5); +lean_ctor_set(x_19, 2, x_6); +lean_ctor_set(x_19, 3, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*4, x_18); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_7); +x_21 = l_Std_RBNode_balRight___rarg(x_4, x_5, x_6, x_20); +return x_21; +} +} +} +} +} +} +lean_object* l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_2); +x_4 = l_Std_RBNode_setBlack___rarg(x_3); +return x_4; +} +} lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_eraseVars___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { @@ -7091,7 +7193,7 @@ lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; x_6 = lean_array_uget(x_1, x_2); x_7 = 1; x_8 = x_2 + x_7; -x_9 = l_Std_RBNode_erase___at_Lean_Meta_ToHide_unmark___spec__1(x_6, x_4); +x_9 = l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2(x_6, x_4); lean_dec(x_6); x_2 = x_8; x_4 = x_9; @@ -7139,6 +7241,24 @@ return x_9; } } } +lean_object* l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__3(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__2(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_eraseVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -7947,7 +8067,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -8281,15 +8401,6 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -12488,7 +12599,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -29797,7 +29908,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -32874,7 +32985,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -33126,7 +33237,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -35328,7 +35439,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -39803,7 +39914,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -42296,7 +42407,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__2___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); diff --git a/stage0/stdlib/Lean/Elab/Extra.c b/stage0/stdlib/Lean/Elab/Extra.c index edab8712d5..57f97dc7da 100644 --- a/stage0/stdlib/Lean/Elab/Extra.c +++ b/stage0/stdlib/Lean/Elab/Extra.c @@ -27,6 +27,7 @@ static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_ lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3; static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__1; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForIn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__4; @@ -326,7 +327,6 @@ lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(lean_obj lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn___closed__25; -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2; @@ -3826,7 +3826,7 @@ lean_inc(x_83); x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); lean_dec(x_82); -x_85 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_84); +x_85 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_84); x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); x_87 = lean_ctor_get(x_85, 1); @@ -4113,7 +4113,7 @@ lean_inc(x_144); x_145 = lean_ctor_get(x_143, 1); lean_inc(x_145); lean_dec(x_143); -x_146 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_145); +x_146 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_145); x_147 = lean_ctor_get(x_146, 0); lean_inc(x_147); x_148 = lean_ctor_get(x_146, 1); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 9059d2b301..5d8f40938d 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -29,10 +29,12 @@ uint8_t l_Lean_Level_isNeverZero(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___boxed(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyDerivingHandlers___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__4; +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___closed__1; lean_object* l_List_mapTRAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__1___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); @@ -49,7 +51,6 @@ lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object* lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint64_t lean_uint64_of_nat(lean_object*); @@ -494,7 +495,6 @@ static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkPa uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__2___closed__1; static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__5; @@ -1529,7 +1529,7 @@ lean_inc(x_11); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_12 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_7, x_8, x_9, x_10); +x_12 = l_Lean_Meta_mkFreshLevelMVar(x_6, x_7, x_8, x_9, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -2563,7 +2563,7 @@ lean_dec(x_1); x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor___lambda__1___boxed), 9, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_9, x_10, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_9, x_10, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } @@ -4332,7 +4332,7 @@ lean_closure_set(x_29, 1, x_2); lean_closure_set(x_29, 2, x_18); lean_closure_set(x_29, 3, x_23); lean_closure_set(x_29, 4, x_28); -x_30 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_24, x_25, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_30 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_24, x_25, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_19); return x_30; } else @@ -9743,11 +9743,11 @@ static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_r _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -9885,7 +9885,7 @@ x_17 = lean_ctor_get(x_13, 1); lean_inc(x_17); lean_dec(x_13); x_18 = lean_apply_1(x_3, x_17); -x_19 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_15, x_16, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_19 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_15, x_16, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_14); return x_19; } else diff --git a/stage0/stdlib/Lean/Elab/InfoTree.c b/stage0/stdlib/Lean/Elab/InfoTree.c index 349615db65..c5375e3bec 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree.c +++ b/stage0/stdlib/Lean/Elab/InfoTree.c @@ -68,10 +68,9 @@ lean_object* l_Lean_Elab_TermInfo_runMetaM(lean_object*); lean_object* l_Lean_Elab_withSaveInfoContext___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); lean_object* l_Option_format___at_Lean_Elab_CompletionInfo_format___spec__1___boxed(lean_object*); -static lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__5; +static uint32_t l_Lean_Elab_instInhabitedContextInfo___closed__5; lean_object* l_Lean_Elab_withInfoContext_x27_match__1(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_instHashableName; lean_object* l_Lean_Elab_enableInfoTree(lean_object*); lean_object* l_Lean_Elab_MacroExpansionInfo_format(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_modifyInfoTrees(lean_object*); @@ -143,7 +142,7 @@ static lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__9; lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___rarg(lean_object*, lean_object*, lean_object*); -static uint32_t l_Lean_Elab_instInhabitedContextInfo___closed__4; +static lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__4; lean_object* l_Lean_Elab_withMacroExpansionInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -229,7 +228,7 @@ lean_object* l_Lean_Elab_TermInfo_format(lean_object*, lean_object*, lean_object lean_object* l_Lean_Elab_instInhabitedInfo; lean_object* l_Lean_Elab_ContextInfo_openDecls___default; lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static uint64_t l_Lean_Elab_instInhabitedTermInfo___closed__5; +static lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__5; lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_instInhabitedElabInfo___closed__1; lean_object* lean_expr_dbg_to_string(lean_object*); @@ -252,6 +251,7 @@ lean_object* l_Lean_Elab_Info_updateContext_x3f_match__1(lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_withSaveInfoContext___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_withSaveInfoContext___spec__2___rarg___lambda__2(lean_object*); static lean_object* l_Lean_Elab_ContextInfo_ppGoals___closed__2; +extern lean_object* l_Lean_instHashableMVarId; lean_object* l_Lean_Elab_getInfoTrees(lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -261,7 +261,6 @@ lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Elab_InfoTree_findInfo lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_withMacroExpansionInfo___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__4___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_ContextInfo_currNamespace___default; lean_object* l_Lean_Elab_pushInfoLeaf___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -292,6 +291,7 @@ lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedInfoTree; lean_object* l_Lean_Elab_withInfoTreeContext___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__4___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqMVarId; lean_object* l_Lean_Elab_CompletionInfo_stx_match__1(lean_object*); static lean_object* l_Lean_Elab_InfoTree_format___closed__2; lean_object* l_Lean_Elab_ContextInfo_runMetaM_match__1___rarg(lean_object*, lean_object*); @@ -312,7 +312,7 @@ lean_object* l_Lean_Elab_assignInfoHoleId(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Elab_MacroExpansionInfo_format___closed__1; lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_Elab_InfoTree_findInfo_x3f___spec__1___boxed(lean_object*, lean_object*); -static size_t l_Lean_Elab_instInhabitedTermInfo___closed__2; +static lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__2; lean_object* l_List_forIn_loop___at_Lean_Elab_resolveGlobalConstWithInfos___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__4___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,7 +341,7 @@ lean_object* l_Lean_Elab_withInfoContext_x27_match__2(lean_object*, lean_object* lean_object* l_Lean_Elab_instInhabitedContextInfo; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withSaveInfoContext___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__3; +static size_t l_Lean_Elab_instInhabitedTermInfo___closed__3; lean_object* l_Lean_ppTerm(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange_fmtPos___closed__9; lean_object* l_Lean_Elab_getResetInfoTrees___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -380,7 +380,7 @@ lean_object* l_Lean_Elab_pushInfoTree(lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_withSaveInfoContext___spec__2(lean_object*); -static lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__6; +static uint64_t l_Lean_Elab_instInhabitedTermInfo___closed__6; lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Format_prefixJoin___at_Lean_Elab_ContextInfo_ppGoals___spec__2(lean_object*, lean_object*); @@ -428,16 +428,17 @@ lean_object* l_Lean_Elab_withInfoTreeContext___rarg___lambda__4___boxed(lean_obj extern lean_object* l_instInhabitedPUnit; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__7; +static lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__8; lean_object* l_Lean_Elab_CompletionInfo_stx(lean_object*); lean_object* l_Lean_Elab_InfoTree_format_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedFieldInfo; +static lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__10; lean_object* l_Std_Format_nestD(lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_withSaveInfoContext___spec__2___rarg___lambda__1(lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_withSaveInfoContext___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__7; static lean_object* l_Lean_Elab_ContextInfo_ppGoals___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; static lean_object* l_Lean_Elab_instInhabitedInfoState___closed__1; lean_object* l_Lean_Elab_getResetInfoTrees___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_FieldInfo_format(lean_object*, lean_object*, lean_object*); @@ -535,10 +536,22 @@ return x_2; static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_ContextInfo_mctx___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__3() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__1; -x_3 = l_Lean_Elab_ContextInfo_mctx___default___closed__3; +x_3 = l_Lean_Elab_instInhabitedContextInfo___closed__2; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -546,7 +559,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__3() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -555,7 +568,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static uint32_t _init_l_Lean_Elab_instInhabitedContextInfo___closed__4() { +static uint32_t _init_l_Lean_Elab_instInhabitedContextInfo___closed__5() { _start: { lean_object* x_1; uint32_t x_2; @@ -564,14 +577,14 @@ x_2 = lean_uint32_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__5() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__6() { _start: { uint32_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__4; +x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__5; x_2 = 0; x_3 = lean_box(0); -x_4 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_4 = l_Lean_Elab_instInhabitedContextInfo___closed__4; x_5 = lean_alloc_ctor(0, 4, 5); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); @@ -582,14 +595,14 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 4, x_2); return x_5; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__6() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__1; -x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__2; -x_3 = l_Lean_Elab_instInhabitedContextInfo___closed__3; -x_4 = l_Lean_Elab_instInhabitedContextInfo___closed__5; +x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_3 = l_Lean_Elab_instInhabitedContextInfo___closed__4; +x_4 = l_Lean_Elab_instInhabitedContextInfo___closed__6; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -598,7 +611,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__7() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__8() { _start: { lean_object* x_1; @@ -606,12 +619,12 @@ x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__8() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__7; -x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__8; +x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__4; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -619,13 +632,13 @@ lean_ctor_set(x_3, 2, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__9() { +static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); -x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__6; -x_3 = l_Lean_Elab_instInhabitedContextInfo___closed__8; +x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__7; +x_3 = l_Lean_Elab_instInhabitedContextInfo___closed__9; x_4 = l_Lean_Elab_ContextInfo_mctx___default___closed__4; x_5 = lean_box(0); x_6 = lean_alloc_ctor(0, 6, 0); @@ -642,7 +655,7 @@ static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__9; +x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__10; return x_1; } } @@ -677,14 +690,26 @@ return x_1; static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_ContextInfo_mctx___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__2() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static size_t _init_l_Lean_Elab_instInhabitedTermInfo___closed__2() { +static size_t _init_l_Lean_Elab_instInhabitedTermInfo___closed__3() { _start: { lean_object* x_1; size_t x_2; @@ -693,14 +718,14 @@ x_2 = lean_usize_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__3() { +static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__1; -x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__2; +x_2 = l_Lean_Elab_instInhabitedContextInfo___closed__4; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Elab_instInhabitedTermInfo___closed__2; +x_4 = l_Lean_Elab_instInhabitedTermInfo___closed__3; x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -710,19 +735,19 @@ lean_ctor_set_usize(x_5, 4, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__4() { +static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_ContextInfo_mctx___default___closed__3; -x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__3; +x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__1; +x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__4; 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; } } -static uint64_t _init_l_Lean_Elab_instInhabitedTermInfo___closed__5() { +static uint64_t _init_l_Lean_Elab_instInhabitedTermInfo___closed__6() { _start: { lean_object* x_1; uint64_t x_2; @@ -731,26 +756,26 @@ x_2 = lean_uint64_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__6() { +static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__7() { _start: { lean_object* x_1; uint64_t x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__5; +x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__6; x_3 = lean_alloc_ctor(0, 1, 8); lean_ctor_set(x_3, 0, x_1); lean_ctor_set_uint64(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__7() { +static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Elab_instInhabitedElabInfo___closed__1; -x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__4; -x_4 = l_Lean_Elab_instInhabitedTermInfo___closed__6; +x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__5; +x_4 = l_Lean_Elab_instInhabitedTermInfo___closed__7; x_5 = 0; x_6 = lean_alloc_ctor(0, 4, 1); lean_ctor_set(x_6, 0, x_2); @@ -765,7 +790,7 @@ static lean_object* _init_l_Lean_Elab_instInhabitedTermInfo() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__7; +x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__8; return x_1; } } @@ -927,8 +952,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = lean_box(0); -x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__4; -x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__6; +x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__5; +x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__7; x_4 = lean_box(0); x_5 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_5, 0, x_1); @@ -975,7 +1000,7 @@ static lean_object* _init_l_Lean_Elab_instInhabitedMacroExpansionInfo___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__4; +x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__5; x_2 = lean_box(0); x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); @@ -1015,7 +1040,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_instInhabitedInfo___closed__1; -x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__3; +x_2 = l_Lean_Elab_instInhabitedTermInfo___closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -1638,7 +1663,7 @@ _start: uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; x_2 = l_Lean_Elab_ContextInfo_mctx___default___closed__3; -x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__3; +x_3 = l_Lean_Elab_instInhabitedTermInfo___closed__4; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -2100,8 +2125,8 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_1, 0); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqMVarId; +x_23 = l_Lean_instHashableMVarId; lean_inc(x_21); lean_inc(x_2); x_24 = l_Std_PersistentHashMap_find_x3f___rarg(x_22, x_23, x_2, x_21); @@ -2128,8 +2153,8 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_27 = lean_ctor_get(x_1, 0); lean_inc(x_27); lean_dec(x_1); -x_28 = l_Lean_Name_instBEqName; -x_29 = l_Lean_instHashableName; +x_28 = l_Lean_instBEqMVarId; +x_29 = l_Lean_instHashableMVarId; lean_inc(x_27); lean_inc(x_2); x_30 = l_Std_PersistentHashMap_find_x3f___rarg(x_28, x_29, x_2, x_27); @@ -2404,7 +2429,7 @@ _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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_5 = lean_box(0); x_6 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__1; -x_7 = l_Lean_Elab_instInhabitedContextInfo___closed__3; +x_7 = l_Lean_Elab_instInhabitedContextInfo___closed__4; x_8 = lean_unsigned_to_nat(0u); x_9 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_9, 0, x_6); @@ -2417,14 +2442,14 @@ x_11 = lean_ctor_get(x_1, 2); x_12 = lean_ctor_get(x_1, 3); x_13 = lean_ctor_get(x_1, 4); x_14 = lean_ctor_get(x_1, 5); -x_15 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__9; -x_16 = l_Lean_NameSet_empty; +x_15 = lean_box(0); +x_16 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__9; x_17 = l_Lean_Elab_InfoState_trees___default___closed__3; lean_inc(x_11); x_18 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_15); -lean_ctor_set(x_18, 2, x_16); +lean_ctor_set(x_18, 1, x_16); +lean_ctor_set(x_18, 2, x_15); lean_ctor_set(x_18, 3, x_17); x_19 = l_Lean_Core_getMaxHeartbeats(x_12); x_20 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__10; @@ -2823,7 +2848,7 @@ static lean_object* _init_l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxR _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__7; +x_1 = l_Lean_Elab_instInhabitedContextInfo___closed__8; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -4432,7 +4457,7 @@ static lean_object* _init_l_Lean_Elab_ContextInfo_ppGoals___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_ContextInfo_mctx___default___closed__3; +x_1 = l_Lean_Elab_instInhabitedTermInfo___closed__1; x_2 = l_Lean_Elab_InfoState_trees___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -8227,8 +8252,8 @@ lean_dec(x_4); x_6 = lean_ctor_get(x_3, 0); lean_inc(x_6); lean_dec(x_3); -x_7 = l_Lean_Name_instBEqName; -x_8 = l_Lean_instHashableName; +x_7 = l_Lean_instBEqMVarId; +x_8 = l_Lean_instHashableMVarId; x_9 = l_Std_PersistentHashMap_find_x3f___rarg(x_7, x_8, x_6, x_2); x_10 = lean_apply_2(x_5, lean_box(0), x_9); return x_10; @@ -8267,8 +8292,8 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_3, 0); -x_6 = l_Lean_Name_instBEqName; -x_7 = l_Lean_instHashableName; +x_6 = l_Lean_instBEqMVarId; +x_7 = l_Lean_instHashableMVarId; x_8 = l_Std_PersistentHashMap_insert___rarg(x_6, x_7, x_5, x_1, x_2); lean_ctor_set(x_3, 0, x_8); return x_3; @@ -8282,8 +8307,8 @@ x_11 = lean_ctor_get(x_3, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_12 = l_Lean_Name_instBEqName; -x_13 = l_Lean_instHashableName; +x_12 = l_Lean_instBEqMVarId; +x_13 = l_Lean_instHashableMVarId; x_14 = l_Std_PersistentHashMap_insert___rarg(x_12, x_13, x_10, x_1, x_2); x_15 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_15, 0, x_14); @@ -8620,8 +8645,8 @@ x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_sub(x_7, x_10); lean_dec(x_7); x_12 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_6, x_11); -x_13 = l_Lean_Name_instBEqName; -x_14 = l_Lean_instHashableName; +x_13 = l_Lean_instBEqMVarId; +x_14 = l_Lean_instHashableMVarId; x_15 = l_Std_PersistentHashMap_insert___rarg(x_13, x_14, x_5, x_2, x_12); lean_ctor_set(x_3, 1, x_1); lean_ctor_set(x_3, 0, x_15); @@ -8660,8 +8685,8 @@ x_23 = lean_unsigned_to_nat(1u); x_24 = lean_nat_sub(x_19, x_23); lean_dec(x_19); x_25 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_18, x_24); -x_26 = l_Lean_Name_instBEqName; -x_27 = l_Lean_instHashableName; +x_26 = l_Lean_instBEqMVarId; +x_27 = l_Lean_instHashableMVarId; x_28 = l_Std_PersistentHashMap_insert___rarg(x_26, x_27, x_17, x_2, x_25); x_29 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_29, 0, x_28); @@ -8962,8 +8987,8 @@ lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__2); l_Lean_Elab_instInhabitedContextInfo___closed__3 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__3(); lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__3); l_Lean_Elab_instInhabitedContextInfo___closed__4 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__4(); +lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__4); l_Lean_Elab_instInhabitedContextInfo___closed__5 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__5(); -lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__5); l_Lean_Elab_instInhabitedContextInfo___closed__6 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__6(); lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__6); l_Lean_Elab_instInhabitedContextInfo___closed__7 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__7(); @@ -8972,6 +8997,8 @@ l_Lean_Elab_instInhabitedContextInfo___closed__8 = _init_l_Lean_Elab_instInhabit lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__8); l_Lean_Elab_instInhabitedContextInfo___closed__9 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__9(); lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__9); +l_Lean_Elab_instInhabitedContextInfo___closed__10 = _init_l_Lean_Elab_instInhabitedContextInfo___closed__10(); +lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo___closed__10); l_Lean_Elab_instInhabitedContextInfo = _init_l_Lean_Elab_instInhabitedContextInfo(); lean_mark_persistent(l_Lean_Elab_instInhabitedContextInfo); l_Lean_Elab_instInhabitedElabInfo___closed__1 = _init_l_Lean_Elab_instInhabitedElabInfo___closed__1(); @@ -8982,15 +9009,17 @@ l_Lean_Elab_TermInfo_isBinder___default = _init_l_Lean_Elab_TermInfo_isBinder___ l_Lean_Elab_instInhabitedTermInfo___closed__1 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__1(); lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__1); l_Lean_Elab_instInhabitedTermInfo___closed__2 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__2(); +lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__2); l_Lean_Elab_instInhabitedTermInfo___closed__3 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__3(); -lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__3); l_Lean_Elab_instInhabitedTermInfo___closed__4 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__4(); lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__4); l_Lean_Elab_instInhabitedTermInfo___closed__5 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__5(); +lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__5); l_Lean_Elab_instInhabitedTermInfo___closed__6 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__6(); -lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__6); l_Lean_Elab_instInhabitedTermInfo___closed__7 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__7(); lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__7); +l_Lean_Elab_instInhabitedTermInfo___closed__8 = _init_l_Lean_Elab_instInhabitedTermInfo___closed__8(); +lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo___closed__8); l_Lean_Elab_instInhabitedTermInfo = _init_l_Lean_Elab_instInhabitedTermInfo(); lean_mark_persistent(l_Lean_Elab_instInhabitedTermInfo); l_Lean_Elab_instInhabitedCommandInfo = _init_l_Lean_Elab_instInhabitedCommandInfo(); diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index e18a3327a7..6649e0045c 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -86,7 +86,6 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1( uint8_t l_List_foldr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__15___closed__4; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__8; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__15___closed__9; @@ -1644,7 +1643,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -3565,15 +3564,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__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_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Level.c b/stage0/stdlib/Lean/Elab/Level.c index bb14ba8110..5e2e1c7aee 100644 --- a/stage0/stdlib/Lean/Elab/Level.c +++ b/stage0/stdlib/Lean/Elab/Level.c @@ -32,8 +32,8 @@ static lean_object* l_Lean_Elab_Level_elabLevel___closed__16; static lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___closed__4; size_t l_USize_sub(size_t, size_t); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); +lean_object* l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__9; @@ -65,6 +65,7 @@ lean_object* lean_level_mk_max_simp(lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_initFn____x40_Lean_Elab_Level___hyg_203____closed__1; +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___boxed(lean_object*); lean_object* lean_level_mk_imax_simp(lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_initFn____x40_Lean_Elab_Level___hyg_203_(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__12; @@ -76,6 +77,7 @@ static lean_object* l_Lean_Elab_Level_maxUniverseOffset___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__2; lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___lambda__1(lean_object*, lean_object*, lean_object*); @@ -90,6 +92,7 @@ lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset( static lean_object* l_Lean_Elab_Level_elabLevel___closed__8; static lean_object* l_Lean_Elab_Level_elabLevel___closed__4; static lean_object* l_Lean_Elab_Level_elabLevel___closed__17; +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___rarg(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__1; lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_RecDepth___hyg_4____spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind; @@ -110,7 +113,6 @@ lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7( static lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__4___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___rarg___lambda__1___closed__2; -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___boxed(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__3; static lean_object* l_Lean_Elab_Level_elabLevel___closed__15; static lean_object* l_Lean_Elab_Level_elabLevel___closed__18; @@ -122,11 +124,11 @@ lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___closed__2; -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Level_instAddMessageContextLevelElabM___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Elab_Level_instMonadOptionsLevelElabM___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__1; static lean_object* l_Lean_Elab_Level_initFn____x40_Lean_Elab_Level___hyg_203____closed__4; +lean_object* l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_instMonadRefLevelElabM___closed__1; lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat(lean_object*); @@ -525,7 +527,7 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___rarg(lean_object* x_1) { +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___rarg(lean_object* x_1) { _start: { uint8_t x_2; @@ -622,19 +624,44 @@ return x_29; } } } -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object* x_1) { +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___rarg), 1, 0); return x_2; } } +lean_object* l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___rarg(x_2); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_3); +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_Elab_Level_mkFreshLevelMVar(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; -x_3 = l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___rarg(x_2); +x_3 = l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(x_1, x_2); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { @@ -717,15 +744,24 @@ return x_27; } } } -lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___boxed(lean_object* x_1) { +lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(x_1); +x_2 = l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__2(x_1); lean_dec(x_1); return x_2; } } +lean_object* l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshMVarId___at_Lean_Elab_Level_mkFreshLevelMVar___spec__1(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_Elab_Level_mkFreshLevelMVar___boxed(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 2e5cc7b82b..26aa11e519 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -18,6 +18,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize_match__3__ lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__7___closed__5; +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8221____closed__2; lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault_match__1(lean_object*); @@ -51,7 +52,6 @@ lean_object* l_Lean_mkSort(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__2; -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___lambda__4___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,12 +72,14 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop(lean_object*); lean_object* l_Lean_Meta_Match_inaccessible_x3f(lean_object*); uint8_t l_USize_decEq(size_t, size_t); +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarsToGeneralize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_updateMatchType___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3(lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__7___lambda__1___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_expandMacros___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -140,6 +142,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscr uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1; lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_instToStringRecursorInfo___spec__5(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f_go_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); @@ -150,7 +153,6 @@ lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop_match__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_markAsVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_precheckMatch_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -184,7 +186,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPa lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__16; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_precheckMatch___spec__1(lean_object*, lean_object*); @@ -200,7 +201,6 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__L lean_object* l_Std_mkHashSetImp___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__2___closed__3; lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__7; lean_object* l_Lean_Elab_Term_throwMVarError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,7 +234,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_isAtomicDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_match__1(lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__3___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__4(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__1(lean_object*, size_t, size_t, lean_object*); @@ -258,6 +257,7 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__L lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_precheckMatch___spec__3(size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f_go_match__1(lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___closed__7; +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -338,7 +338,6 @@ lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_objec lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___spec__5(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2(lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_ToDepElimPattern_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchOptType___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -354,7 +353,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns_match__2(lean_object*); static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__3___closed__2; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -385,7 +383,6 @@ lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); lean_object* l_List_mapTRAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs___boxed(lean_object*); lean_object* l_Lean_Elab_Term_precheckMatch_match__5___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -399,6 +396,7 @@ lean_object* l_Array_filterMapM___at___private_Lean_Elab_Match_0__Lean_Elab_Term lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabNoMatch___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -413,7 +411,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_add lean_object* l_Std_RBNode_revFold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withDepElimPatterns_match__1___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__6; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__1; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__4; @@ -444,7 +441,9 @@ uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_updateFirst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; @@ -499,11 +498,9 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize_match__1(l static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__2; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__7; static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__7___lambda__1___closed__1; -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_Term_precheckMatch_match__4(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__5; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__3; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -563,6 +560,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Pattern lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_isAtomicDiscr_x3f___spec__1___rarg(lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterMapM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -654,6 +652,7 @@ uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__8; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___closed__3; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__12; @@ -702,7 +701,6 @@ lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_precheckMatch(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__6(size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -712,6 +710,7 @@ uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2; lean_object* l_Lean_Expr_arrayLit_x3f(lean_object*); @@ -763,13 +762,10 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__L lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isPatternVar___closed__1; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_precheckMatch___lambda__2(lean_object*); @@ -787,6 +783,7 @@ lean_object* l_Lean_Elab_Term_precheckMatch_match__1(lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__8; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__4; lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___lambda__1___boxed__const__1; @@ -803,9 +800,11 @@ uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElaboratedLHS_match__1(lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls___spec__1___lambda__2___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__2; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_eraseIndices_match__1(lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_match__2(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__9; @@ -814,7 +813,9 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1 lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___boxed(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -823,7 +824,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns_match__2 lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_precheckMatch___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDepElimPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__4(size_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux_match__3___rarg(lean_object*, lean_object*); @@ -848,6 +848,7 @@ lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___boxed__const__1; +static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2; lean_object* l_Lean_Elab_Term_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElaboratedLHS___rarg___boxed__const__1; @@ -872,7 +873,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isPatternVar_match__1 lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__9; -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___boxed(lean_object*); lean_object* l_Lean_Elab_Term_precheckMatch___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_checkCompatibleApps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__1; @@ -15472,7 +15472,7 @@ static lean_object* _init_l_Lean_Elab_Term_ToDepElimPattern_State_found___defaul _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -15480,7 +15480,7 @@ static lean_object* _init_l_Lean_Elab_Term_ToDepElimPattern_State_newLocals___de _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -15496,35 +15496,65 @@ x_12 = lean_st_ref_get(x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_ctor_get(x_12, 0); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_NameSet_contains(x_15, x_1); +x_16 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_15, x_1); lean_dec(x_15); -x_17 = lean_box(x_16); -lean_ctor_set(x_12, 0, x_17); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; lean_object* x_18; +x_17 = 0; +x_18 = lean_box(x_17); +lean_ctor_set(x_12, 0, x_18); return x_12; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_inc(x_18); +uint8_t x_19; lean_object* x_20; +lean_dec(x_16); +x_19 = 1; +x_20 = lean_box(x_19); +lean_ctor_set(x_12, 0, x_20); +return x_12; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_12); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_NameSet_contains(x_20, x_1); -lean_dec(x_20); -x_22 = lean_box(x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -return x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_23, x_1); +lean_dec(x_23); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_25 = 0; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +else +{ +uint8_t x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_24); +x_28 = 1; +x_29 = lean_box(x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_22); +return x_30; +} } } } @@ -15564,7 +15594,7 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; x_16 = lean_ctor_get(x_13, 0); x_17 = lean_box(0); -x_18 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_16, x_1, x_17); +x_18 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_16, x_1, x_17); lean_ctor_set(x_13, 0, x_18); x_19 = lean_st_ref_set(x_2, x_13, x_14); x_20 = !lean_is_exclusive(x_19); @@ -15599,7 +15629,7 @@ lean_inc(x_25); lean_inc(x_24); lean_dec(x_13); x_27 = lean_box(0); -x_28 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_24, x_1, x_27); +x_28 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_24, x_1, x_27); x_29 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_25); @@ -15790,7 +15820,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_T return x_2; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(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; uint8_t x_7; @@ -15957,15 +15987,40 @@ return x_48; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__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: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg___boxed), 2, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___boxed), 2, 0); return x_7; } } -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___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, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___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, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -16001,7 +16056,7 @@ return x_19; } } } -static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1() { _start: { lean_object* x_1; @@ -16009,40 +16064,40 @@ x_1 = lean_mk_string("x"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1; +x_2 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3() { +static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___lambda__1___boxed), 8, 1); +x_1 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___lambda__1___boxed), 8, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___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) { +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___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; -x_8 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3; +x_8 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3; x_9 = l_Lean_Elab_Term_withFreshMacroScope___rarg(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_9; } } -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg), 7, 0); return x_2; } } @@ -16078,7 +16133,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg(x_8, x_17); +x_18 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -16105,7 +16160,7 @@ x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec(x_25); lean_inc(x_8); -x_27 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_26); +x_27 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_26); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; @@ -16137,22 +16192,22 @@ lean_dec(x_35); x_38 = !lean_is_exclusive(x_36); if (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_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_39 = lean_ctor_get(x_36, 1); x_40 = lean_ctor_get(x_36, 2); x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___lambda__1___boxed), 2, 1); lean_closure_set(x_41, 0, x_1); x_42 = lean_array_get_size(x_39); x_43 = l_Array_findIdx_x3f_loop___rarg(x_39, x_41, x_42, x_30, lean_box(0)); -x_44 = lean_box(0); -lean_inc(x_19); -x_45 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_40, x_19, x_44); if (lean_obj_tag(x_43) == 0) { -lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_46 = lean_array_push(x_39, x_32); -lean_ctor_set(x_36, 2, x_45); -lean_ctor_set(x_36, 1, x_46); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_44 = lean_array_push(x_39, x_32); +x_45 = lean_box(0); +lean_inc(x_19); +x_46 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_40, x_19, x_45); +lean_ctor_set(x_36, 2, x_46); +lean_ctor_set(x_36, 1, x_44); x_47 = lean_st_ref_set(x_2, x_36, x_37); x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) @@ -16181,147 +16236,126 @@ return x_53; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; x_54 = lean_ctor_get(x_43, 0); lean_inc(x_54); lean_dec(x_43); x_55 = l_Array_insertAt___rarg(x_39, x_54, x_32); lean_dec(x_54); -lean_ctor_set(x_36, 2, x_45); +x_56 = lean_box(0); +lean_inc(x_19); +x_57 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_40, x_19, x_56); +lean_ctor_set(x_36, 2, x_57); lean_ctor_set(x_36, 1, x_55); -x_56 = lean_st_ref_set(x_2, x_36, x_37); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_58 = lean_st_ref_set(x_2, x_36, x_37); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_19); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); x_61 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_61, 0, x_19); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_19); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; } } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_63 = lean_ctor_get(x_36, 0); -x_64 = lean_ctor_get(x_36, 1); -x_65 = lean_ctor_get(x_36, 2); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_65 = lean_ctor_get(x_36, 0); +x_66 = lean_ctor_get(x_36, 1); +x_67 = lean_ctor_get(x_36, 2); +lean_inc(x_67); +lean_inc(x_66); lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_63); lean_dec(x_36); -x_66 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___lambda__1___boxed), 2, 1); -lean_closure_set(x_66, 0, x_1); -x_67 = lean_array_get_size(x_64); -x_68 = l_Array_findIdx_x3f_loop___rarg(x_64, x_66, x_67, x_30, lean_box(0)); -x_69 = lean_box(0); +x_68 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___lambda__1___boxed), 2, 1); +lean_closure_set(x_68, 0, x_1); +x_69 = lean_array_get_size(x_66); +x_70 = l_Array_findIdx_x3f_loop___rarg(x_66, x_68, x_69, x_30, lean_box(0)); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_71 = lean_array_push(x_66, x_32); +x_72 = lean_box(0); lean_inc(x_19); -x_70 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_65, x_19, x_69); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_71 = lean_array_push(x_64, x_32); -x_72 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_72, 0, x_63); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_72, 2, x_70); -x_73 = lean_st_ref_set(x_2, x_72, x_37); -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_75 = x_73; -} else { - lean_dec_ref(x_73); - x_75 = lean_box(0); -} -x_76 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_76, 0, x_19); -if (lean_is_scalar(x_75)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { +x_73 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_67, x_19, x_72); +x_74 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_74, 0, x_65); +lean_ctor_set(x_74, 1, x_71); +lean_ctor_set(x_74, 2, x_73); +x_75 = lean_st_ref_set(x_2, x_74, x_37); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); x_77 = x_75; -} -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_74); -return x_77; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_78 = lean_ctor_get(x_68, 0); -lean_inc(x_78); -lean_dec(x_68); -x_79 = l_Array_insertAt___rarg(x_64, x_78, x_32); -lean_dec(x_78); -x_80 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_80, 0, x_63); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set(x_80, 2, x_70); -x_81 = lean_st_ref_set(x_2, x_80, x_37); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; } else { - lean_dec_ref(x_81); - x_83 = lean_box(0); + lean_dec_ref(x_75); + x_77 = lean_box(0); } -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_19); -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 0); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_19); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 2, 0); } else { - x_85 = x_83; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; -} + x_79 = x_77; } +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +return x_79; } else { -uint8_t x_86; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_8); -lean_dec(x_1); -x_86 = !lean_is_exclusive(x_27); -if (x_86 == 0) -{ -return x_27; +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_80 = lean_ctor_get(x_70, 0); +lean_inc(x_80); +lean_dec(x_70); +x_81 = l_Array_insertAt___rarg(x_66, x_80, x_32); +lean_dec(x_80); +x_82 = lean_box(0); +lean_inc(x_19); +x_83 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_67, x_19, x_82); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_65); +lean_ctor_set(x_84, 1, x_81); +lean_ctor_set(x_84, 2, x_83); +x_85 = lean_st_ref_set(x_2, x_84, x_37); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_87 = x_85; +} else { + lean_dec_ref(x_85); + x_87 = lean_box(0); } -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_27, 0); -x_88 = lean_ctor_get(x_27, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_27); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); +x_88 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_88, 0, x_19); +if (lean_is_scalar(x_87)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_87; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_86); return x_89; } } @@ -16329,28 +16363,23 @@ return x_89; else { uint8_t x_90; +lean_dec(x_22); lean_dec(x_19); -lean_dec(x_10); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); -x_90 = !lean_is_exclusive(x_21); +x_90 = !lean_is_exclusive(x_27); if (x_90 == 0) { -return x_21; +return x_27; } else { lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_21, 0); -x_92 = lean_ctor_get(x_21, 1); +x_91 = lean_ctor_get(x_27, 0); +x_92 = lean_ctor_get(x_27, 1); lean_inc(x_92); lean_inc(x_91); -lean_dec(x_21); +lean_dec(x_27); x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); @@ -16361,6 +16390,7 @@ return x_93; else { uint8_t x_94; +lean_dec(x_19); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -16369,53 +16399,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_15); +x_94 = !lean_is_exclusive(x_21); if (x_94 == 0) { +return x_21; +} +else +{ lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_15, 0); -lean_dec(x_95); -x_96 = lean_ctor_get(x_16, 0); +x_95 = lean_ctor_get(x_21, 0); +x_96 = lean_ctor_get(x_21, 1); lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_21); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_98 = !lean_is_exclusive(x_15); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_15, 0); +lean_dec(x_99); +x_100 = lean_ctor_get(x_16, 0); +lean_inc(x_100); lean_dec(x_16); -x_97 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_15, 0, x_97); +x_101 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_15, 0, x_101); return x_15; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_98 = lean_ctor_get(x_15, 1); -lean_inc(x_98); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_15, 1); +lean_inc(x_102); lean_dec(x_15); -x_99 = lean_ctor_get(x_16, 0); -lean_inc(x_99); +x_103 = lean_ctor_get(x_16, 0); +lean_inc(x_103); lean_dec(x_16); -x_100 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_100, 0, x_99); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_98); -return x_101; +x_104 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_102); +return x_105; } } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___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_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -16425,11 +16486,26 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___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, lean_object* x_8) { +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -16439,11 +16515,11 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2(x_1); +x_2 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3(x_1); lean_dec(x_1); return x_2; } @@ -18451,7 +18527,7 @@ x_17 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToD lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_16); lean_closure_set(x_17, 2, x_14); -x_18 = l_Lean_NameSet_empty; +x_18 = lean_box(0); x_19 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_1); @@ -21710,7 +21786,7 @@ return x_17; else { lean_object* x_18; lean_object* x_19; -x_18 = l_Lean_NameSet_empty; +x_18 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -23458,7 +23534,7 @@ x_16 = lean_nat_add(x_3, x_4); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_div(x_16, x_17); lean_dec(x_16); -x_49 = l_Lean_instInhabitedName; +x_49 = l_Lean_instInhabitedFVarId; x_50 = lean_array_get(x_49, x_2, x_18); x_51 = lean_array_get(x_49, x_2, x_3); lean_inc(x_1); @@ -23487,7 +23563,7 @@ goto block_48; block_48: { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_20 = l_Lean_instInhabitedName; +x_20 = l_Lean_instInhabitedFVarId; x_21 = lean_array_get(x_20, x_19, x_4); x_22 = lean_array_get(x_20, x_19, x_3); lean_inc(x_21); @@ -23622,11 +23698,11 @@ static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatc _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -28695,7 +28771,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -31204,15 +31280,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__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_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -31846,7 +31913,7 @@ x_31 = lean_array_push(x_3, x_18); x_32 = l_Lean_Expr_fvarId_x21(x_28); lean_dec(x_28); x_33 = lean_box(0); -x_34 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_32, x_33); +x_34 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_4, x_32, x_33); x_2 = x_19; x_3 = x_31; x_4 = x_34; @@ -32147,9 +32214,9 @@ if (x_18 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_array_to_list(lean_box(0), x_14); -x_21 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__15; -x_22 = l_Lean_NameSet_empty; -x_23 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop(x_1, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_19); +x_21 = lean_box(0); +x_22 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__15; +x_23 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop(x_1, x_20, x_22, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_19); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -34763,12 +34830,12 @@ l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPatte lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__1); l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__2); -l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__1); -l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__2); -l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__2___rarg___closed__3); +l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__1); +l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__2); +l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3 = _init_l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__3___rarg___closed__3); l_Lean_Elab_Term_ToDepElimPattern_main___lambda__1___boxed__const__1 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___lambda__1___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___lambda__1___boxed__const__1); l_Lean_Elab_Term_ToDepElimPattern_main___closed__1 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 41afd10b6a..0218747b92 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -40,12 +40,12 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___closed__1; static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__4; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___closed__1; @@ -55,7 +55,6 @@ lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_instInhabitedNameSet; lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isPartial(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -66,16 +65,17 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___closed__1; +lean_object* l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_processDefDeriving_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__2___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_of_nat(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -115,7 +115,9 @@ uint8_t l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__1___closed__8; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__3___closed__1; +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__1___closed__4; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,6 +129,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spe lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1(lean_object*, size_t, size_t); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); @@ -140,6 +143,7 @@ lean_object* l_Lean_Elab_Term_MkInstResult_outParams___default; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___closed__4; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); @@ -154,7 +158,6 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___la lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_processDefDeriving___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object*, lean_object*, size_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -172,6 +175,7 @@ static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualD static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__2___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -182,7 +186,6 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef_ lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,7 +217,6 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1; uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); -lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2___closed__8; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4___closed__5; static lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1___closed__1; @@ -227,7 +229,9 @@ lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__2(lean_object*, lean_ob lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__1(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__1; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst_match__1(lean_object*); @@ -237,6 +241,7 @@ lean_object* l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Ter lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___boxed(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4___closed__3; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -250,7 +255,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spe lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; @@ -269,6 +273,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed(lean_obj lean_object* l_Lean_Elab_Term_elabMutualDef_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -278,7 +283,6 @@ lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, u lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3; lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2___lambda__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___closed__7; @@ -311,6 +315,7 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1; lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(lean_object*); static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__2; +lean_object* l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2___closed__1; lean_object* l_List_mapTRAux___at_Lean_Elab_Term_MutualClosure_main___spec__8(lean_object*, lean_object*, lean_object*); @@ -321,11 +326,11 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getKindFor lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs(lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instFVarIdSetInhabited; static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1; lean_object* l_Lean_Elab_Term_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2; @@ -334,6 +339,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_E lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -362,12 +368,10 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_mat static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2___closed__3; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2(lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15___lambda__2___boxed(lean_object**); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_instantiateMVarsAtHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -377,17 +381,16 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef___boxed__const__1; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__3___closed__3; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); @@ -419,6 +422,7 @@ static uint64_t l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___closed__2; +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); @@ -443,12 +447,14 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamH uint8_t l_Lean_Name_isAtomic(lean_object*); lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; static lean_object* l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__1___closed__1; lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving_match__2(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___lambda__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1(lean_object*); @@ -457,7 +463,10 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersFor extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_Elab_Term_processDefDeriving_match__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__3___closed__2; +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4; static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; +static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1; lean_object* l_Array_indexOfAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_instInhabitedDefView; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1___closed__2; @@ -511,7 +520,6 @@ static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0_ static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__6; lean_object* l_Lean_MetavarContext_getDelayedRoot(lean_object*, lean_object*); lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -519,7 +527,7 @@ lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4 static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__6___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___closed__4; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_addDocString_x27___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); @@ -528,6 +536,7 @@ lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_ob lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving_match__1(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__3___closed__1; static lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___closed__5; @@ -537,13 +546,16 @@ lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(lean_ob static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__1; size_t l_USize_mod(size_t, size_t); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__8; lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default; +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1(lean_object*, size_t, size_t); uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addPreDefinitions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -560,7 +572,6 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0_ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_match__2(lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___closed__5; size_t lean_ptr_addr(lean_object*); -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getString_x21(lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -587,9 +598,9 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendind static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___closed__3; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___boxed(lean_object*, lean_object*); -static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__2; static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -600,7 +611,7 @@ lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessag lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDocString___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__2; @@ -613,15 +624,17 @@ lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2___closed__7; static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__3___closed__5; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__1___closed__5; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun(lean_object*, lean_object*, lean_object*); -static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4; lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__7; lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_6598____spec__3(size_t, size_t, lean_object*); lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(lean_object*, lean_object*); @@ -629,7 +642,8 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_ lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__1___closed__6; static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_sequenceMap___at_myMacro____x40_Init_NotationExtra___hyg_6598____spec__1(lean_object*, lean_object*); lean_object* l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__2(lean_object*, lean_object*); @@ -655,7 +669,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_E lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_processDefDeriving(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_processDefDeriving___spec__3___rarg___closed__1; lean_object* l_Lean_Elab_Term_MutualClosure_pushMain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); @@ -666,12 +679,10 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4 lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default; @@ -697,12 +708,14 @@ uint8_t l_Lean_Elab_Modifiers_isNonrec(lean_object*); lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3; lean_object* l_Lean_Elab_Term_elabMutualDef_processDeriving(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__7(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__3___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -710,6 +723,7 @@ lean_object* l_Lean_Elab_checkIfShadowingStructureField___at___private_Lean_Elab lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___closed__11; +lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_getElimInfo___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__10; @@ -732,6 +746,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___closed__8; @@ -750,7 +765,6 @@ lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_obj lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(lean_object*); static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__2(lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process_match__2(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__3___closed__4; @@ -777,7 +791,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4___closed__1; static lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___closed__3; -static lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1; lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader; static lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2___closed__2; @@ -786,7 +799,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsA lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_processDefDeriving___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___closed__1; -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_mkInst_x3f_go_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); @@ -803,9 +815,9 @@ uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars_match__1(lean_object*); lean_object* l_Lean_Elab_fixLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__15___lambda__1___boxed(lean_object**); -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__1___closed__2; lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -813,7 +825,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___b static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12___closed__2; uint8_t l_List_beq___at_Lean_OpenDecl_instToStringOpenDecl___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__1(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___closed__6; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -841,6 +852,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_getKindForLetRecs___boxed(lean_objec static lean_object* l_Lean_Elab_Term_processDefDeriving___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandWhereDeclsOpt(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -849,6 +861,7 @@ static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_Mu lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*); static lean_object* l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__2___closed__2; uint8_t l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_12_(uint8_t, uint8_t); @@ -860,6 +873,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__11___closed__1; +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; @@ -871,6 +885,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1() { _start: { @@ -9400,11 +9415,11 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_remo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -9543,7 +9558,7 @@ x_19 = lean_ctor_get(x_15, 1); lean_inc(x_19); lean_dec(x_15); x_20 = lean_apply_1(x_5, x_19); -x_21 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_17, x_18, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_21 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_17, x_18, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_16); return x_21; } else @@ -10968,7 +10983,32 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Te return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 < x_3; +if (x_6 == 0) +{ +return x_5; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; +x_7 = lean_array_uget(x_2, x_4); +x_8 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_9 = lean_box(0); +x_10 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_5, x_8, x_9); +x_11 = 1; +x_12 = x_4 + x_11; +x_4 = x_12; +x_5 = x_10; +goto _start; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -10984,7 +11024,7 @@ x_6 = lean_array_uget(x_1, x_3); x_7 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); x_8 = lean_box(0); -x_9 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_7, x_8); +x_9 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_4, x_7, x_8); x_10 = 1; x_11 = x_3 + x_10; x_3 = x_11; @@ -10993,7 +11033,2501 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = x_5 < x_4; +if (x_7 == 0) +{ +lean_dec(x_2); +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_2); +x_9 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_6, x_8, x_2); +x_10 = 1; +x_11 = x_5 + x_10; +x_5 = x_11; +x_6 = x_9; +goto _start; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -11008,7 +13542,7 @@ else lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; x_7 = lean_array_uget(x_2, x_4); lean_inc(x_1); -x_8 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_5, x_7, x_1); +x_8 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_5, x_7, x_1); x_9 = 1; x_10 = x_4 + x_9; x_4 = x_10; @@ -11017,7 +13551,7 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1(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; @@ -11042,7 +13576,53 @@ return x_9; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = x_6 < x_5; +if (x_8 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_array_uget(x_4, x_6); +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1___boxed), 3, 2); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_9); +lean_inc(x_2); +x_11 = l_List_findSome_x3f___rarg(x_10, x_2); +if (lean_obj_tag(x_11) == 0) +{ +size_t x_12; size_t x_13; +x_12 = 1; +x_13 = x_6 + x_12; +x_6 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_box(0); +x_17 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_7, x_15, x_16); +x_18 = 1; +x_19 = x_6 + x_18; +x_6 = x_19; +x_7 = x_17; +goto _start; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -11058,7 +13638,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_array_uget(x_3, x_5); lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed), 3, 2); +x_9 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1___boxed), 3, 2); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_8); lean_inc(x_2); @@ -11078,7 +13658,7 @@ x_14 = lean_ctor_get(x_10, 0); lean_inc(x_14); lean_dec(x_10); x_15 = lean_box(0); -x_16 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_6, x_14, x_15); +x_16 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_6, x_14, x_15); x_17 = 1; x_18 = x_5 + x_17; x_5 = x_18; @@ -11088,7 +13668,7 @@ goto _start; } } } -static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1() { +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11100,52 +13680,112 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, lean_object* x_6, lean_object* x_7) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_6) == 0) { +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_7; } else { -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; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_4, 1); -lean_inc(x_7); -lean_dec(x_4); -x_8 = lean_ctor_get(x_6, 8); +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; size_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); -x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__2; -lean_inc(x_8); -x_10 = l_Lean_CollectFVars_main(x_8, x_9); -x_11 = lean_ctor_get(x_6, 7); -lean_inc(x_11); -x_12 = l_Lean_CollectFVars_main(x_11, x_10); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1; -x_15 = l_Lean_Expr_collectMVars(x_14, x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__1; +lean_inc(x_4); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_4); +x_12 = lean_ctor_get(x_8, 8); +lean_inc(x_12); +lean_inc(x_12); +x_13 = l_Lean_CollectFVars_main(x_12, x_11); +x_14 = lean_ctor_get(x_8, 7); +lean_inc(x_14); +x_15 = l_Lean_CollectFVars_main(x_14, x_13); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = lean_array_get_size(x_16); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); +x_17 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1; +x_18 = l_Lean_Expr_collectMVars(x_17, x_12); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_array_get_size(x_19); +x_21 = lean_usize_of_nat(x_20); +lean_dec(x_20); lean_inc(x_2); lean_inc(x_1); -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_16, x_18, x_3, x_13); -lean_dec(x_16); -x_20 = lean_ctor_get(x_6, 1); -lean_inc(x_20); -lean_dec(x_6); -x_21 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_5, x_20, x_19); -x_4 = x_7; -x_5 = x_21; +x_22 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8(x_1, x_2, x_19, x_21, x_5, x_16); +lean_dec(x_19); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_dec(x_8); +x_24 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_7, x_23, x_22); +x_6 = x_9; +x_7 = x_24; +goto _start; +} +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +else +{ +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; size_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__1; +lean_inc(x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_3); +x_11 = lean_ctor_get(x_7, 8); +lean_inc(x_11); +lean_inc(x_11); +x_12 = l_Lean_CollectFVars_main(x_11, x_10); +x_13 = lean_ctor_get(x_7, 7); +lean_inc(x_13); +x_14 = l_Lean_CollectFVars_main(x_13, x_12); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1; +x_17 = l_Lean_Expr_collectMVars(x_16, x_11); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_array_get_size(x_18); +x_20 = lean_usize_of_nat(x_19); +lean_dec(x_19); +lean_inc(x_2); +lean_inc(x_1); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8(x_1, x_2, x_18, x_20, x_4, x_15); +lean_dec(x_18); +x_22 = lean_ctor_get(x_7, 1); +lean_inc(x_22); +lean_dec(x_7); +x_23 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_6, x_22, x_21); +x_5 = x_8; +x_6 = x_23; goto _start; } } @@ -11153,39 +13793,25 @@ goto _start; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; lean_object* x_13; lean_object* x_14; -x_5 = lean_array_get_size(x_2); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = l_Lean_NameSet_empty; -x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(x_2, x_6, x_7, x_8); +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_5 = lean_box(0); +x_6 = lean_array_get_size(x_2); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_2, x_7, x_8, x_5); lean_dec(x_2); -x_10 = lean_box(0); -x_11 = lean_array_get_size(x_3); -x_12 = lean_usize_of_nat(x_11); -lean_dec(x_11); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_9, x_3, x_12, x_7, x_10); +x_10 = lean_array_get_size(x_3); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6(x_9, x_3, x_11, x_8, x_5); lean_dec(x_3); lean_inc(x_4); -x_14 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_4, x_7, x_4, x_13); -return x_14; +x_13 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10(x_1, x_4, x_5, x_8, x_4, x_12); +return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(x_1, x_5, x_6, x_4); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___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; @@ -11193,21 +13819,26 @@ 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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); +lean_dec(x_1); return x_8; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_4; -x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(x_1, x_2, x_3); +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -return x_4; +x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -11215,19 +13846,80 @@ x_7 = lean_unbox_usize(x_4); lean_dec(x_4); x_8 = lean_unbox_usize(x_5); lean_dec(x_5); -x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_3, x_7, x_8, x_6); +x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__8(x_1, x_2, x_3, x_7, x_8, x_6); lean_dec(x_3); return x_9; } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -size_t x_6; lean_object* x_7; -x_6 = lean_unbox_usize(x_3); +size_t x_8; lean_object* x_9; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9(x_1, x_2, x_3, x_4, x_8, x_6, x_7); lean_dec(x_3); -x_7 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_2, x_6, x_4, x_5); -return x_7; +return x_9; +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__10(x_1, x_2, x_3, x_7, x_5, x_6); +return x_8; } } static lean_object* _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default() { @@ -11451,83 +14143,86 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__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_2) == 0) +if (lean_obj_tag(x_3) == 0) { -lean_object* x_5; -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -return x_5; +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_5); +return x_6; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 1); +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 = lean_ctor_get(x_3, 0); lean_inc(x_7); -x_8 = lean_ctor_get(x_2, 3); +x_8 = lean_ctor_get(x_3, 1); lean_inc(x_8); -lean_dec(x_2); -x_9 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_6, x_3, x_4); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_9 = lean_ctor_get(x_3, 3); +lean_inc(x_9); +lean_dec(x_3); +x_10 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_7, x_4, x_5); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_NameSet_contains(x_10, x_7); -if (x_12 == 0) +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_11, x_8); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(x_11); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_10, x_7, x_15); -x_1 = x_16; -x_2 = x_8; -x_4 = x_14; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(x_12); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_box(0); +x_17 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_11, x_8, x_16); +x_2 = x_17; +x_3 = x_9; +x_5 = x_15; goto _start; } else { -lean_dec(x_7); -x_1 = x_10; -x_2 = x_8; -x_4 = x_11; +lean_dec(x_13); +lean_dec(x_8); +x_2 = x_11; +x_3 = x_9; +x_5 = x_12; goto _start; } } } } +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; -x_5 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_3, x_4); -return x_5; +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; +x_6 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_5, x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_6; } } -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___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_5; -x_5 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___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_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; +lean_object* x_6; +x_6 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; } } lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -11601,64 +14296,65 @@ goto _start; } } } -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__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) { +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__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, lean_object* x_7) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_3); -lean_ctor_set(x_7, 1, x_6); -return x_7; +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_7); +return x_8; } 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; uint8_t x_14; -x_8 = lean_ctor_get(x_4, 0); -x_9 = lean_ctor_get(x_4, 1); -x_10 = lean_ctor_get(x_4, 3); -x_11 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_8, x_5, x_6); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_ctor_get(x_5, 0); +x_10 = lean_ctor_get(x_5, 1); +x_11 = lean_ctor_get(x_5, 3); +x_12 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_4, x_9, x_6, x_7); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_name_eq(x_1, x_9); -if (x_14 == 0) +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_name_eq(x_1, x_10); +if (x_15 == 0) { -lean_object* x_15; -x_15 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_2, x_9); -if (lean_obj_tag(x_15) == 0) +lean_object* x_16; +x_16 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_2, x_10); +if (lean_obj_tag(x_16) == 0) { -x_3 = x_12; -x_4 = x_10; -x_6 = x_13; +x_4 = x_13; +x_5 = x_11; +x_7 = x_14; goto _start; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_12, x_17, x_5, x_13); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_3 = x_19; -x_4 = x_10; -x_6 = x_20; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; +x_20 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_19, x_13, x_18, x_6, x_14); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_4 = x_21; +x_5 = x_11; +x_7 = x_22; goto _start; } } else { -x_3 = x_12; -x_4 = x_10; -x_6 = x_13; +x_4 = x_13; +x_5 = x_11; +x_7 = x_14; goto _start; } } @@ -11668,7 +14364,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix _start: { lean_object* x_4; -x_4 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_1, x_2); +x_4 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_3, x_1, x_2); return x_4; } } @@ -11695,67 +14391,69 @@ return x_4; } 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; +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_free_object(x_4); x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); +x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; lean_inc(x_10); -x_11 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_6, x_10, x_10, x_2, x_7); +x_12 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_6, x_11, x_10, x_10, x_2, x_7); lean_dec(x_10); lean_dec(x_6); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_12); -x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_14, x_2, x_13); -return x_15; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_13); +x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_15, x_2, x_14); +return x_16; } } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_4, 0); -x_17 = lean_ctor_get(x_4, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_4); -x_18 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_16, x_1); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_17, x_1); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; -lean_dec(x_16); +lean_object* x_20; lean_object* x_21; +lean_dec(x_17); lean_dec(x_1); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_18, 0); -lean_inc(x_21); -lean_dec(x_18); -lean_inc(x_21); -x_22 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_16, x_21, x_21, x_2, x_17); -lean_dec(x_21); -lean_dec(x_16); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; +lean_inc(x_22); +x_24 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_17, x_23, x_22, x_22, x_2, x_18); lean_dec(x_22); -x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); -lean_closure_set(x_25, 0, x_1); -lean_closure_set(x_25, 1, x_23); -x_26 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_25, x_2, x_24); -return x_26; +lean_dec(x_17); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); +lean_closure_set(x_27, 0, x_1); +lean_closure_set(x_27, 1, x_25); +x_28 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_27, x_2, x_26); +return x_28; } } } @@ -11770,16 +14468,17 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___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_7; -x_7 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_object* x_8; +x_8 = l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_8; } } lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -12063,7 +14762,2477 @@ goto _start; } } } -lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} +lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -12082,7 +17251,7 @@ x_7 = lean_ctor_get(x_4, 3); lean_inc(x_7); lean_dec(x_4); lean_inc(x_2); -x_8 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_2, x_3, x_5); +x_8 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(x_1, x_2, x_3, x_5); lean_inc(x_6); lean_inc(x_2); x_9 = l_Lean_LocalContext_contains(x_2, x_6); @@ -12116,7 +17285,7 @@ goto _start; } } } -static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1() { +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1() { _start: { lean_object* x_1; @@ -12124,7 +17293,7 @@ x_1 = lean_mk_string("Init.Data.Option.BasicAux"); return x_1; } } -static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2() { +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2() { _start: { lean_object* x_1; @@ -12132,7 +17301,7 @@ x_1 = lean_mk_string("Option.get!"); return x_1; } } -static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3() { +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3() { _start: { lean_object* x_1; @@ -12140,20 +17309,70 @@ x_1 = lean_mk_string("value is none"); return x_1; } } -static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4() { +static lean_object* _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1; -x_2 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2; +x_1 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1; +x_2 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2; x_3 = lean_unsigned_to_nat(16u); x_4 = lean_unsigned_to_nat(14u); -x_5 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3; +x_5 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6(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_4) == 0) +{ +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_ctor_get(x_6, 5); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_2, 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; +x_11 = l_Lean_instFVarIdSetInhabited; +x_12 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4; +x_13 = lean_panic_fn(x_11, x_12); +x_14 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_15 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(x_1, x_8, x_14, x_13); +x_16 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_5, x_9, x_15); +x_4 = x_7; +x_5 = x_16; +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_20 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(x_1, x_8, x_19, x_18); +x_21 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_5, x_9, x_20); +x_4 = x_7; +x_5 = x_21; +goto _start; +} +} +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12177,12 +17396,12 @@ x_9 = l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_Mut 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; -x_10 = l_Lean_NameSet_instInhabitedNameSet; -x_11 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4; +x_10 = l_Lean_instFVarIdSetInhabited; +x_11 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4; x_12 = lean_panic_fn(x_10, x_11); x_13 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; x_14 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(x_1, x_7, x_13, x_12); -x_15 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_8, x_14); +x_15 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_4, x_8, x_14); x_3 = x_6; x_4 = x_15; goto _start; @@ -12194,8 +17413,8 @@ x_17 = lean_ctor_get(x_9, 0); lean_inc(x_17); lean_dec(x_9); x_18 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; -x_19 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_7, x_18, x_17); -x_20 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_8, x_19); +x_19 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(x_1, x_7, x_18, x_17); +x_20 = l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_4, x_8, x_19); x_3 = x_6; x_4 = x_20; goto _start; @@ -12214,7 +17433,7 @@ lean_inc(x_5); x_8 = l_List_mapTRAux___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5, x_7); x_9 = l_Lean_Elab_Term_MutualClosure_FixPoint_run(x_8, x_6); x_10 = lean_box(0); -x_11 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_4, x_9, x_5, x_10); +x_11 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__7(x_4, x_9, x_5, x_10); lean_dec(x_9); lean_dec(x_4); return x_11; @@ -12229,20 +17448,31 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___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_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___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_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6(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_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___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_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__7(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; @@ -13287,7 +18517,7 @@ lean_dec(x_13); x_28 = !lean_is_exclusive(x_14); if (x_28 == 0) { -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; uint8_t x_37; +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_14, 2); x_30 = lean_ctor_get(x_14, 3); x_31 = lean_ctor_get(x_14, 4); @@ -13301,9 +18531,9 @@ lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -x_37 = l_Lean_NameSet_contains(x_35, x_2); +x_37 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_35, x_2); lean_dec(x_35); -if (x_37 == 0) +if (lean_obj_tag(x_37) == 0) { uint8_t x_38; lean_object* x_39; lean_free_object(x_14); @@ -13358,6 +18588,7 @@ return x_46; else { lean_object* x_47; +lean_dec(x_37); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -13567,7 +18798,7 @@ return x_116; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; x_117 = lean_ctor_get(x_14, 2); x_118 = lean_ctor_get(x_14, 3); x_119 = lean_ctor_get(x_14, 4); @@ -13581,9 +18812,9 @@ lean_inc(x_121); x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); lean_dec(x_120); -x_123 = l_Lean_NameSet_contains(x_121, x_2); +x_123 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_121, x_2); lean_dec(x_121); -if (x_123 == 0) +if (lean_obj_tag(x_123) == 0) { uint8_t x_124; lean_object* x_125; lean_dec(x_119); @@ -13639,6 +18870,7 @@ return x_132; else { lean_object* x_133; +lean_dec(x_123); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -14648,7 +19880,7 @@ lean_closure_set(x_13, 3, x_11); x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2___rarg), 9, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_15; } } @@ -14739,7 +19971,7 @@ if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_17 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; -x_18 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4; +x_18 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4; x_19 = lean_panic_fn(x_17, x_18); lean_inc(x_8); lean_inc(x_7); @@ -14966,7 +20198,7 @@ if (lean_obj_tag(x_58) == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; x_59 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; -x_60 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4; +x_60 = l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4; x_61 = lean_panic_fn(x_59, x_60); lean_inc(x_8); lean_inc(x_7); @@ -15237,7 +20469,7 @@ x_19 = lean_box(0); x_20 = l_Lean_mkConst(x_18, x_19); lean_inc(x_1); x_21 = l_Lean_mkAppN(x_20, x_1); -x_22 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_6, x_15, x_21); +x_22 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_6, x_15, x_21); x_5 = x_10; x_6 = x_22; goto _start; @@ -15297,7 +20529,7 @@ lean_dec(x_5); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); lean_dec(x_3); -x_8 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_1, x_6, x_7); +x_8 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_1, x_6, x_7); x_1 = x_8; x_2 = x_4; goto _start; @@ -16930,7 +22162,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_17 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_13, x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_17 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_13, x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; @@ -20793,7 +26025,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -22388,15 +27620,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -26843,19 +32066,21 @@ l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToL lean_mark_persistent(l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3); l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4 = _init_l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4(); lean_mark_persistent(l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4); -l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1(); -lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___closed__1); +l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__9___closed__1); l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default = _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default(); lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default); l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default = _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default(); -l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1(); -lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__1); -l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2(); -lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__2); -l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3(); -lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__3); -l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4(); -lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___closed__4); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1); +l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__1); +l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__2); +l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__3); +l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4 = _init_l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4(); +lean_mark_persistent(l_List_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___closed__4); l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default(); lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default); l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default(); diff --git a/stage0/stdlib/Lean/Elab/PatternVar.c b/stage0/stdlib/Lean/Elab/PatternVar.c index 87996194c7..76e3d5f345 100644 --- a/stage0/stdlib/Lean/Elab/PatternVar.c +++ b/stage0/stdlib/Lean/Elab/PatternVar.c @@ -451,7 +451,6 @@ uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4; lean_object* l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -10329,7 +10328,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -10698,15 +10697,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -11164,7 +11154,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternVars___spec__1___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index 6f176eba11..4475096a02 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -122,6 +122,7 @@ size_t lean_usize_modn(size_t, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__7___lambda__1___closed__4; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(lean_object*); @@ -182,7 +183,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1; static lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6___closed__1; -lean_object* l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___lambda__2(lean_object*, lean_object*); @@ -4786,7 +4786,7 @@ x_40 = l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__6(x_38, x x_41 = x_40; x_42 = lean_array_to_list(lean_box(0), x_41); x_43 = lean_box(0); -x_44 = l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(x_42, x_43); +x_44 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_42, x_43); x_45 = l_Lean_MessageData_ofList(x_44); lean_dec(x_44); x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index 5d0f420057..3edb82618c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -22,7 +22,6 @@ lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_shouldBetaReduce___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___spec__6(lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,6 +71,7 @@ uint8_t l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_c lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___rarg___closed__7; lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceIndPredRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,7 +162,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structu static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_mkBRecOn___lambda__9___closed__2; lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___rarg___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___rarg___lambda__1___closed__3; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___rarg___closed__3; @@ -238,6 +237,7 @@ static lean_object* l_Lean_Elab_Structural_instInhabitedM___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_toBelowAux___closed__5; static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_findRecArg_loop___rarg___lambda__1___closed__4; @@ -6614,7 +6614,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint x_38 = lean_ctor_get(x_32, 1); lean_inc(x_38); lean_dec(x_32); -x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_13, x_5, x_6, x_7, x_8, x_38); +x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_13, x_5, x_6, x_7, x_8, x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -6659,7 +6659,7 @@ x_25 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_fi x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_13, x_26, x_5, x_6, x_7, x_8, x_15); +x_27 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_13, x_26, x_5, x_6, x_7, x_8, x_15); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -7070,7 +7070,7 @@ lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint x_33 = lean_ctor_get(x_27, 1); lean_inc(x_33); lean_dec(x_27); -x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_12, x_4, x_5, x_6, x_7, x_33); +x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_12, x_4, x_5, x_6, x_7, x_33); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -7105,7 +7105,7 @@ x_20 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_fi x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_12, x_21, x_4, x_5, x_6, x_7, x_14); +x_22 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_12, x_21, x_4, x_5, x_6, x_7, x_14); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index 0da1814e55..415c7fe91e 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Command_CollectAxioms_collect_match__1(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__4; @@ -146,6 +145,7 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__8; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__1; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); @@ -170,7 +170,6 @@ static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknow lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabPrint___closed__10; -lean_object* l_List_mapTRAux___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); @@ -5345,56 +5344,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Print_0__Lean_Elab_Comman return x_2; } } -lean_object* l_List_mapTRAux___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__1() { _start: { @@ -5479,7 +5428,7 @@ lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); x_19 = lean_array_to_list(lean_box(0), x_12); x_20 = lean_box(0); -x_21 = l_List_mapTRAux___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(x_19, x_20); +x_21 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_19, x_20); x_22 = l_Lean_MessageData_ofList(x_21); lean_dec(x_21); x_23 = lean_alloc_ctor(10, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Quotation/Precheck.c b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c index 6c46080bc2..a6bdbbfe2b 100644 --- a/stage0/stdlib/Lean/Elab/Quotation/Precheck.c +++ b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c @@ -115,7 +115,6 @@ lean_object* l_Lean_Elab_Term_Quotation_precheckAttribute___lambda__5(lean_objec lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_precheck_hasQuotedIdent_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Quotation_precheckParen___closed__1; static lean_object* l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__14; static lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_71____closed__2; @@ -2013,7 +2012,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_7, 5); lean_inc(x_15); lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__1___boxed), 4, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__1), 4, 1); lean_closure_set(x_16, 0, x_13); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -2888,15 +2887,6 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_precheck___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 4aab0ff9ff..d3246c5618 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -537,7 +537,6 @@ uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Lean_Elab_throwAbortTerm___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_findField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_instToFormatFieldLHS(lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_instToStringStruct___closed__2; extern lean_object* l_Lean_Expr_FindImpl_initCache; @@ -24822,7 +24821,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -25475,15 +25474,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__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_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 3476f4b5bb..b52fcec821 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -43,6 +43,7 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1; +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,7 +77,6 @@ lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instanti static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -107,8 +107,8 @@ static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__L lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__1___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__4; -lean_object* l_Std_RBNode_find___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f_match__2(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,6 +310,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsF static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__3___closed__4; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); @@ -318,7 +319,6 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C static lean_object* l_Lean_Elab_Command_elabStructure___closed__9; lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -881,7 +881,6 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__5; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__2; @@ -1843,7 +1842,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -4442,15 +4441,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__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_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -10608,7 +10598,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType(l _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; -x_10 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_8, x_9); +x_10 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -11117,7 +11107,7 @@ goto _start; else { lean_object* x_27; -x_27 = l_Std_RBNode_find___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__1(x_1, x_13); +x_27 = l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2(x_1, x_13); lean_dec(x_13); if (lean_obj_tag(x_27) == 0) { @@ -11920,7 +11910,7 @@ else { lean_object* x_16; lean_object* x_17; x_16 = lean_array_uget(x_3, x_5); -x_17 = l_Std_RBNode_find___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__1(x_2, x_16); +x_17 = l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2(x_2, x_16); lean_dec(x_16); if (lean_obj_tag(x_17) == 0) { @@ -18484,11 +18474,11 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_r _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -18627,7 +18617,7 @@ x_18 = lean_ctor_get(x_14, 1); lean_inc(x_18); lean_dec(x_14); x_19 = lean_apply_1(x_4, x_18); -x_20 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_16, x_17, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_20 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_16, x_17, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_15); return x_20; } else @@ -22829,7 +22819,7 @@ lean_object* x_16; lean_object* x_17; lean_dec(x_13); lean_dec(x_2); x_16 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___closed__1; -x_17 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_1, x_11, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_17 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_1, x_11, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_17; } else @@ -22842,7 +22832,7 @@ lean_object* x_19; lean_object* x_20; lean_dec(x_13); lean_dec(x_2); x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___closed__1; -x_20 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_1, x_11, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_20 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_1, x_11, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_20; } else @@ -22858,7 +22848,7 @@ lean_closure_set(x_25, 0, x_2); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_24); lean_closure_set(x_25, 3, x_22); -x_26 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_1, x_11, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_26 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_1, x_11, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_26; } } diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 50eb2e20d9..ec9c545179 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -190,7 +190,6 @@ uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*); extern lean_object* l_Lean_nameLitKind; lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__1; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processSeq___lambda__1___boxed__const__1; static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__18; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__84; @@ -309,7 +308,6 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__13; static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__7; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_visit_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; @@ -384,6 +382,7 @@ extern lean_object* l_Lean_instInhabitedSyntax; lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___closed__3; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__87; +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__92; lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2105,7 +2104,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_8, 5); lean_inc(x_16); lean_inc(x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_14); lean_inc(x_15); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -2867,15 +2866,6 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -7702,56 +7692,6 @@ goto _start; } } } -lean_object* l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} static lean_object* _init_l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__1() { _start: { @@ -8580,7 +8520,7 @@ lean_inc(x_239); lean_dec(x_13); x_240 = lean_box(0); x_241 = l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__2(x_14, x_240); -x_242 = l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(x_241, x_240); +x_242 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_241, x_240); x_243 = l_Lean_MessageData_ofList(x_242); lean_dec(x_242); x_244 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__20; @@ -8681,7 +8621,7 @@ lean_inc(x_263); lean_dec(x_13); x_264 = lean_box(0); x_265 = l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__2(x_14, x_264); -x_266 = l_List_mapTRAux___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(x_265, x_264); +x_266 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_265, x_264); x_267 = l_Lean_MessageData_ofList(x_266); lean_dec(x_266); x_268 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__20; @@ -8871,7 +8811,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -15239,7 +15179,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -15561,7 +15501,7 @@ x_16 = lean_ctor_get(x_14, 3); lean_inc(x_16); lean_dec(x_14); lean_inc(x_8); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_8); lean_inc(x_12); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 50c521d3ba..d3d2d692b0 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -55,7 +55,6 @@ lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_instHashableName; lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__2___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__3___closed__4; @@ -171,6 +170,7 @@ lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, le lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__9; +extern lean_object* l_Lean_instHashableMVarId; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__2___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__3___closed__7; lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,6 +210,7 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostpo lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqMVarId; lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__2___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__3___closed__10; @@ -301,7 +302,6 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesi static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar_match__1(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: @@ -988,8 +988,8 @@ x_117 = lean_unsigned_to_nat(1u); x_118 = lean_nat_sub(x_103, x_117); lean_dec(x_103); x_119 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_102, x_118); -x_120 = l_Lean_Name_instBEqName; -x_121 = l_Lean_instHashableName; +x_120 = l_Lean_instBEqMVarId; +x_121 = l_Lean_instHashableMVarId; x_122 = l_Std_PersistentHashMap_insert___rarg(x_120, x_121, x_101, x_1, x_119); lean_ctor_set(x_96, 1, x_88); lean_ctor_set(x_96, 0, x_122); @@ -1087,8 +1087,8 @@ x_148 = lean_unsigned_to_nat(1u); x_149 = lean_nat_sub(x_137, x_148); lean_dec(x_137); x_150 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_136, x_149); -x_151 = l_Lean_Name_instBEqName; -x_152 = l_Lean_instHashableName; +x_151 = l_Lean_instBEqMVarId; +x_152 = l_Lean_instHashableMVarId; x_153 = l_Std_PersistentHashMap_insert___rarg(x_151, x_152, x_135, x_1, x_150); x_154 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_154, 0, x_153); @@ -1210,8 +1210,8 @@ x_183 = lean_unsigned_to_nat(1u); x_184 = lean_nat_sub(x_171, x_183); lean_dec(x_171); x_185 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_169, x_184); -x_186 = l_Lean_Name_instBEqName; -x_187 = l_Lean_instHashableName; +x_186 = l_Lean_instBEqMVarId; +x_187 = l_Lean_instHashableMVarId; x_188 = l_Std_PersistentHashMap_insert___rarg(x_186, x_187, x_168, x_1, x_185); if (lean_is_scalar(x_170)) { x_189 = lean_alloc_ctor(0, 2, 1); @@ -1329,8 +1329,8 @@ x_220 = lean_unsigned_to_nat(1u); x_221 = lean_nat_sub(x_212, x_220); lean_dec(x_212); x_222 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_211, x_221); -x_223 = l_Lean_Name_instBEqName; -x_224 = l_Lean_instHashableName; +x_223 = l_Lean_instBEqMVarId; +x_224 = l_Lean_instHashableMVarId; x_225 = l_Std_PersistentHashMap_insert___rarg(x_223, x_224, x_210, x_1, x_222); lean_ctor_set(x_205, 1, x_88); lean_ctor_set(x_205, 0, x_225); @@ -1415,8 +1415,8 @@ x_242 = lean_unsigned_to_nat(1u); x_243 = lean_nat_sub(x_234, x_242); lean_dec(x_234); x_244 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_233, x_243); -x_245 = l_Lean_Name_instBEqName; -x_246 = l_Lean_instHashableName; +x_245 = l_Lean_instBEqMVarId; +x_246 = l_Lean_instHashableMVarId; x_247 = l_Std_PersistentHashMap_insert___rarg(x_245, x_246, x_232, x_1, x_244); x_248 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_248, 0, x_247); @@ -1530,8 +1530,8 @@ x_271 = lean_unsigned_to_nat(1u); x_272 = lean_nat_sub(x_262, x_271); lean_dec(x_262); x_273 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_260, x_272); -x_274 = l_Lean_Name_instBEqName; -x_275 = l_Lean_instHashableName; +x_274 = l_Lean_instBEqMVarId; +x_275 = l_Lean_instHashableMVarId; x_276 = l_Std_PersistentHashMap_insert___rarg(x_274, x_275, x_259, x_1, x_273); if (lean_is_scalar(x_261)) { x_277 = lean_alloc_ctor(0, 2, 1); @@ -10283,8 +10283,8 @@ lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean x_93 = lean_nat_sub(x_81, x_10); lean_dec(x_81); x_94 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_80, x_93); -x_95 = l_Lean_Name_instBEqName; -x_96 = l_Lean_instHashableName; +x_95 = l_Lean_instBEqMVarId; +x_96 = l_Lean_instHashableMVarId; x_97 = l_Std_PersistentHashMap_insert___rarg(x_95, x_96, x_79, x_1, x_94); lean_ctor_set(x_74, 1, x_65); lean_ctor_set(x_74, 0, x_97); @@ -10376,8 +10376,8 @@ lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; x_120 = lean_nat_sub(x_110, x_10); lean_dec(x_110); x_121 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_109, x_120); -x_122 = l_Lean_Name_instBEqName; -x_123 = l_Lean_instHashableName; +x_122 = l_Lean_instBEqMVarId; +x_123 = l_Lean_instHashableMVarId; x_124 = l_Std_PersistentHashMap_insert___rarg(x_122, x_123, x_108, x_1, x_121); x_125 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_125, 0, x_124); @@ -10494,8 +10494,8 @@ lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; x_152 = lean_nat_sub(x_141, x_10); lean_dec(x_141); x_153 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_139, x_152); -x_154 = l_Lean_Name_instBEqName; -x_155 = l_Lean_instHashableName; +x_154 = l_Lean_instBEqMVarId; +x_155 = l_Lean_instHashableMVarId; x_156 = l_Std_PersistentHashMap_insert___rarg(x_154, x_155, x_138, x_1, x_153); if (lean_is_scalar(x_140)) { x_157 = lean_alloc_ctor(0, 2, 1); @@ -10613,8 +10613,8 @@ lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; x_186 = lean_nat_sub(x_178, x_10); lean_dec(x_178); x_187 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_177, x_186); -x_188 = l_Lean_Name_instBEqName; -x_189 = l_Lean_instHashableName; +x_188 = l_Lean_instBEqMVarId; +x_189 = l_Lean_instHashableMVarId; x_190 = l_Std_PersistentHashMap_insert___rarg(x_188, x_189, x_176, x_1, x_187); lean_ctor_set(x_171, 1, x_65); lean_ctor_set(x_171, 0, x_190); @@ -10696,8 +10696,8 @@ lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; x_207 = lean_nat_sub(x_199, x_10); lean_dec(x_199); x_208 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_198, x_207); -x_209 = l_Lean_Name_instBEqName; -x_210 = l_Lean_instHashableName; +x_209 = l_Lean_instBEqMVarId; +x_210 = l_Lean_instHashableMVarId; x_211 = l_Std_PersistentHashMap_insert___rarg(x_209, x_210, x_197, x_1, x_208); x_212 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_212, 0, x_211); @@ -10808,8 +10808,8 @@ lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; x_235 = lean_nat_sub(x_226, x_10); lean_dec(x_226); x_236 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_224, x_235); -x_237 = l_Lean_Name_instBEqName; -x_238 = l_Lean_instHashableName; +x_237 = l_Lean_instBEqMVarId; +x_238 = l_Lean_instHashableMVarId; x_239 = l_Std_PersistentHashMap_insert___rarg(x_237, x_238, x_223, x_1, x_236); if (lean_is_scalar(x_225)) { x_240 = lean_alloc_ctor(0, 2, 1); @@ -11199,8 +11199,8 @@ lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; x_322 = lean_nat_sub(x_311, x_10); lean_dec(x_311); x_323 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_309, x_322); -x_324 = l_Lean_Name_instBEqName; -x_325 = l_Lean_instHashableName; +x_324 = l_Lean_instBEqMVarId; +x_325 = l_Lean_instHashableMVarId; x_326 = l_Std_PersistentHashMap_insert___rarg(x_324, x_325, x_308, x_1, x_323); if (lean_is_scalar(x_310)) { x_327 = lean_alloc_ctor(0, 2, 1); @@ -11359,8 +11359,8 @@ lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; x_362 = lean_nat_sub(x_353, x_10); lean_dec(x_353); x_363 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_351, x_362); -x_364 = l_Lean_Name_instBEqName; -x_365 = l_Lean_instHashableName; +x_364 = l_Lean_instBEqMVarId; +x_365 = l_Lean_instHashableMVarId; x_366 = l_Std_PersistentHashMap_insert___rarg(x_364, x_365, x_350, x_1, x_363); if (lean_is_scalar(x_352)) { x_367 = lean_alloc_ctor(0, 2, 1); diff --git a/stage0/stdlib/Lean/Elab/Tactic.c b/stage0/stdlib/Lean/Elab/Tactic.c index 0aa9f99a19..78cb54011a 100644 --- a/stage0/stdlib/Lean/Elab/Tactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic -// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.Simp Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv +// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.Simp Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -27,6 +27,7 @@ lean_object* initialize_Lean_Elab_Tactic_Simp(lean_object*); lean_object* initialize_Lean_Elab_Tactic_BuiltinTactic(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Split(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Conv(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Delta(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Tactic(lean_object* w) { lean_object * res; @@ -74,6 +75,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Conv(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Delta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 5fa4a4269e..d178d23ce4 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -382,7 +382,6 @@ lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_ob lean_object* l_Lean_Elab_Tactic_instInhabitedState; static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__3; static lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__3; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5675,7 +5674,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_8, 5); lean_inc(x_16); lean_inc(x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_14); lean_inc(x_15); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -6292,7 +6291,6 @@ lean_inc(x_1); x_19 = l_Lean_Syntax_getKind(x_1); x_20 = l_Lean_Elab_Tactic_tacticElabAttribute; x_21 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_20, x_18, x_19); -lean_dec(x_18); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; @@ -6874,7 +6872,6 @@ lean_inc(x_1); x_15 = l_Lean_Syntax_getKind(x_1); x_16 = l_Lean_Elab_macroAttribute; x_17 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_16, x_14, x_15); -lean_dec(x_14); x_18 = l_Lean_Elab_Tactic_expandTacticMacroFns_loop(x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); return x_18; } @@ -6967,15 +6964,6 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c index c77c7c5ba7..240a5f53d0 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c @@ -434,6 +434,7 @@ lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object* static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__2; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__24; +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_renameInaccessibles___closed__1; lean_object* l_Lean_Elab_Tactic_evalIntroMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -523,7 +524,6 @@ static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spe lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* l_Lean_Elab_Tactic_evalIntro_introStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__10; @@ -11880,7 +11880,7 @@ return x_9; else { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Lean_instInhabitedName; +x_10 = l_Lean_instInhabitedFVarId; x_11 = lean_array_get(x_10, x_4, x_6); lean_inc(x_1); lean_inc(x_3); @@ -11996,7 +11996,7 @@ x_16 = lean_nat_add(x_3, x_4); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_div(x_16, x_17); lean_dec(x_16); -x_87 = l_Lean_instInhabitedName; +x_87 = l_Lean_instInhabitedFVarId; x_88 = lean_array_get(x_87, x_2, x_18); x_89 = lean_array_get(x_87, x_2, x_3); lean_inc(x_88); @@ -12080,7 +12080,7 @@ goto block_86; block_86: { lean_object* x_20; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_46 = l_Lean_instInhabitedName; +x_46 = l_Lean_instInhabitedFVarId; x_47 = lean_array_get(x_46, x_19, x_4); x_71 = lean_array_get(x_46, x_19, x_3); lean_inc(x_47); @@ -12172,7 +12172,7 @@ block_45: 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_dec(x_20); x_21 = lean_array_swap(x_19, x_3, x_4); -x_22 = l_Lean_instInhabitedName; +x_22 = l_Lean_instInhabitedFVarId; x_23 = lean_array_get(x_22, x_21, x_18); x_24 = lean_array_get(x_22, x_21, x_4); lean_inc(x_23); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv.c b/stage0/stdlib/Lean/Elab/Tactic/Conv.c index a26f8610ef..766852e815 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Conv -// Imports: Init Lean.Elab.Tactic.Conv.Basic Lean.Elab.Tactic.Conv.Congr Lean.Elab.Tactic.Conv.Rewrite Lean.Elab.Tactic.Conv.Change Lean.Elab.Tactic.Conv.Simp Lean.Elab.Tactic.Conv.Pattern +// Imports: Init Lean.Elab.Tactic.Conv.Basic Lean.Elab.Tactic.Conv.Congr Lean.Elab.Tactic.Conv.Rewrite Lean.Elab.Tactic.Conv.Change Lean.Elab.Tactic.Conv.Simp Lean.Elab.Tactic.Conv.Pattern Lean.Elab.Tactic.Conv.Delta #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -20,6 +20,7 @@ lean_object* initialize_Lean_Elab_Tactic_Conv_Rewrite(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Conv_Change(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Conv_Simp(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Conv_Pattern(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Conv_Delta(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Tactic_Conv(lean_object* w) { lean_object * res; @@ -46,6 +47,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Conv_Pattern(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Conv_Delta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c index 0893cf84a0..9d1807e3f4 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Conv.Basic -// Imports: Init Lean.Meta.Tactic.Apply Lean.Meta.Tactic.Replace Lean.Elab.Tactic.Basic Lean.Elab.Tactic.BuiltinTactic +// Imports: Init Lean.Meta.Reduce Lean.Meta.Tactic.Apply Lean.Meta.Tactic.Replace Lean.Elab.Tactic.Basic Lean.Elab.Tactic.BuiltinTactic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -28,7 +28,9 @@ lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented(lean_object*, lean_object extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Tactic_Conv_remarkAsConvGoal___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5; lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTacticCore___closed__3; lean_object* l_Lean_Elab_Tactic_Conv_evalParen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalNestedTactic___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -37,6 +39,7 @@ lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedConv(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__15; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__5; +static lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__12; lean_object* l_Lean_Elab_Tactic_Conv_evalConv_match__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConv___closed__2; @@ -58,6 +61,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConv___closed__1; lean_object* l_Lean_Elab_Tactic_Conv_changeLhs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__13; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalConv(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -68,12 +72,14 @@ static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___c static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__2; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__2; lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce(lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__8; lean_object* l_Lean_Expr_mdataExpr_x21(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalWhnf(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3; lean_object* l_Lean_Meta_replaceLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalNestedTacticCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__5; @@ -107,10 +113,12 @@ lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(lean_object*, lean_object*, le lean_object* l_Lean_Elab_Tactic_Conv_evalNestedTactic___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTacticCore___closed__5; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2; lean_object* l_Lean_Elab_Tactic_Conv_mkConvGoalFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convTarget___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4; static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; lean_object* l_Lean_Elab_Tactic_getGoals___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__7; @@ -128,6 +136,7 @@ lean_object* l_Lean_Elab_Tactic_Conv_markAsConvGoal(lean_object*, lean_object*, static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__9; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__3; lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__8; static lean_object* l_Lean_Elab_Tactic_Conv_getLhsRhsCore___lambda__1___closed__2; static lean_object* l_Lean_Elab_Tactic_Conv_convert___closed__4; @@ -190,6 +199,7 @@ static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___c lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic___closed__5; +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce(lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalConv_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_Conv_getLhsRhsCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___closed__1; @@ -239,6 +249,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__5; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__19; +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_getLhsRhsCore_match__1(lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalWhnf___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -249,6 +260,7 @@ static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__5; lean_object* l_Lean_Elab_Tactic_Conv_evalNestedTactic_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalConv_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__11; +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__16; lean_object* l_Lean_Elab_Tactic_Conv_getLhsRhsCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___rarg(lean_object*); @@ -2282,6 +2294,197 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_Elab_Tactic_Conv_getLhs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Meta_reduce(x_11, x_13, x_13, x_13, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Elab_Tactic_Conv_changeLhs(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_10); +if (x_22 == 0) +{ +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalReduce___rarg___lambda__1), 9, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1; +x_11 = l_Lean_Elab_Tactic_withMainContext___rarg(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalReduce___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_Conv_evalReduce(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("reduce"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__8; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("evalReduce"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__14; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalReduce___boxed), 1, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeq1Indented(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -5329,6 +5532,7 @@ return x_6; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_Reduce(lean_object*); lean_object* initialize_Lean_Meta_Tactic_Apply(lean_object*); lean_object* initialize_Lean_Meta_Tactic_Replace(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Basic(lean_object*); @@ -5341,6 +5545,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Reduce(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Apply(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -5412,6 +5619,21 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__17) res = l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1 = _init_l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_Conv_evalReduce___rarg___closed__1); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__5); +res = l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__1); l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c index c152851042..63c0f75fda 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c @@ -17,7 +17,6 @@ lean_object* l_Lean_Elab_Tactic_Conv_isImplies(lean_object*, lean_object*, lean_ lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalCongr___closed__6; static lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_congrApp___closed__1; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_extCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalExt___closed__5; @@ -39,6 +38,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalCongr___closed__3; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalExt___closed__1; lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_congrApp___spec__2___closed__2; lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_extCore_match__4(lean_object*); uint8_t l_Lean_Expr_isArrow(lean_object*); @@ -71,7 +71,6 @@ static lean_object* l_Lean_Elab_Tactic_Conv_congr___lambda__1___closed__2; static lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_extCore___lambda__2___closed__6; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalExt___closed__2; extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -95,6 +94,7 @@ lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_co extern lean_object* l_Lean_numLitKind; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_congrApp_match__2(lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalCongr___closed__10; lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalLhs(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalArg___closed__3; @@ -2466,7 +2466,7 @@ lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); lean_dec(x_33); -x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_15, x_2, x_3, x_4, x_5, x_39); +x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_15, x_2, x_3, x_4, x_5, x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -2510,7 +2510,7 @@ lean_ctor_set(x_26, 1, x_25); x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_21); -x_28 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_15, x_27, x_2, x_3, x_4, x_5, x_17); +x_28 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_15, x_27, x_2, x_3, x_4, x_5, x_17); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Delta.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Delta.c new file mode 100644 index 0000000000..f22968eac2 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Delta.c @@ -0,0 +1,462 @@ +// Lean compiler output +// Module: Lean.Elab.Tactic.Conv.Delta +// Imports: Init Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Conv.Basic +#include +#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 +uint8_t l_Lean_Elab_Tactic_Conv_evalDelta___lambda__1(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16; +lean_object* lean_name_mk_string(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2; +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_changeLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12; +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5; +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17; +lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10; +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13; +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_deltaExpand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11; +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7; +uint8_t l_Lean_Elab_Tactic_Conv_evalDelta___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = lean_name_eq(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_14 = l_Lean_Elab_Tactic_Conv_getLhs(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, 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; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalDelta___lambda__1___boxed), 2, 1); +lean_closure_set(x_17, 0, x_12); +lean_inc(x_9); +lean_inc(x_8); +x_18 = l_Lean_Meta_deltaExpand(x_15, x_17, x_8, x_9, x_16); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_Tactic_Conv_changeLhs(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_14); +if (x_26 == 0) +{ +return x_14; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +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 +{ +uint8_t x_30; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_11); +if (x_30 == 0) +{ +return x_11; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_11, 0); +x_32 = lean_ctor_get(x_11, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_11); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_unsigned_to_nat(1u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalDelta___lambda__2), 10, 1); +lean_closure_set(x_13, 0, x_12); +x_14 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalDelta___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_Tactic_Conv_evalDelta___lambda__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_Elab_Tactic_Conv_evalDelta___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_Conv_evalDelta(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Parser"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Tactic"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Conv"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Elab"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("evalDelta"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalDelta___boxed), 10, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10; +x_4 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16; +x_5 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Delta(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Conv_Basic(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_Tactic_Conv_Delta(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Delta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Conv_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__1); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__2); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__3); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__4); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__5); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__6); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__7); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__8); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__9); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__10); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__11); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__12); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__13); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__14); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__15); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__16); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta___closed__17); +res = l___regBuiltin_Lean_Elab_Tactic_Conv_evalDelta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c index b559db3b9e..4e2888999b 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___closed__2; static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___closed__1; @@ -46,7 +47,6 @@ lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_ lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_pre_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__1___closed__4; @@ -128,7 +128,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_getContext___rarg___closed__2; -x_2 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; +x_2 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; x_3 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c index 583d02e753..50ce8a5e4a 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Simp.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Conv.Simp -// Imports: Init Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Conv.Basic +// Imports: Init Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,39 +13,125 @@ #ifdef __cplusplus extern "C" { #endif +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__13; +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__3; lean_object* lean_name_mk_string(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__14; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__15; lean_object* l_Lean_Elab_Tactic_Conv_evalSimp_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_changeLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__4; lean_object* l_Lean_Elab_Tactic_Conv_evalSimp_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__17; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4; lean_object* l_Lean_Meta_Simp_Result_getProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__1; lean_object* l_Lean_Elab_Tactic_Conv_evalSimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalSimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch(lean_object*); +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__2; +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__11; +static lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__16; lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__5; +lean_object* l_Lean_Meta_Split_simpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_evalSimp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Conv_updateLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch(lean_object*); lean_object* l_Lean_Elab_Tactic_mkSimpContext(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__12; +lean_object* l_Lean_Elab_Tactic_Conv_applySimpResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__10; +lean_object* l_Lean_Elab_Tactic_Conv_applySimpResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = l_Lean_Elab_Tactic_Conv_changeLhs(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; +lean_dec(x_11); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_14 = l_Lean_Meta_Simp_Result_getProof(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_dec(x_1); +x_18 = l_Lean_Elab_Tactic_Conv_updateLhs(x_17, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} lean_object* l_Lean_Elab_Tactic_Conv_evalSimp_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -117,54 +203,18 @@ lean_inc(x_6); x_20 = l_Lean_Meta_simp(x_17, x_15, x_19, x_6, x_7, x_8, x_9, x_18); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; +lean_object* x_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_21, 1); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); lean_dec(x_20); -x_24 = lean_ctor_get(x_21, 0); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Elab_Tactic_Conv_changeLhs(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); -return x_25; +x_23 = l_Lean_Elab_Tactic_Conv_applySimpResult(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +return x_23; } else { -lean_object* x_26; lean_object* x_27; -lean_dec(x_22); -x_26 = lean_ctor_get(x_20, 1); -lean_inc(x_26); -lean_dec(x_20); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_21); -x_27 = l_Lean_Meta_Simp_Result_getProof(x_21, x_6, x_7, x_8, x_9, x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_ctor_get(x_21, 0); -lean_inc(x_30); -lean_dec(x_21); -x_31 = l_Lean_Elab_Tactic_Conv_updateLhs(x_30, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -return x_31; -} -else -{ -uint8_t x_32; -lean_dec(x_21); +uint8_t x_24; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -173,61 +223,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_32 = !lean_is_exclusive(x_27); -if (x_32 == 0) -{ -return x_27; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_27, 0); -x_34 = lean_ctor_get(x_27, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_27); -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 -{ -uint8_t x_36; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_36 = !lean_is_exclusive(x_20); -if (x_36 == 0) +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) { return x_20; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_20, 0); -x_38 = lean_ctor_get(x_20, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_20); -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; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } else { -uint8_t x_40; +uint8_t x_28; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -237,29 +255,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_40 = !lean_is_exclusive(x_16); -if (x_40 == 0) +x_28 = !lean_is_exclusive(x_16); +if (x_28 == 0) { return x_16; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_16, 0); -x_42 = lean_ctor_get(x_16, 1); -lean_inc(x_42); -lean_inc(x_41); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +lean_inc(x_30); +lean_inc(x_29); lean_dec(x_16); -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; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } else { -uint8_t x_44; +uint8_t x_32; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -268,23 +286,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_44 = !lean_is_exclusive(x_12); -if (x_44 == 0) +x_32 = !lean_is_exclusive(x_12); +if (x_32 == 0) { return x_12; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_12, 0); -x_46 = lean_ctor_get(x_12, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_12, 0); +x_34 = lean_ctor_get(x_12, 1); +lean_inc(x_34); +lean_inc(x_33); lean_dec(x_12); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +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; } } } @@ -474,8 +492,199 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_Elab_Tactic_Conv_getLhs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_13 = l_Lean_Meta_Split_simpMatch(x_11, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Elab_Tactic_Conv_applySimpResult(x_14, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_13); +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; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_10); +if (x_21 == 0) +{ +return x_10; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___lambda__1), 9, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1; +x_11 = l_Lean_Elab_Tactic_withMainContext___rarg(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_Conv_evalSimpMatch___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_Conv_evalSimpMatch(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpMatch"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__8; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("evalSimpMatch"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__14; +x_2 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalSimpMatch___boxed), 1, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Simp(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Split(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Conv_Basic(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Tactic_Conv_Simp(lean_object* w) { @@ -488,6 +697,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Simp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Split(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Conv_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -528,6 +740,21 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp___closed__17) res = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1 = _init_l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_Conv_evalSimpMatch___rarg___closed__1); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__1); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__2); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__3); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__4); +l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch___closed__5); +res = l___regBuiltin_Lean_Elab_Tactic_Conv_evalSimpMatch(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Tactic/Delta.c b/stage0/stdlib/Lean/Elab/Tactic/Delta.c new file mode 100644 index 0000000000..f74f412b9f --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Tactic/Delta.c @@ -0,0 +1,1843 @@ +// Lean compiler output +// Module: Lean.Elab.Tactic.Delta +// Imports: Init Lean.Meta.Tactic.Delta Lean.Elab.Tactic.Basic Lean.Elab.Tactic.Location +#include +#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_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1; +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalDelta___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Elab_Tactic_evalDelta(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_userName(lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(lean_object*, lean_object*); +extern lean_object* l_Std_Format_defWidth; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2; +lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(lean_object*); +lean_object* l_Lean_Elab_Tactic_evalDelta___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9; +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__4; +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalDelta___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__2; +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__5; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5; +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__3; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13; +lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta(lean_object*); +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3; +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__7; +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); +static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2; +lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3; +lean_object* lean_format_pretty(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1; +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__8; +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__6; +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_type(lean_object*); +static lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___closed__1; +lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3; +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7; +lean_object* l_Lean_Meta_replaceLocalDeclDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11; +lean_object* l_Lean_Meta_deltaExpand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_deltaTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12; +uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1; +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = lean_name_eq(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___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, 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) { +_start: +{ +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_14 = l_Lean_Meta_replaceLocalDeclDefEq(x_1, x_2, x_3, x_9, x_10, x_11, x_12, 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; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Tactic_replaceMainGoal(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +return x_14; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("delta"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("did not delta reduce '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' at '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_12 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_7); +lean_inc(x_2); +x_15 = l_Lean_Meta_getLocalDecl(x_2, x_7, x_8, x_9, x_10, x_14); +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; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_LocalDecl_type(x_16); +lean_inc(x_1); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1___boxed), 2, 1); +lean_closure_set(x_19, 0, x_1); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_18); +x_20 = l_Lean_Meta_deltaExpand(x_18, x_19, x_9, x_10, x_17); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_expr_eqv(x_21, x_18); +lean_dec(x_18); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_16); +lean_dec(x_1); +x_24 = lean_box(0); +x_25 = l_Lean_Elab_Tactic_deltaLocalDecl___lambda__2(x_13, x_2, x_21, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_21); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_26, 0, x_1); +x_27 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__4; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__6; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_LocalDecl_userName(x_16); +lean_dec(x_16); +x_32 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__8; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__2; +x_37 = lean_box(0); +x_38 = l_Lean_Meta_throwTacticEx___rarg(x_36, x_13, x_35, x_37, x_7, x_8, x_9, x_10, x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_38); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_20); +if (x_43 == 0) +{ +return x_20; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_20, 0); +x_45 = lean_ctor_get(x_20, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_20); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_15); +if (x_47 == 0) +{ +return x_15; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_15, 0); +x_49 = lean_ctor_get(x_15, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_15); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_12); +if (x_51 == 0) +{ +return x_12; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_12, 0); +x_53 = lean_ctor_get(x_12, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_12); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_Tactic_deltaLocalDecl___lambda__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_Elab_Tactic_deltaLocalDecl___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Tactic_deltaLocalDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_14; +} +} +lean_object* l_Lean_Elab_Tactic_deltaTarget___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_13 = l_Lean_Meta_replaceTargetDefEq(x_1, x_2, x_8, x_9, x_10, x_11, 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; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Elab_Tactic_replaceMainGoal(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) +{ +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_deltaTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_14 = l_Lean_Elab_Tactic_getMainTarget(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, 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; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_deltaLocalDecl___lambda__1___boxed), 2, 1); +lean_closure_set(x_17, 0, x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_15); +x_18 = l_Lean_Meta_deltaExpand(x_15, x_17, x_8, x_9, x_16); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_expr_eqv(x_19, x_15); +lean_dec(x_15); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_1); +x_22 = lean_box(0); +x_23 = l_Lean_Elab_Tactic_deltaTarget___lambda__1(x_12, x_19, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +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; lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_dec(x_19); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_24, 0, x_1); +x_25 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__4; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__8; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__2; +x_30 = lean_box(0); +x_31 = l_Lean_Meta_throwTacticEx___rarg(x_29, x_12, x_28, x_30, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +return x_31; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_31); +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 +{ +uint8_t x_36; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_18); +if (x_36 == 0) +{ +return x_18; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_18, 0); +x_38 = lean_ctor_get(x_18, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_18); +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 +{ +uint8_t x_40; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_14); +if (x_40 == 0) +{ +return x_14; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_14, 0); +x_42 = lean_ctor_get(x_14, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_14); +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 +{ +uint8_t x_44; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_11); +if (x_44 == 0) +{ +return x_11; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_11, 0); +x_46 = lean_ctor_get(x_11, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_11); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_deltaTarget___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_deltaTarget___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_3); +return x_13; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 3); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +lean_inc(x_11); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 3); +x_14 = l_Lean_replaceRef(x_1, x_13); +lean_dec(x_13); +lean_dec(x_1); +lean_ctor_set(x_9, 3, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_9, 2); +x_19 = lean_ctor_get(x_9, 3); +x_20 = lean_ctor_get(x_9, 4); +x_21 = lean_ctor_get(x_9, 5); +x_22 = lean_ctor_get(x_9, 6); +x_23 = lean_ctor_get(x_9, 7); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_24 = l_Lean_replaceRef(x_1, x_19); +lean_dec(x_19); +lean_dec(x_1); +x_25 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_25, 0, x_16); +lean_ctor_set(x_25, 1, x_17); +lean_ctor_set(x_25, 2, x_18); +lean_ctor_set(x_25, 3, x_24); +lean_ctor_set(x_25, 4, x_20); +lean_ctor_set(x_25, 5, x_21); +lean_ctor_set(x_25, 6, x_22); +lean_ctor_set(x_25, 7, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25, x_10, x_11); +lean_dec(x_10); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_26; +} +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +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_11, 0); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_8, 4); +lean_inc(x_15); +x_16 = lean_ctor_get(x_8, 5); +lean_inc(x_16); +lean_dec(x_8); +x_17 = l_Lean_ResolveName_resolveGlobalName(x_14, x_15, x_16, x_1); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +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_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_11); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_8, 4); +lean_inc(x_21); +x_22 = lean_ctor_get(x_8, 5); +lean_inc(x_22); +lean_dec(x_8); +x_23 = l_Lean_ResolveName_resolveGlobalName(x_20, x_21, x_22, x_1); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_19); +return x_24; +} +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unknown constant '"); +return x_1; +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_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_box(0); +x_12 = l_Lean_mkConst(x_1, x_11); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__8; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__2(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(x_1, x_2); +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* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_8); +lean_inc(x_1); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_box(0); +x_15 = l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(x_12, x_14); +x_16 = l_List_isEmpty___rarg(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_1); +x_17 = lean_box(0); +x_18 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___lambda__1(x_15, x_14, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_18; +} +else +{ +lean_object* x_19; uint8_t x_20; +lean_dec(x_15); +x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("expected identifier"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 3); +lean_inc(x_12); +x_13 = l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(x_12); +x_14 = l_List_isEmpty___rarg(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_10); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_8, 3); +x_18 = l_Lean_replaceRef(x_1, x_17); +lean_dec(x_17); +lean_dec(x_1); +lean_ctor_set(x_8, 3, x_18); +x_19 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +x_22 = lean_ctor_get(x_8, 2); +x_23 = lean_ctor_get(x_8, 3); +x_24 = lean_ctor_get(x_8, 4); +x_25 = lean_ctor_get(x_8, 5); +x_26 = lean_ctor_get(x_8, 6); +x_27 = lean_ctor_get(x_8, 7); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_8); +x_28 = l_Lean_replaceRef(x_1, x_23); +lean_dec(x_23); +lean_dec(x_1); +x_29 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_29, 0, x_20); +lean_ctor_set(x_29, 1, x_21); +lean_ctor_set(x_29, 2, x_22); +lean_ctor_set(x_29, 3, x_28); +lean_ctor_set(x_29, 4, x_24); +lean_ctor_set(x_29, 5, x_25); +lean_ctor_set(x_29, 6, x_26); +lean_ctor_set(x_29, 7, x_27); +x_30 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_29, x_9, x_10); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3; +x_32 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__3(x_1, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_32; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 3); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +lean_inc(x_11); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 3); +x_14 = l_Lean_replaceRef(x_1, x_13); +lean_dec(x_13); +lean_dec(x_1); +lean_ctor_set(x_9, 3, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_9, 2); +x_19 = lean_ctor_get(x_9, 3); +x_20 = lean_ctor_get(x_9, 4); +x_21 = lean_ctor_get(x_9, 5); +x_22 = lean_ctor_get(x_9, 6); +x_23 = lean_ctor_get(x_9, 7); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_24 = l_Lean_replaceRef(x_1, x_19); +lean_dec(x_19); +lean_dec(x_1); +x_25 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_25, 0, x_16); +lean_ctor_set(x_25, 1, x_17); +lean_ctor_set(x_25, 2, x_18); +lean_ctor_set(x_25, 3, x_24); +lean_ctor_set(x_25, 4, x_20); +lean_ctor_set(x_25, 5, x_21); +lean_ctor_set(x_25, 6, x_22); +lean_ctor_set(x_25, 7, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25, x_10, x_11); +lean_dec(x_10); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_26; +} +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ambiguous identifier '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', possible interpretations: "); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_11 = l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_box(0); +x_15 = 0; +x_16 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_17 = l_Lean_Syntax_formatStxAux(x_14, x_15, x_16, x_1); +x_18 = l_Std_Format_defWidth; +x_19 = lean_format_pretty(x_17, x_18); +x_20 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +x_22 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2; +x_23 = lean_string_append(x_21, x_22); +x_24 = lean_box(0); +x_25 = l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_24); +x_26 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_25); +x_27 = lean_string_append(x_23, x_26); +lean_dec(x_26); +x_28 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3; +x_29 = lean_string_append(x_27, x_28); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__8(x_1, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_32; +} +else +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_12, 1); +lean_inc(x_33); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_11); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_11, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_12, 0); +lean_inc(x_36); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_36); +return x_11; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_11, 1); +lean_inc(x_37); +lean_dec(x_11); +x_38 = lean_ctor_get(x_12, 0); +lean_inc(x_38); +lean_dec(x_12); +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 +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_33); +x_40 = lean_ctor_get(x_11, 1); +lean_inc(x_40); +lean_dec(x_11); +x_41 = lean_box(0); +x_42 = 0; +x_43 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_44 = l_Lean_Syntax_formatStxAux(x_41, x_42, x_43, x_1); +x_45 = l_Std_Format_defWidth; +x_46 = lean_format_pretty(x_44, x_45); +x_47 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1; +x_48 = lean_string_append(x_47, x_46); +lean_dec(x_46); +x_49 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2; +x_50 = lean_string_append(x_48, x_49); +x_51 = lean_box(0); +x_52 = l_List_mapTRAux___at_Lean_resolveGlobalConstNoOverload___spec__1(x_12, x_51); +x_53 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_52); +x_54 = lean_string_append(x_50, x_53); +lean_dec(x_53); +x_55 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3; +x_56 = lean_string_append(x_54, x_55); +x_57 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalDelta___spec__8(x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_11); +if (x_60 == 0) +{ +return x_11; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_11, 0); +x_62 = lean_ctor_get(x_11, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_11); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_evalDelta___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +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_12 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__4; +x_14 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__8; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__2; +x_18 = lean_box(0); +x_19 = l_Lean_Meta_throwTacticEx___rarg(x_17, x_2, x_16, x_18, x_7, x_8, x_9, x_10, x_11); +return x_19; +} +} +lean_object* l_Lean_Elab_Tactic_evalDelta(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_unsigned_to_nat(1u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_13 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_unsigned_to_nat(2u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); +x_18 = l_Lean_Elab_Tactic_expandOptLocation(x_17); +lean_dec(x_17); +lean_inc(x_14); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_deltaLocalDecl), 11, 1); +lean_closure_set(x_19, 0, x_14); +lean_inc(x_14); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_deltaTarget), 10, 1); +lean_closure_set(x_20, 0, x_14); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalDelta___lambda__1___boxed), 11, 1); +lean_closure_set(x_21, 0, x_14); +x_22 = l_Lean_Elab_Tactic_withLocation(x_18, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +lean_dec(x_18); +return x_22; +} +else +{ +uint8_t x_23; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_13); +if (x_23 == 0) +{ +return x_13; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalDelta___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalDelta___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_13; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_evalDelta___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Elab_Tactic_evalDelta___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Tactic_evalDelta___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} +lean_object* l_Lean_Elab_Tactic_evalDelta___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_evalDelta(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Parser"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Tactic"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6; +x_2 = l_Lean_Elab_Tactic_deltaLocalDecl___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Elab"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("evalDelta"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalDelta___boxed), 10, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDelta(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Delta(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Basic(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Location(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_Tactic_Delta(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Delta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Location(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__1 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__1); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__2 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__2); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__3 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__3); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__4 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__4); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__5 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__5); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__6 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__6); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__7 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__7); +l_Lean_Elab_Tactic_deltaLocalDecl___closed__8 = _init_l_Lean_Elab_Tactic_deltaLocalDecl___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_deltaLocalDecl___closed__8); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalDelta___spec__7___closed__2); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__1); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__2); +l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3 = _init_l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_evalDelta___spec__2___closed__3); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__1); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__2); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_evalDelta___spec__1___closed__3); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__1); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__2); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__3); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__4); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__5); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__6); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__7); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__8); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__9); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__10); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__11); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__12); +l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13 = _init_l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDelta___closed__13); +res = l___regBuiltin_Lean_Elab_Tactic_evalDelta(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index 42001605b9..385e678711 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -32,6 +32,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__1; lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -61,6 +62,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__3; static lean_object* l_Lean_Elab_Tactic_elabTermForApply___closed__1; lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize(lean_object*); lean_object* l_Lean_Elab_Tactic_evalDecide___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalRename(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalConstructor___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -71,12 +73,12 @@ lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___sp lean_object* l_Lean_Elab_Tactic_evalConstructor___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2; lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__2; lean_object* l_Lean_Elab_Tactic_evalNativeDecide___boxed(lean_object*); -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__3(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_filterOldMVars___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1; @@ -93,6 +95,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExistsIntro___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRefine(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalSpecialize_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExistsIntro___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalConstructor___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,6 +122,8 @@ lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___sp uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__2; static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___closed__1; +lean_object* l_Lean_Elab_Tactic_evalSpecialize_match__1___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___closed__2; lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRename___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__4; @@ -128,7 +133,9 @@ static lean_object* l_Lean_Elab_Tactic_evalExact___closed__2; static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__1; lean_object* l_Lean_Elab_Tactic_elabTermForApply_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRefine_x27___closed__3; +lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRename___closed__2; +lean_object* l_Lean_Expr_headBeta(lean_object*); lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances___closed__4; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -137,16 +144,20 @@ static lean_object* l_Lean_Elab_Tactic_evalExact___closed__4; lean_object* l_Lean_Elab_Tactic_evalConstructor___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4; static lean_object* l_Lean_Elab_Tactic_evalExact___closed__8; +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible(lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); extern lean_object* l_Lean_Elab_abortTacticExceptionId; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible___closed__1; lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalExact___closed__1; static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances___closed__1; +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_logUnassignedAndAbort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermForApply___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermForApply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -167,6 +178,7 @@ lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_logUnassignedAnd lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRefine_x27___closed__1; +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1(lean_object*); @@ -186,6 +198,7 @@ lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object*, lean lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27___closed__3; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1; lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalExistsIntro___closed__1; @@ -196,7 +209,6 @@ static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___clo static lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___lambda__2___closed__2; lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_filterOldMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,10 +222,12 @@ static lean_object* l_Lean_Elab_Tactic_evalApply___closed__3; static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__4; static lean_object* l_Lean_Elab_Tactic_evalRefine___closed__2; static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__7; +lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalWithReducible___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___closed__1; lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__2; uint8_t l_Lean_Expr_hasMVar(lean_object*); @@ -234,6 +248,7 @@ lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_logUnassignedAnd static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__2; lean_object* l_Lean_Elab_Tactic_evalDecide(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalExact___closed__5; +uint8_t l_Lean_Expr_isFVar(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__1; lean_object* l_Lean_Elab_Tactic_evalRefine_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27___closed__2; @@ -254,7 +269,7 @@ lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preproces lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Elab_Tactic_evalRename___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalExact___closed__3; -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApply___closed__1; @@ -265,6 +280,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalConstructor(lean_object*); lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; +lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -272,9 +288,11 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances(lean_ lean_object* l_Lean_Elab_Tactic_refineCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setUserName(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide___closed__3; +lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible___closed__2; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide___closed__2; static lean_object* l_Lean_Elab_Tactic_evalRename___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine(lean_object*); @@ -282,6 +300,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles__ lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_logUnassignedAndAbort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide___closed__1; static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___closed__1; lean_object* l_Lean_indentExpr(lean_object*); @@ -302,6 +321,7 @@ lean_object* l_Lean_Elab_Tactic_evalRename_match__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalConstructor___rarg___closed__1; lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalSpecialize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__3; lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_evalRename___spec__7(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3207,6 +3227,579 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* l_Lean_Elab_Tactic_evalSpecialize_match__1___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_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Tactic_evalSpecialize_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSpecialize_match__1___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("specialize"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'specialize' requires a term of the form `h x_1 .. x_n` where `h` appears in the local context"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_evalSpecialize___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_Elab_Tactic_getMainTarget(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, 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; uint8_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_12); +x_15 = l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2; +x_16 = 1; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l_Lean_Elab_Tactic_elabTermWithHoles(x_1, x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = l_Lean_Expr_getAppFn(x_20); +x_23 = l_Lean_Expr_isFVar(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +x_24 = l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4; +x_25 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_Expr_fvarId_x21(x_22); +lean_dec(x_22); +lean_inc(x_6); +lean_inc(x_26); +x_27 = l_Lean_Meta_getLocalDecl(x_26, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_30 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_20); +x_33 = lean_infer_type(x_20, x_6, x_7, x_8, x_9, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_LocalDecl_userName(x_28); +lean_dec(x_28); +x_37 = l_Lean_Expr_headBeta(x_34); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_38 = l_Lean_Meta_assert(x_31, x_36, x_37, x_20, x_6, x_7, x_8, x_9, x_35); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_41 = l_Lean_Meta_intro1Core(x_39, x_16, x_6, x_7, x_8, x_9, x_40); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_45 = l_Lean_Meta_tryClear(x_44, x_26, x_6, x_7, x_8, x_9, x_43); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_21); +x_49 = l_Lean_Elab_Tactic_replaceMainGoal(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_47); +return x_49; +} +else +{ +uint8_t x_50; +lean_dec(x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) +{ +return x_45; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_45); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_41); +if (x_54 == 0) +{ +return x_41; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_41, 0); +x_56 = lean_ctor_get(x_41, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_41); +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_26); +lean_dec(x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_38); +if (x_58 == 0) +{ +return x_38; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_38, 0); +x_60 = lean_ctor_get(x_38, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_38); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_62 = !lean_is_exclusive(x_33); +if (x_62 == 0) +{ +return x_33; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_33, 0); +x_64 = lean_ctor_get(x_33, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_33); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_30); +if (x_66 == 0) +{ +return x_30; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_30, 0); +x_68 = lean_ctor_get(x_30, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_30); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +uint8_t x_70; +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_27); +if (x_70 == 0) +{ +return x_27; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_27, 0); +x_72 = lean_ctor_get(x_27, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_27); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +} +else +{ +uint8_t x_74; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_17); +if (x_74 == 0) +{ +return x_17; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_17, 0); +x_76 = lean_ctor_get(x_17, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_17); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_78 = !lean_is_exclusive(x_11); +if (x_78 == 0) +{ +return x_11; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_11, 0); +x_80 = lean_ctor_get(x_11, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_11); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_evalExact___closed__6; +x_2 = l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSpecialize___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___boxed), 8, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_evalSpecialize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Elab_Tactic_evalSpecialize___closed__1; +lean_inc(x_1); +x_12 = l_Lean_Syntax_isOfKind(x_1, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_1); +x_13 = l_Lean_Elab_Tactic_evalSpecialize___closed__2; +x_14 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Lean_Syntax_getArg(x_1, x_15); +lean_dec(x_1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSpecialize___lambda__1), 10, 1); +lean_closure_set(x_17, 0, x_16); +x_18 = l_Lean_Elab_Tactic_withMainContext___rarg(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; +} +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("evalSpecialize"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSpecialize), 10, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_3 = l_Lean_Elab_Tactic_evalSpecialize___closed__1; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} lean_object* l_Lean_Elab_Tactic_elabTermForApply_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4720,28 +5313,7 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1___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_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg), 2, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4764,15 +5336,15 @@ return x_7; } } } -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar_match__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 1) @@ -4796,11 +5368,11 @@ return x_8; } } } -lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__3(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar_match__3___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar_match__2___rarg), 3, 0); return x_2; } } @@ -8501,6 +9073,27 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27___closed__3) res = l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__1); +l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__2); +l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__3); +l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___lambda__1___closed__4); +l_Lean_Elab_Tactic_evalSpecialize___closed__1 = _init_l_Lean_Elab_Tactic_evalSpecialize___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___closed__1); +l_Lean_Elab_Tactic_evalSpecialize___closed__2 = _init_l_Lean_Elab_Tactic_evalSpecialize___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSpecialize___closed__2); +l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__1); +l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__2); +l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSpecialize___closed__3); +res = l___regBuiltin_Lean_Elab_Tactic_evalSpecialize(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Elab_Tactic_elabTermForApply___closed__1 = _init_l_Lean_Elab_Tactic_elabTermForApply___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabTermForApply___closed__1); l_Lean_Elab_Tactic_evalApply___closed__1 = _init_l_Lean_Elab_Tactic_evalApply___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 4803bc0831..c9d8175109 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -36,12 +36,11 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1; lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4369_(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go_match__6(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__2___closed__1; lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go_match__2(lean_object*); @@ -84,7 +83,7 @@ lean_object* l_Lean_Elab_Tactic_evalCases___lambda__1(lean_object*, lean_object* lean_object* l_Lean_mkMVar(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___lambda__2___closed__6; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5; lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -211,6 +210,7 @@ lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object*, lean_obje lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltDArrow___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -233,7 +233,7 @@ lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Inducti lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___boxed(lean_object**); static lean_object* l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInduction_match__1(lean_object*); @@ -249,6 +249,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1___boxed(lean_object**); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___lambda__2___closed__8; +lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); @@ -264,7 +265,7 @@ lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarKind(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRHS(lean_object*); lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); @@ -290,6 +291,7 @@ lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Induc static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__7; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -305,7 +307,6 @@ lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go_match__3___rarg(lean_object* lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -421,7 +422,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabCasesTargets___spe static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__8; lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeTargetsEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__3___closed__3; lean_object* l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -430,7 +431,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserG lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_Result_alts___default; -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1___closed__1; @@ -444,7 +444,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsO static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName___boxed(lean_object*); @@ -456,6 +456,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalA lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInduction_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_isHoleRHS___closed__5; @@ -9086,7 +9087,7 @@ _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_box(0); -x_14 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_2, x_1, x_13); +x_14 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_2, x_1, x_13); x_15 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_15, 0, x_14); x_16 = lean_alloc_ctor(0, 2, 0); @@ -9132,10 +9133,10 @@ return x_2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_13; +lean_object* x_13; lean_dec(x_3); -x_13 = l_Lean_NameSet_contains(x_2, x_1); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_1); +if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_box(0); @@ -9145,6 +9146,7 @@ return x_15; 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; lean_object* x_22; uint8_t x_23; +lean_dec(x_13); lean_dec(x_2); x_16 = l_Lean_mkFVar(x_1); x_17 = lean_alloc_ctor(2, 1, 0); @@ -9196,7 +9198,109 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = x_5 < x_4; +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_array_uget(x_3, x_5); +x_19 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2(x_18, x_6, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = 1; +x_26 = x_5 + x_25; +x_5 = x_26; +x_6 = x_24; +x_15 = x_23; +goto _start; +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_21); +if (x_28 == 0) +{ +return x_21; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_21, 0); +x_30 = lean_ctor_get(x_21, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_21); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_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; uint8_t x_39; +lean_dec(x_19); +lean_dec(x_6); +x_32 = l_Lean_mkFVar(x_18); +x_33 = l_Lean_indentExpr(x_32); +x_34 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__2; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__2(x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_38); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -9211,10 +9315,10 @@ return x_16; } else { -lean_object* x_17; uint8_t x_18; +lean_object* x_17; lean_object* x_18; x_17 = lean_array_uget(x_2, x_4); -x_18 = l_Lean_NameSet_contains(x_1, x_17); -if (x_18 == 0) +x_18 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_17); +if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; x_19 = lean_box(0); @@ -9263,6 +9367,7 @@ return x_30; 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_object* x_37; uint8_t x_38; +lean_dec(x_18); lean_dec(x_5); x_31 = l_Lean_mkFVar(x_17); x_32 = l_Lean_indentExpr(x_31); @@ -9318,7 +9423,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_NameSet_empty; +x_16 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -9332,7 +9437,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_18); x_20 = l_Lean_Meta_getFVarSetToGeneralize(x_2, x_18, x_8, x_9, x_10, x_11, x_19); @@ -9345,7 +9450,7 @@ x_23 = lean_array_get_size(x_14); x_24 = lean_usize_of_nat(x_23); lean_dec(x_23); x_25 = 0; -x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(x_18, x_14, x_24, x_25, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2(x_18, x_14, x_24, x_25, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9602,7 +9707,30 @@ lean_dec(x_4); return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(x_1, x_2, x_3, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { size_t x_15; size_t x_16; lean_object* x_17; @@ -9610,7 +9738,7 @@ x_15 = lean_unbox_usize(x_3); lean_dec(x_3); x_16 = lean_unbox_usize(x_4); lean_dec(x_4); -x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -12975,27 +13103,27 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = l_Lean_Expr_fvarId_x21(x_1); -x_9 = l_Lean_NameSet_empty; -x_10 = l_Lean_NameSet_contains(x_9, x_8); -lean_dec(x_8); -if (x_10 == 0) +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_Expr_fvarId_x21(x_1); +x_10 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_9); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_dec(x_1); x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1___closed__1; x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_7); +lean_ctor_set(x_12, 1, x_8); 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; uint8_t x_19; +lean_dec(x_10); x_13 = l_Lean_indentExpr(x_1); x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1___closed__3; x_15 = lean_alloc_ctor(10, 2, 0); @@ -13005,7 +13133,7 @@ x_16 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_17, x_3, x_4, x_5, x_6, x_7); +x_18 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_17, x_4, x_5, x_6, x_7, x_8); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { @@ -13044,100 +13172,100 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_10; -x_10 = x_3 < x_2; -if (x_10 == 0) +uint8_t x_11; +x_11 = x_4 < x_3; +if (x_11 == 0) { -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_4); -lean_ctor_set(x_11, 1, x_9); -return x_11; +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; } else { -lean_object* x_12; uint8_t x_13; -lean_dec(x_4); -x_12 = lean_array_uget(x_1, x_3); -x_13 = l_Lean_Expr_isFVar(x_12); -if (x_13 == 0) +lean_object* x_13; uint8_t x_14; +lean_dec(x_5); +x_13 = lean_array_uget(x_2, x_4); +x_14 = l_Lean_Expr_isFVar(x_13); +if (x_14 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_14 = l_Lean_indentExpr(x_12); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_18, x_5, x_6, x_7, x_8, x_9); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 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; uint8_t x_21; +x_15 = l_Lean_indentExpr(x_13); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_19, x_6, x_7, x_8, x_9, x_10); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -return x_19; +return x_20; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_dec(x_20); +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_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(x_12, x_24, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_25) == 0) +lean_object* x_25; lean_object* x_26; +x_25 = lean_box(0); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(x_13, x_1, x_25, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 0); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = 1; -x_30 = x_3 + x_29; -x_3 = x_30; -x_4 = x_28; -x_9 = x_27; +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = 1; +x_31 = x_4 + x_30; +x_4 = x_31; +x_5 = x_29; +x_10 = x_28; goto _start; } else { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_25); -if (x_32 == 0) +uint8_t x_33; +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) { -return x_25; +return x_26; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_25, 0); -x_34 = lean_ctor_get(x_25, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_26, 0); +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_25); -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; +lean_dec(x_26); +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; } } } @@ -13147,89 +13275,92 @@ return x_35; lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets(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; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_array_get_size(x_1); -x_8 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_9 = 0; -x_10 = lean_box(0); -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(x_1, x_8, x_9, x_10, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_11) == 0) +lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_box(0); +x_8 = lean_array_get_size(x_1); +x_9 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_10 = 0; +x_11 = lean_box(0); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(x_7, x_1, x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_12) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_10); -return x_11; +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_11); +return x_12; } else { -lean_object* x_14; lean_object* x_15; -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_10); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +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); +return x_16; } } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) { -return x_11; +return x_12; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_11); -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; +lean_dec(x_12); +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; } } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___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) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___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, lean_object* x_8) { _start: { -lean_object* x_8; -x_8 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_9; +x_9 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_8; +return x_9; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_2); -lean_dec(x_2); +size_t x_11; size_t x_12; lean_object* x_13; x_11 = lean_unbox_usize(x_3); lean_dec(x_3); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); -return x_12; +return x_13; } } lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets___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) { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Injection.c b/stage0/stdlib/Lean/Elab/Tactic/Injection.c index 427e28b78f..3ad3c9946f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Injection.c @@ -35,7 +35,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjections___closed__4; static lean_object* l_Lean_Elab_Tactic_evalInjections___rarg___closed__1; -lean_object* l_List_mapTRAux___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjections___closed__2; lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__5; @@ -46,6 +45,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjections(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__12; lean_object* l_Lean_Elab_Tactic_evalInjection___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjections___closed__3; +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjections___closed__5; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; static lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__6; @@ -152,56 +152,6 @@ return x_9; } } } -lean_object* l_List_mapTRAux___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} static lean_object* _init_l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__1() { _start: { @@ -263,7 +213,7 @@ if (x_8 == 0) { 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; x_9 = lean_box(0); -x_10 = l_List_mapTRAux___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(x_2, x_9); +x_10 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_2, x_9); x_11 = l_Lean_MessageData_ofList(x_10); lean_dec(x_10); x_12 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__4; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Location.c b/stage0/stdlib/Lean/Elab/Tactic/Location.c index 5518884c2b..ec12055866 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Location.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Location.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Location -// Imports: Init +// Imports: Init Lean.Elab.Tactic.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -17,63 +17,51 @@ size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_Tactic_expandOptLocation___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__8; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__7; lean_object* lean_name_mk_string(lean_object*, lean_object*); +uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Elab_Tactic_expandOptLocation___closed__1; -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_Elab_Tactic_withLocation___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_expandOptLocation___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandLocation___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__2; uint8_t l_USize_decLt(size_t, size_t); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__6; static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__1; lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); lean_object* l_Lean_Elab_Tactic_expandLocation(lean_object*); -lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__4; +lean_object* l_Lean_Elab_Tactic_withLocation_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_reverse___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__3; size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Parser_withOpenDeclFnCore___spec__1(size_t, size_t, lean_object*); +lean_object* l_Lean_LocalContext_getFVarIds(lean_object*); +lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withLocation_match__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__5; uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withLocation___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1(size_t, size_t, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = x_2 < x_1; -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = x_3; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; -x_6 = lean_array_uget(x_3, x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = x_6; -x_10 = l_Lean_Syntax_getId(x_9); -lean_dec(x_9); -x_11 = 1; -x_12 = x_2 + x_11; -x_13 = x_10; -x_14 = lean_array_uset(x_8, x_2, x_13); -x_2 = x_12; -x_3 = x_14; -goto _start; -} -} -} +lean_object* l_Lean_Elab_Tactic_withLocation___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__1() { _start: { @@ -169,7 +157,7 @@ x_11 = lean_usize_of_nat(x_10); lean_dec(x_10); x_12 = 0; x_13 = x_9; -x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1(x_11, x_12, x_13); +x_14 = l_Array_mapMUnsafe_map___at_Lean_Parser_withOpenDeclFnCore___spec__1(x_11, x_12, x_13); x_15 = x_14; x_16 = l_Lean_Syntax_getArg(x_3, x_2); lean_dec(x_3); @@ -203,18 +191,6 @@ return x_22; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandLocation___spec__1(x_4, x_5, x_3); -return x_6; -} -} lean_object* l_Lean_Elab_Tactic_expandLocation___boxed(lean_object* x_1) { _start: { @@ -276,7 +252,621 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Tactic_withLocation_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_8 = lean_box(x_7); +x_9 = lean_apply_2(x_2, x_6, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Tactic_withLocation_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withLocation_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = x_4 < x_3; +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_16 = lean_box(x_5); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_19 = lean_apply_1(x_1, x_18); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withMainContext___rarg), 10, 1); +lean_closure_set(x_20, 0, x_19); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_21 = l_Lean_Elab_Tactic_tryTactic___rarg(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (x_5 == 0) +{ +lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = 1; +x_25 = x_4 + x_24; +x_26 = lean_unbox(x_22); +lean_dec(x_22); +x_4 = x_25; +x_5 = x_26; +x_14 = x_23; +goto _start; +} +else +{ +lean_object* x_28; size_t x_29; size_t x_30; uint8_t x_31; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = 1; +x_30 = x_4 + x_29; +x_31 = 1; +x_4 = x_30; +x_5 = x_31; +x_14 = x_28; +goto _start; +} +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_7); +x_12 = l_Lean_Meta_getLocalDeclFromUserName(x_1, x_7, x_8, x_9, x_10, 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; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_LocalDecl_fvarId(x_13); +lean_dec(x_13); +x_16 = lean_apply_10(x_2, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +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; +} +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = x_3 == x_4; +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_5); +x_16 = lean_array_uget(x_2, x_3); +lean_inc(x_1); +x_17 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___lambda__1), 11, 2); +lean_closure_set(x_17, 0, x_16); +lean_closure_set(x_17, 1, x_1); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_18 = l_Lean_Elab_Tactic_withMainContext___rarg(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = x_3 + x_21; +x_3 = x_22; +x_5 = x_19; +x_14 = x_20; +goto _start; +} +else +{ +uint8_t x_24; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +return x_18; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +lean_object* x_28; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_5); +lean_ctor_set(x_28, 1, x_14); +return x_28; +} +} +} +lean_object* l_Lean_Elab_Tactic_withLocation___lambda__1(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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +x_14 = l_Lean_LocalContext_getFVarIds(x_13); +x_15 = l_Array_reverse___rarg(x_14); +x_16 = lean_array_get_size(x_15); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1(x_1, x_15, x_17, x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_15); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_23 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_apply_10(x_3, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) +{ +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_23); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_19); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_19, 0); +lean_dec(x_32); +x_33 = lean_box(0); +lean_ctor_set(x_19, 0, x_33); +return x_19; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_dec(x_19); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_withLocation(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +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_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withMainContext___rarg), 10, 1); +lean_closure_set(x_14, 0, x_3); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_15 = l_Lean_Elab_Tactic_tryTactic___rarg(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withLocation___lambda__1___boxed), 12, 3); +lean_closure_set(x_18, 0, x_2); +lean_closure_set(x_18, 1, x_16); +lean_closure_set(x_18, 2, x_4); +x_19 = l_Lean_Elab_Tactic_withMainContext___rarg(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_dec(x_4); +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_22 = lean_array_get_size(x_20); +x_23 = lean_unsigned_to_nat(0u); +x_24 = lean_nat_dec_lt(x_23, x_22); +if (x_24 == 0) +{ +lean_dec(x_22); +lean_dec(x_2); +if (x_21 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_13); +return x_26; +} +else +{ +lean_object* x_27; +x_27 = lean_apply_9(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = lean_nat_dec_le(x_22, x_22); +if (x_28 == 0) +{ +lean_dec(x_22); +lean_dec(x_2); +if (x_21 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_13); +return x_30; +} +else +{ +lean_object* x_31; +x_31 = lean_apply_9(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_31; +} +} +else +{ +size_t x_32; size_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = 0; +x_33 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_34 = lean_box(0); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_35 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(x_2, x_20, x_32, x_33, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_35) == 0) +{ +if (x_21 == 0) +{ +uint8_t x_36; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set(x_35, 0, x_34); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = lean_apply_9(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_40); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_42 = !lean_is_exclusive(x_35); +if (x_42 == 0) +{ +return x_35; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_35, 0); +x_44 = lean_ctor_get(x_35, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_35); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; uint8_t x_17; lean_object* x_18; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = lean_unbox(x_5); +lean_dec(x_5); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1(x_1, x_2, x_15, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_2); +return x_18; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_2); +return x_17; +} +} +lean_object* l_Lean_Elab_Tactic_withLocation___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l_Lean_Elab_Tactic_withLocation___lambda__1(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +lean_object* l_Lean_Elab_Tactic_withLocation___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Tactic_withLocation(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_14; +} +} lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Basic(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Tactic_Location(lean_object* w) { lean_object * res; @@ -285,6 +875,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Elab_Tactic_expandLocation___closed__1 = _init_l_Lean_Elab_Tactic_expandLocation___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_expandLocation___closed__1); l_Lean_Elab_Tactic_expandLocation___closed__2 = _init_l_Lean_Elab_Tactic_expandLocation___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index 45aeb182f0..26a23d2dc3 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -83,7 +83,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Match_0__Lean_Elab_Tactic_mkAuxiliaryMatchTermAux___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Match_0__Lean_Elab_Tactic_mkAuxiliaryMatchTermAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3044,7 +3043,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_8, 5); lean_inc(x_16); lean_inc(x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__1___boxed), 4, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__1), 4, 1); lean_closure_set(x_17, 0, x_14); lean_inc(x_15); x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -3550,15 +3549,6 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__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_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalMatch___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c index 665c9d0a04..36ae876286 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c @@ -13,52 +13,41 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_withRWRulesSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq(lean_object*); static lean_object* l_Lean_Elab_Tactic_withRWRulesSeq___closed__1; lean_object* l_Lean_Elab_Tactic_withRWRulesSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_withRWRulesSeq___closed__2; -size_t l_USize_add(size_t, size_t); -lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -uint8_t l_USize_decEq(size_t, size_t); -lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__5; -lean_object* l_Lean_Elab_Tactic_rewriteAll(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__10; +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__3; lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq___closed__4; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_Tactic_rewriteTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4; lean_object* l_Lean_Meta_replaceLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteTarget(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4; lean_object* l_Lean_Elab_Tactic_evalERewriteSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteAll___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___boxed(lean_object**); lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); @@ -66,63 +55,56 @@ lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__1___boxed(lean_object* lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoTreeContext___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5; -static lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3; lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__11; lean_object* l_Lean_Elab_Tactic_evalRewriteCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__12; lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq___closed__5; lean_object* l_Lean_Meta_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; -lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_Elab_Tactic_evalRewriteCore_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1(uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5; lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewriteSeq___closed__3; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__3(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRewriteCore(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__2; +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1; +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalERewriteSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__4; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__9; -lean_object* l_Lean_LocalContext_getFVarIds(lean_object*); -lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRewriteSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq(lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__1; +lean_object* l_Lean_Elab_Tactic_withLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__6; lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRewriteSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalRewriteCore_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__13; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__14; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -475,7 +457,7 @@ x_15 = l_Lean_Elab_Tactic_rewriteTarget(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8 return x_15; } } -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; lean_object* x_16; @@ -782,14 +764,14 @@ return x_65; } } } -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t 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* l_Lean_Elab_Tactic_rewriteLocalDecl(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t 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) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; x_14 = lean_box(0); x_15 = lean_box(x_2); x_16 = lean_box(x_4); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1___boxed), 14, 5); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1___boxed), 14, 5); lean_closure_set(x_17, 0, x_1); lean_closure_set(x_17, 1, x_14); lean_closure_set(x_17, 2, x_3); @@ -805,7 +787,7 @@ x_21 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp_ return x_21; } } -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___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, 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* l_Lean_Elab_Tactic_rewriteLocalDecl___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; uint8_t x_16; lean_object* x_17; @@ -813,101 +795,10 @@ x_15 = lean_unbox(x_4); lean_dec(x_4); x_16 = lean_unbox(x_5); lean_dec(x_5); -x_17 = l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); return x_17; } } -lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; uint8_t x_15; lean_object* x_16; -x_14 = lean_unbox(x_2); -lean_dec(x_2); -x_15 = lean_unbox(x_4); -lean_dec(x_4); -x_16 = l_Lean_Elab_Tactic_rewriteLocalDeclFVarId(x_1, x_14, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_16; -} -} -lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t 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) { -_start: -{ -lean_object* x_14; -lean_inc(x_9); -x_14 = l_Lean_Meta_getLocalDeclFromUserName(x_1, x_9, x_10, x_11, x_12, 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; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_LocalDecl_fvarId(x_15); -lean_dec(x_15); -x_18 = l_Lean_Elab_Tactic_rewriteLocalDeclFVarId(x_2, x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -return x_18; -} -else -{ -uint8_t x_19; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_19 = !lean_is_exclusive(x_14); -if (x_19 == 0) -{ -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t 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) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_box(x_2); -x_15 = lean_box(x_4); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1___boxed), 13, 4); -lean_closure_set(x_16, 0, x_3); -lean_closure_set(x_16, 1, x_1); -lean_closure_set(x_16, 2, x_14); -lean_closure_set(x_16, 3, x_15); -x_17 = l_Lean_Elab_Tactic_withMainContext___rarg(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_17; -} -} -lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; uint8_t x_15; lean_object* x_16; -x_14 = lean_unbox(x_3); -lean_dec(x_3); -x_15 = lean_unbox(x_4); -lean_dec(x_4); -x_16 = l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_16; -} -} lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -920,328 +811,6 @@ x_16 = l_Lean_Elab_Tactic_rewriteLocalDecl(x_1, x_14, x_3, x_15, x_5, x_6, x_7, return x_16; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, size_t x_5, size_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; -x_17 = x_6 < x_5; -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_18 = lean_box(x_7); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -return x_19; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_array_uget(x_4, x_6); -x_21 = lean_box(x_2); -x_22 = lean_box(x_3); -lean_inc(x_1); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___boxed), 13, 4); -lean_closure_set(x_23, 0, x_1); -lean_closure_set(x_23, 1, x_21); -lean_closure_set(x_23, 2, x_20); -lean_closure_set(x_23, 3, x_22); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_24 = l_Lean_Elab_Tactic_tryTactic___rarg(x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (x_7 == 0) -{ -lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = 1; -x_28 = x_6 + x_27; -x_29 = lean_unbox(x_25); -lean_dec(x_25); -x_6 = x_28; -x_7 = x_29; -x_16 = x_26; -goto _start; -} -else -{ -lean_object* x_31; size_t x_32; size_t x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_24, 1); -lean_inc(x_31); -lean_dec(x_24); -x_32 = 1; -x_33 = x_6 + x_32; -x_34 = 1; -x_6 = x_33; -x_7 = x_34; -x_16 = x_31; -goto _start; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("rewrite"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("did not find instance of the pattern in the current goal"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1(lean_object* x_1, uint8_t x_2, uint8_t x_3, uint8_t 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) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -x_15 = l_Lean_LocalContext_getFVarIds(x_14); -x_16 = l_Array_reverse___rarg(x_15); -x_17 = lean_array_get_size(x_16); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_19 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1(x_1, x_2, x_3, x_16, x_18, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_16); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_unbox(x_21); -lean_dec(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_24 = l_Lean_Elab_Tactic_getMainGoal(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); -if (lean_obj_tag(x_24) == 0) -{ -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_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2; -x_28 = l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5; -x_29 = lean_box(0); -x_30 = l_Lean_Meta_throwTacticEx___rarg(x_27, x_25, x_28, x_29, x_9, x_10, x_11, x_12, x_26); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -return x_30; -} -else -{ -uint8_t x_31; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_31 = !lean_is_exclusive(x_24); -if (x_31 == 0) -{ -return x_24; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_24, 0); -x_33 = lean_ctor_get(x_24, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_24); -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 -{ -uint8_t x_35; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_35 = !lean_is_exclusive(x_20); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_20, 0); -lean_dec(x_36); -x_37 = lean_box(0); -lean_ctor_set(x_20, 0, x_37); -return x_20; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_20, 1); -lean_inc(x_38); -lean_dec(x_20); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -} -} -} -lean_object* l_Lean_Elab_Tactic_rewriteAll(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_13 = lean_box(x_2); -x_14 = lean_box(x_3); -lean_inc(x_1); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteTarget___boxed), 12, 3); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_13); -lean_closure_set(x_15, 2, x_14); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_16 = l_Lean_Elab_Tactic_tryTactic___rarg(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_box(x_2); -x_20 = lean_box(x_3); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteAll___lambda__1___boxed), 13, 4); -lean_closure_set(x_21, 0, x_1); -lean_closure_set(x_21, 1, x_19); -lean_closure_set(x_21, 2, x_20); -lean_closure_set(x_21, 3, x_17); -x_22 = l_Lean_Elab_Tactic_withMainContext___rarg(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -return x_22; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22; -x_17 = lean_unbox(x_2); -lean_dec(x_2); -x_18 = lean_unbox(x_3); -lean_dec(x_3); -x_19 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_20 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_21 = lean_unbox(x_7); -lean_dec(x_7); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1(x_1, x_17, x_18, x_4, x_19, x_20, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_4); -return x_22; -} -} -lean_object* l_Lean_Elab_Tactic_rewriteAll___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_14 = lean_unbox(x_2); -lean_dec(x_2); -x_15 = lean_unbox(x_3); -lean_dec(x_3); -x_16 = lean_unbox(x_4); -lean_dec(x_4); -x_17 = l_Lean_Elab_Tactic_rewriteAll___lambda__1(x_1, x_14, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_17; -} -} -lean_object* l_Lean_Elab_Tactic_rewriteAll___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; uint8_t x_14; lean_object* x_15; -x_13 = lean_unbox(x_2); -lean_dec(x_2); -x_14 = lean_unbox(x_3); -lean_dec(x_3); -x_15 = l_Lean_Elab_Tactic_rewriteAll(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_15; -} -} lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -1753,298 +1322,99 @@ lean_dec(x_2); return x_13; } } -lean_object* l_Lean_Elab_Tactic_evalRewriteCore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_2); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_3, x_4); -return x_5; -} -else -{ -lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_3); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -lean_dec(x_1); -x_8 = lean_box(x_7); -x_9 = lean_apply_2(x_2, x_6, x_8); -return x_9; -} -} -} -lean_object* l_Lean_Elab_Tactic_evalRewriteCore_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRewriteCore_match__1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; -x_17 = x_5 == x_6; -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_7); -x_18 = lean_array_uget(x_4, x_5); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_3); -x_19 = l_Lean_Elab_Tactic_rewriteLocalDecl(x_3, x_2, x_18, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = 1; -x_23 = x_5 + x_22; -x_5 = x_23; -x_7 = x_20; -x_16 = x_21; -goto _start; -} -else -{ -uint8_t x_25; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_25 = !lean_is_exclusive(x_19); -if (x_25 == 0) -{ -return x_19; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_19, 0); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_19); -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_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_7); -lean_ctor_set(x_29, 1, x_16); -return x_29; -} -} -} lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__1(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -if (lean_obj_tag(x_1) == 0) -{ lean_object* x_14; -x_14 = l_Lean_Elab_Tactic_rewriteAll(x_4, x_3, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Elab_Tactic_rewriteLocalDecl(x_1, x_2, x_4, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_14; } -else -{ -lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_15 = lean_ctor_get(x_1, 0); -x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -x_17 = lean_array_get_size(x_15); -x_18 = lean_unsigned_to_nat(0u); -x_19 = lean_nat_dec_lt(x_18, x_17); -if (x_19 == 0) -{ -lean_dec(x_17); -if (x_16 == 0) -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_13); -return x_21; } -else +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1() { +_start: { -lean_object* x_22; -x_22 = l_Lean_Elab_Tactic_rewriteTarget(x_4, x_3, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_22; +lean_object* x_1; +x_1 = lean_mk_string("rewrite"); +return x_1; } } -else +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2() { +_start: { -uint8_t x_23; -x_23 = lean_nat_dec_le(x_17, x_17); -if (x_23 == 0) -{ -lean_dec(x_17); -if (x_16 == 0) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_13); -return x_25; -} -else -{ -lean_object* x_26; -x_26 = l_Lean_Elab_Tactic_rewriteTarget(x_4, x_3, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_26; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } -else +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3() { +_start: { -size_t x_27; size_t x_28; lean_object* x_29; lean_object* x_30; -x_27 = 0; -x_28 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_29 = lean_box(0); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); +lean_object* x_1; +x_1 = lean_mk_string("did not find instance of the pattern in the current goal"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2; +x_12 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5; +x_13 = lean_box(0); +x_14 = l_Lean_Meta_throwTacticEx___rarg(x_11, x_1, x_12, x_13, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___boxed), 10, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__3(uint8_t x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +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_14 = lean_box(x_3); +x_15 = lean_box(x_1); lean_inc(x_4); -x_30 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1(x_2, x_3, x_4, x_15, x_27, x_28, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_30) == 0) -{ -if (x_16 == 0) -{ -uint8_t x_31; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_29); -return x_30; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_dec(x_30); -x_36 = l_Lean_Elab_Tactic_rewriteTarget(x_4, x_3, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); -return x_36; -} -} -else -{ -uint8_t x_37; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) -{ -return x_30; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_30, 0); -x_39 = lean_ctor_get(x_30, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_30); -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; -} -} -} -} -} +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRewriteCore___lambda__1___boxed), 13, 3); +lean_closure_set(x_16, 0, x_4); +lean_closure_set(x_16, 1, x_14); +lean_closure_set(x_16, 2, x_15); +x_17 = lean_box(x_3); +x_18 = lean_box(x_1); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteTarget___boxed), 12, 3); +lean_closure_set(x_19, 0, x_4); +lean_closure_set(x_19, 1, x_17); +lean_closure_set(x_19, 2, x_18); +x_20 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1; +x_21 = l_Lean_Elab_Tactic_withLocation(x_2, x_16, x_19, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_21; } } lean_object* l_Lean_Elab_Tactic_evalRewriteCore(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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -2060,31 +1430,14 @@ x_16 = l_Lean_Syntax_getArg(x_2, x_15); x_17 = lean_unsigned_to_nat(1u); x_18 = l_Lean_Syntax_getArg(x_2, x_17); x_19 = lean_box(x_1); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRewriteCore___lambda__1___boxed), 13, 2); -lean_closure_set(x_20, 0, x_14); -lean_closure_set(x_20, 1, x_19); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___boxed), 13, 2); +lean_closure_set(x_20, 0, x_19); +lean_closure_set(x_20, 1, x_14); x_21 = l_Lean_Elab_Tactic_withRWRulesSeq(x_16, x_18, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_18); return x_21; } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -uint8_t x_17; uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_17 = lean_unbox(x_1); -lean_dec(x_1); -x_18 = lean_unbox(x_2); -lean_dec(x_2); -x_19 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_20 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_21 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1(x_17, x_18, x_3, x_4, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_4); -return x_21; -} -} lean_object* l_Lean_Elab_Tactic_evalRewriteCore___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -2094,7 +1447,34 @@ lean_dec(x_2); x_15 = lean_unbox(x_3); lean_dec(x_3); x_16 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__1(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +} +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_unbox(x_1); lean_dec(x_1); +x_15 = lean_unbox(x_3); +lean_dec(x_3); +x_16 = l_Lean_Elab_Tactic_evalRewriteCore___lambda__3(x_14, x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_2); return x_16; } } @@ -2368,20 +1748,22 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Location(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1); -l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__2); -l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3); -l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__4); -l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5 = _init_l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__5); l_Lean_Elab_Tactic_withRWRulesSeq___closed__1 = _init_l_Lean_Elab_Tactic_withRWRulesSeq___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_withRWRulesSeq___closed__1); l_Lean_Elab_Tactic_withRWRulesSeq___closed__2 = _init_l_Lean_Elab_Tactic_withRWRulesSeq___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_withRWRulesSeq___closed__2); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__1); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__2); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__3); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__4); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__2___closed__5); +l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1 = _init_l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalRewriteCore___lambda__3___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index c93674b102..0fa536a85f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -22,9 +22,11 @@ lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs_ lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimpConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1(lean_object*); +extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; size_t l_USize_add(size_t, size_t); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5; +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -39,7 +41,6 @@ lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, lean_object*, l static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma___closed__3; uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Meta_getCongrLemmas___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -52,7 +53,9 @@ lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(lean_object lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__5; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1; static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,6 +67,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp(lean_object*); lean_object* l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2; lean_object* l_Lean_Elab_Tactic_evalSimp_go(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__9___closed__1; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__4; @@ -84,11 +88,8 @@ lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__7; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg(lean_object*); lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__1; lean_object* l_Lean_Elab_Tactic_evalSimp_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,6 +109,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); uint8_t l_Lean_Elab_Tactic_ElabSimpArgsResult_starArg___default; lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_mkSimpContext_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); @@ -132,15 +134,18 @@ lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__4; lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__4; lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2(uint8_t); static lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__17___closed__2; lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__9; -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3; @@ -175,11 +180,11 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Sim lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__8; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Tactic_mkSimpContext_match__1(lean_object*); -extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,6 +221,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1; lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__12; +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimp_match__1(lean_object*); lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__5; @@ -246,7 +252,6 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMe uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__3; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdLemma_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -265,6 +270,7 @@ lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__1___boxed(lean_object*, lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__5; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpConfig___rarg___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__6; static lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2; @@ -913,7 +919,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_24 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(x_22, x_23, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +x_24 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_22, x_23, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; @@ -6393,7 +6399,2477 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_mkSimpContext_match__1___rar return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1() { +lean_object* l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1() { _start: { lean_object* x_1; @@ -6401,17 +8877,460 @@ x_1 = lean_mk_string("h"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = x_5 < x_4; +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_uget(x_3, x_5); +x_19 = !lean_is_exclusive(x_6); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_6, 0); +x_21 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +x_22 = l_Lean_Meta_getLocalDecl(x_18, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_LocalDecl_userName(x_23); +lean_inc(x_1); +x_26 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_27 = l_Lean_LocalDecl_fvarId(x_23); +x_28 = l_Lean_LocalDecl_toExpr(x_23); +lean_dec(x_23); +x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2; +x_30 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_29, x_13, x_14, x_24); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = !lean_is_exclusive(x_21); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_34 = lean_ctor_get(x_21, 0); +x_35 = lean_ctor_get(x_21, 1); +x_36 = lean_ctor_get(x_21, 2); +x_37 = lean_ctor_get(x_21, 3); +x_38 = lean_ctor_get(x_21, 4); +lean_inc(x_31); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_31); +x_40 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; +x_41 = 0; +x_42 = 1; +x_43 = lean_unsigned_to_nat(1000u); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_44 = l_Lean_Meta_SimpLemmas_add(x_35, x_40, x_28, x_41, x_42, x_43, x_39, x_11, x_12, x_13, x_14, x_32); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_20, x_27, x_31); +lean_ctor_set(x_21, 1, x_45); +lean_ctor_set(x_6, 0, x_47); +x_48 = 1; +x_49 = x_5 + x_48; +x_5 = x_49; +x_15 = x_46; +goto _start; +} +else +{ +uint8_t x_51; +lean_free_object(x_21); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_27); +lean_free_object(x_6); +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_44); +if (x_51 == 0) +{ +return x_44; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_44, 0); +x_53 = lean_ctor_get(x_44, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_44); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +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; uint8_t x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; +x_55 = lean_ctor_get(x_21, 0); +x_56 = lean_ctor_get(x_21, 1); +x_57 = lean_ctor_get(x_21, 2); +x_58 = lean_ctor_get(x_21, 3); +x_59 = lean_ctor_get(x_21, 4); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_21); +lean_inc(x_31); +x_60 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_60, 0, x_31); +x_61 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; +x_62 = 0; +x_63 = 1; +x_64 = lean_unsigned_to_nat(1000u); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_65 = l_Lean_Meta_SimpLemmas_add(x_56, x_61, x_28, x_62, x_63, x_64, x_60, x_11, x_12, x_13, x_14, x_32); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_20, x_27, x_31); +x_69 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_69, 0, x_55); +lean_ctor_set(x_69, 1, x_66); +lean_ctor_set(x_69, 2, x_57); +lean_ctor_set(x_69, 3, x_58); +lean_ctor_set(x_69, 4, x_59); +lean_ctor_set(x_6, 1, x_69); +lean_ctor_set(x_6, 0, x_68); +x_70 = 1; +x_71 = x_5 + x_70; +x_5 = x_71; +x_15 = x_67; +goto _start; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_31); +lean_dec(x_27); +lean_free_object(x_6); +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_73 = lean_ctor_get(x_65, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_65, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_75 = x_65; +} else { + lean_dec_ref(x_65); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; +} +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +} +} +else +{ +size_t x_77; size_t x_78; +lean_dec(x_23); +x_77 = 1; +x_78 = x_5 + x_77; +x_5 = x_78; +x_15 = x_24; +goto _start; +} +} +else +{ +uint8_t x_80; +lean_free_object(x_6); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_80 = !lean_is_exclusive(x_22); +if (x_80 == 0) +{ +return x_22; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_22, 0); +x_82 = lean_ctor_get(x_22, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_22); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_6, 0); +x_85 = lean_ctor_get(x_6, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_6); +lean_inc(x_11); +x_86 = l_Lean_Meta_getLocalDecl(x_18, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_LocalDecl_userName(x_87); +lean_inc(x_1); +x_90 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; +x_91 = l_Lean_LocalDecl_fvarId(x_87); +x_92 = l_Lean_LocalDecl_toExpr(x_87); +lean_dec(x_87); +x_93 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2; +x_94 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_93, x_13, x_14, x_88); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_ctor_get(x_85, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_85, 1); +lean_inc(x_98); +x_99 = lean_ctor_get(x_85, 2); +lean_inc(x_99); +x_100 = lean_ctor_get(x_85, 3); +lean_inc(x_100); +x_101 = lean_ctor_get(x_85, 4); +lean_inc(x_101); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + lean_ctor_release(x_85, 2); + lean_ctor_release(x_85, 3); + lean_ctor_release(x_85, 4); + x_102 = x_85; +} else { + lean_dec_ref(x_85); + x_102 = lean_box(0); +} +lean_inc(x_95); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_95); +x_104 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; +x_105 = 0; +x_106 = 1; +x_107 = lean_unsigned_to_nat(1000u); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_108 = l_Lean_Meta_SimpLemmas_add(x_98, x_104, x_92, x_105, x_106, x_107, x_103, x_11, x_12, x_13, x_14, x_96); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; size_t x_114; size_t x_115; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_84, x_91, x_95); +if (lean_is_scalar(x_102)) { + x_112 = lean_alloc_ctor(0, 5, 0); +} else { + x_112 = x_102; +} +lean_ctor_set(x_112, 0, x_97); +lean_ctor_set(x_112, 1, x_109); +lean_ctor_set(x_112, 2, x_99); +lean_ctor_set(x_112, 3, x_100); +lean_ctor_set(x_112, 4, x_101); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +x_114 = 1; +x_115 = x_5 + x_114; +x_5 = x_115; +x_6 = x_113; +x_15 = x_110; +goto _start; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_100); +lean_dec(x_99); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_91); +lean_dec(x_84); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_117 = lean_ctor_get(x_108, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_119 = x_108; +} else { + lean_dec_ref(x_108); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +} +else +{ +lean_object* x_121; size_t x_122; size_t x_123; +lean_dec(x_87); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_84); +lean_ctor_set(x_121, 1, x_85); +x_122 = 1; +x_123 = x_5 + x_122; +x_5 = x_123; +x_6 = x_121; +x_15 = x_88; +goto _start; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_125 = lean_ctor_get(x_86, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_86, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_127 = x_86; +} else { + lean_dec_ref(x_86); + x_127 = lean_box(0); +} +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_127; +} +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -6454,83 +9373,85 @@ lean_inc(x_1); x_25 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_24); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; x_26 = l_Lean_LocalDecl_fvarId(x_22); x_27 = l_Lean_LocalDecl_toExpr(x_22); lean_dec(x_22); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; +x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2; x_29 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_28, x_12, x_13, x_23); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -lean_inc(x_30); -x_32 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_19, x_26, x_30); -x_33 = !lean_is_exclusive(x_20); -if (x_33 == 0) +x_32 = !lean_is_exclusive(x_20); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; -x_34 = lean_ctor_get(x_20, 0); -x_35 = lean_ctor_get(x_20, 1); -x_36 = lean_ctor_get(x_20, 2); -x_37 = lean_ctor_get(x_20, 3); -x_38 = lean_ctor_get(x_20, 4); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_30); -x_40 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; -x_41 = 0; -x_42 = 1; -x_43 = lean_unsigned_to_nat(1000u); +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; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_33 = lean_ctor_get(x_20, 0); +x_34 = lean_ctor_get(x_20, 1); +x_35 = lean_ctor_get(x_20, 2); +x_36 = lean_ctor_get(x_20, 3); +x_37 = lean_ctor_get(x_20, 4); +lean_inc(x_30); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_30); +x_39 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; +x_40 = 0; +x_41 = 1; +x_42 = lean_unsigned_to_nat(1000u); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_44 = l_Lean_Meta_SimpLemmas_add(x_35, x_40, x_27, x_41, x_42, x_43, x_39, x_10, x_11, x_12, x_13, x_31); -if (lean_obj_tag(x_44) == 0) +x_43 = l_Lean_Meta_SimpLemmas_add(x_34, x_39, x_27, x_40, x_41, x_42, x_38, x_10, x_11, x_12, x_13, x_31); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_ctor_set(x_20, 1, x_45); -lean_ctor_set(x_5, 0, x_32); +lean_dec(x_43); +x_46 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_19, x_26, x_30); +lean_ctor_set(x_20, 1, x_44); +lean_ctor_set(x_5, 0, x_46); x_47 = 1; x_48 = x_4 + x_47; x_4 = x_48; -x_14 = x_46; +x_14 = x_45; goto _start; } else { uint8_t x_50; lean_free_object(x_20); -lean_dec(x_38); lean_dec(x_37); lean_dec(x_36); -lean_dec(x_34); -lean_dec(x_32); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_30); +lean_dec(x_26); lean_free_object(x_5); +lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_44); +x_50 = !lean_is_exclusive(x_43); if (x_50 == 0) { -return x_44; +return x_43; } else { lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_44, 0); -x_52 = lean_ctor_get(x_44, 1); +x_51 = lean_ctor_get(x_43, 0); +x_52 = lean_ctor_get(x_43, 1); lean_inc(x_52); lean_inc(x_51); -lean_dec(x_44); +lean_dec(x_43); x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); @@ -6552,6 +9473,7 @@ lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_dec(x_20); +lean_inc(x_30); x_59 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_59, 0, x_30); x_60 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; @@ -6565,77 +9487,80 @@ lean_inc(x_10); x_64 = l_Lean_Meta_SimpLemmas_add(x_55, x_60, x_27, x_61, x_62, x_63, x_59, x_10, x_11, x_12, x_13, x_31); if (lean_obj_tag(x_64) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; size_t x_68; size_t x_69; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; size_t x_69; size_t x_70; x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); lean_dec(x_64); -x_67 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_67, 0, x_54); -lean_ctor_set(x_67, 1, x_65); -lean_ctor_set(x_67, 2, x_56); -lean_ctor_set(x_67, 3, x_57); -lean_ctor_set(x_67, 4, x_58); -lean_ctor_set(x_5, 1, x_67); -lean_ctor_set(x_5, 0, x_32); -x_68 = 1; -x_69 = x_4 + x_68; -x_4 = x_69; +x_67 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_19, x_26, x_30); +x_68 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_68, 0, x_54); +lean_ctor_set(x_68, 1, x_65); +lean_ctor_set(x_68, 2, x_56); +lean_ctor_set(x_68, 3, x_57); +lean_ctor_set(x_68, 4, x_58); +lean_ctor_set(x_5, 1, x_68); +lean_ctor_set(x_5, 0, x_67); +x_69 = 1; +x_70 = x_4 + x_69; +x_4 = x_70; x_14 = x_66; goto _start; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_dec(x_58); lean_dec(x_57); lean_dec(x_56); lean_dec(x_54); -lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_26); lean_free_object(x_5); +lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_71 = lean_ctor_get(x_64, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_64, 1); +x_72 = lean_ctor_get(x_64, 0); lean_inc(x_72); +x_73 = lean_ctor_get(x_64, 1); +lean_inc(x_73); if (lean_is_exclusive(x_64)) { lean_ctor_release(x_64, 0); lean_ctor_release(x_64, 1); - x_73 = x_64; + x_74 = x_64; } else { lean_dec_ref(x_64); - x_73 = lean_box(0); + x_74 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_74 = x_73; + x_75 = x_74; } -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_72); -return x_74; +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } else { -size_t x_75; size_t x_76; +size_t x_76; size_t x_77; lean_dec(x_22); -x_75 = 1; -x_76 = x_4 + x_75; -x_4 = x_76; +x_76 = 1; +x_77 = x_4 + x_76; +x_4 = x_77; x_14 = x_23; goto _start; } } else { -uint8_t x_78; +uint8_t x_79; lean_free_object(x_5); lean_dec(x_20); lean_dec(x_19); @@ -6644,85 +9569,84 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_21); -if (x_78 == 0) +x_79 = !lean_is_exclusive(x_21); +if (x_79 == 0) { return x_21; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_21, 0); -x_80 = lean_ctor_get(x_21, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_21, 0); +x_81 = lean_ctor_get(x_21, 1); +lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); lean_dec(x_21); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_5, 0); -x_83 = lean_ctor_get(x_5, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_5, 0); +x_84 = lean_ctor_get(x_5, 1); +lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); lean_dec(x_5); lean_inc(x_10); -x_84 = l_Lean_Meta_getLocalDecl(x_17, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_84) == 0) +x_85 = l_Lean_Meta_getLocalDecl(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_dec(x_84); -x_87 = l_Lean_LocalDecl_userName(x_85); -lean_inc(x_1); -x_88 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_87); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; -x_89 = l_Lean_LocalDecl_fvarId(x_85); -x_90 = l_Lean_LocalDecl_toExpr(x_85); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); lean_dec(x_85); -x_91 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2; -x_92 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_91, x_12, x_13, x_86); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); +x_88 = l_Lean_LocalDecl_userName(x_86); +lean_inc(x_1); +x_89 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; +x_90 = l_Lean_LocalDecl_fvarId(x_86); +x_91 = l_Lean_LocalDecl_toExpr(x_86); +lean_dec(x_86); +x_92 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2; +x_93 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_92, x_12, x_13, x_87); +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -lean_dec(x_92); -lean_inc(x_93); -x_95 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_82, x_89, x_93); -x_96 = lean_ctor_get(x_83, 0); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = lean_ctor_get(x_84, 0); lean_inc(x_96); -x_97 = lean_ctor_get(x_83, 1); +x_97 = lean_ctor_get(x_84, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_83, 2); +x_98 = lean_ctor_get(x_84, 2); lean_inc(x_98); -x_99 = lean_ctor_get(x_83, 3); +x_99 = lean_ctor_get(x_84, 3); lean_inc(x_99); -x_100 = lean_ctor_get(x_83, 4); +x_100 = lean_ctor_get(x_84, 4); lean_inc(x_100); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - lean_ctor_release(x_83, 2); - lean_ctor_release(x_83, 3); - lean_ctor_release(x_83, 4); - x_101 = x_83; +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + lean_ctor_release(x_84, 3); + lean_ctor_release(x_84, 4); + x_101 = x_84; } else { - lean_dec_ref(x_83); + lean_dec_ref(x_84); x_101 = lean_box(0); } +lean_inc(x_94); x_102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_102, 0, x_93); +lean_ctor_set(x_102, 0, x_94); x_103 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___rarg___closed__8; x_104 = 0; x_105 = 1; @@ -6731,116 +9655,119 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_107 = l_Lean_Meta_SimpLemmas_add(x_97, x_103, x_90, x_104, x_105, x_106, x_102, x_10, x_11, x_12, x_13, x_94); +x_107 = l_Lean_Meta_SimpLemmas_add(x_97, x_103, x_91, x_104, x_105, x_106, x_102, x_10, x_11, x_12, x_13, x_95); if (lean_obj_tag(x_107) == 0) { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; size_t x_112; size_t x_113; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; size_t x_113; size_t x_114; x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); x_109 = lean_ctor_get(x_107, 1); lean_inc(x_109); lean_dec(x_107); +x_110 = l_Std_RBNode_insert___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_83, x_90, x_94); if (lean_is_scalar(x_101)) { - x_110 = lean_alloc_ctor(0, 5, 0); + x_111 = lean_alloc_ctor(0, 5, 0); } else { - x_110 = x_101; + x_111 = x_101; } -lean_ctor_set(x_110, 0, x_96); -lean_ctor_set(x_110, 1, x_108); -lean_ctor_set(x_110, 2, x_98); -lean_ctor_set(x_110, 3, x_99); -lean_ctor_set(x_110, 4, x_100); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_95); -lean_ctor_set(x_111, 1, x_110); -x_112 = 1; -x_113 = x_4 + x_112; -x_4 = x_113; -x_5 = x_111; +lean_ctor_set(x_111, 0, x_96); +lean_ctor_set(x_111, 1, x_108); +lean_ctor_set(x_111, 2, x_98); +lean_ctor_set(x_111, 3, x_99); +lean_ctor_set(x_111, 4, x_100); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = 1; +x_114 = x_4 + x_113; +x_4 = x_114; +x_5 = x_112; x_14 = x_109; goto _start; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_101); lean_dec(x_100); lean_dec(x_99); lean_dec(x_98); lean_dec(x_96); -lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_90); +lean_dec(x_83); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_115 = lean_ctor_get(x_107, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_107, 1); +x_116 = lean_ctor_get(x_107, 0); lean_inc(x_116); +x_117 = lean_ctor_get(x_107, 1); +lean_inc(x_117); if (lean_is_exclusive(x_107)) { lean_ctor_release(x_107, 0); lean_ctor_release(x_107, 1); - x_117 = x_107; + x_118 = x_107; } else { lean_dec_ref(x_107); - x_117 = lean_box(0); + x_118 = lean_box(0); } -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_118 = x_117; + x_119 = x_118; } -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_116); -return x_118; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } else { -lean_object* x_119; size_t x_120; size_t x_121; -lean_dec(x_85); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_82); -lean_ctor_set(x_119, 1, x_83); -x_120 = 1; -x_121 = x_4 + x_120; -x_4 = x_121; -x_5 = x_119; -x_14 = x_86; +lean_object* x_120; size_t x_121; size_t x_122; +lean_dec(x_86); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_83); +lean_ctor_set(x_120, 1, x_84); +x_121 = 1; +x_122 = x_4 + x_121; +x_4 = x_122; +x_5 = x_120; +x_14 = x_87; goto _start; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_84); lean_dec(x_83); -lean_dec(x_82); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_123 = lean_ctor_get(x_84, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_84, 1); +x_124 = lean_ctor_get(x_85, 0); lean_inc(x_124); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_125 = x_84; +x_125 = lean_ctor_get(x_85, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_126 = x_85; } else { - lean_dec_ref(x_84); - x_125 = lean_box(0); + lean_dec_ref(x_85); + x_126 = lean_box(0); } -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_126 = x_125; + x_127 = x_126; } -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -return x_126; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } } @@ -6982,7 +9909,7 @@ x_50 = lean_array_get_size(x_46); x_51 = lean_usize_of_nat(x_50); lean_dec(x_50); x_52 = 0; -x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_44, x_46, x_51, x_52, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4(x_44, x_46, x_51, x_52, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_47); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7211,7 +10138,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_mkSimpContext___closed__1; -x_2 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; +x_2 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; x_3 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -7317,7 +10244,25 @@ return x_34; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3(x_1, x_2, x_3, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +return x_18; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { size_t x_15; size_t x_16; lean_object* x_17; @@ -7325,7 +10270,7 @@ x_15 = lean_unbox_usize(x_3); lean_dec(x_3); x_16 = lean_unbox_usize(x_4); lean_dec(x_4); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8456,10 +11401,10 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tacti lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__19___closed__12); l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___boxed__const__1 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__1___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___closed__2); l_Lean_Elab_Tactic_mkSimpContext___closed__1 = _init_l_Lean_Elab_Tactic_mkSimpContext___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_mkSimpContext___closed__1); l_Lean_Elab_Tactic_mkSimpContext___closed__2 = _init_l_Lean_Elab_Tactic_mkSimpContext___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 6755ec0e1b..b980589080 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -64,6 +64,7 @@ static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__12; lean_object* lean_io_get_num_heartbeats(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); lean_object* l_Std_PersistentArray_forIn___at_Lean_Elab_Term_addAutoBoundImplicits___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___boxed(lean_object*); @@ -87,7 +88,6 @@ lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError(lean_object*, lean_object*, static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__2; lean_object* l_Lean_mkSort(lean_object*); static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__17; -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,7 +210,7 @@ uint8_t l_Lean_Elab_Term_hasNoImplicitLambdaAnnotation(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__4; static lean_object* l_Lean_Elab_Term_instInhabitedState___closed__2; static lean_object* l_Lean_Elab_Term_resolveName___closed__3; -lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); @@ -320,7 +320,6 @@ lean_object* l_Lean_Elab_Term_throwMVarError___rarg(lean_object*, lean_object*, static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__3; uint8_t l_List_foldr___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_throwMVarError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_expandMacroImpl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__5; lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2___boxed(lean_object*, lean_object*); @@ -415,7 +414,7 @@ lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__4_ lean_object* l_Lean_Elab_Term_containsPendingMVar_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isExprAssigned(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; @@ -465,6 +464,7 @@ lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__1___boxed(lea lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___boxed__const__1; uint8_t l_Lean_Level_normLtAux(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_LVal_isFieldName_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__4; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__1; @@ -509,6 +509,7 @@ static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__7; lean_object* l_Lean_Elab_Term_mkConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_Elab_Term_instInhabitedState___closed__3; lean_object* l_Lean_Elab_Term_resolveName_match__1(lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instToStringLVal(lean_object*); extern lean_object* l_Lean_Core_instMonadRefCoreM; lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -780,6 +781,7 @@ uint8_t l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1(lean_object*, lean lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_process___closed__1; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); +static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13; lean_object* l_Lean_Meta_mkPure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; @@ -795,9 +797,9 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__ lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot(lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); +lean_object* l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -861,7 +863,7 @@ static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__18; lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static uint32_t l_Lean_Elab_Term_instInhabitedSavedState___closed__3; +static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__3; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens___closed__1; lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_RecDepth___hyg_4____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1019,7 +1021,7 @@ lean_object* l_Lean_Elab_Term_saveContext___boxed(lean_object*, lean_object*, le static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSomeContext___closed__3; lean_object* l_Lean_Elab_Term_saveState(lean_object*); lean_object* l_Lean_Elab_Term_Context_sectionFVars___default; -static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__4; +static uint32_t l_Lean_Elab_Term_instInhabitedSavedState___closed__4; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_4454____closed__3; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__1; @@ -1044,6 +1046,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__1(lean_o lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_levelMVarToParam___lambda__1(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSavedContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1155,7 +1158,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___l lean_object* l_Lean_Elab_Term_TermElabM_toIO_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevelNames___boxed(lean_object*); -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setMessageLog___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; @@ -1187,7 +1189,6 @@ lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lea lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12528_(lean_object*); static lean_object* l_Lean_Elab_Term_termElabAttribute___closed__10; lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13(lean_object*); @@ -1198,7 +1199,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe__ lean_object* l_Lean_Elab_Term_termElabAttribute___lambda__8___boxed(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_process___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2249,10 +2249,22 @@ return x_2; static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_State_infoState___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__3() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__1; -x_3 = l_Lean_Elab_Term_State_infoState___default___closed__3; +x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__2; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -2260,7 +2272,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static uint32_t _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__3() { +static uint32_t _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__4() { _start: { lean_object* x_1; uint32_t x_2; @@ -2269,11 +2281,11 @@ x_2 = lean_uint32_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__4() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__5() { _start: { uint32_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__3; +x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__4; x_2 = 0; x_3 = lean_box(0); x_4 = l_Lean_Elab_Term_instInhabitedState___closed__1; @@ -2287,14 +2299,14 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 4, x_2); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__1; -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__2; +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__3; x_3 = l_Lean_Elab_Term_instInhabitedState___closed__1; -x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__4; +x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -2303,7 +2315,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__6() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2315,7 +2327,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__7() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__8() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -2327,14 +2339,14 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__5; +x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__6; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__6; -x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__7; +x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__7; +x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__8; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -2343,7 +2355,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2360,7 +2372,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__10() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2372,24 +2384,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__12() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_State_infoState___default___closed__2; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__13() { @@ -2407,6 +2407,18 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__14() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_State_infoState___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__15() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -2415,7 +2427,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__15() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -2426,7 +2438,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__16() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2438,14 +2450,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__17() { +static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__10; -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__12; -x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__13; -x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__16; +x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__11; +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__13; +x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__14; +x_4 = l_Lean_Elab_Term_instInhabitedSavedState___closed__17; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -2457,46 +2469,32 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__9; -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__17; -x_3 = l_Lean_NameSet_empty; -x_4 = l_Lean_Elab_Term_instInhabitedState___closed__4; -x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 3, x_4); -return x_5; -} -} static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__19() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__8; -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__18; -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* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__10; +x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__18; +x_4 = l_Lean_Elab_Term_instInhabitedState___closed__4; +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); +lean_ctor_set(x_5, 3, x_4); +return x_5; } } static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__20() { _start: { -uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = 0; -x_2 = l_Lean_Elab_Term_State_infoState___default___closed__3; -x_3 = l_Lean_Elab_Term_instInhabitedState___closed__4; -x_4 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_4, 0, x_2); -lean_ctor_set(x_4, 1, x_3); -lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__9; +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__19; +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; } } static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__21() { @@ -2505,7 +2503,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_instInhabitedState___closed__4; -x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__20; +x_3 = l_Lean_Elab_Term_instInhabitedState___closed__5; x_4 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_1); @@ -2520,7 +2518,7 @@ static lean_object* _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__22( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__19; +x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__20; x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__21; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -8483,7 +8481,7 @@ _start: { lean_object* x_1; uint32_t x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__3; +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__4; x_3 = l_Lean_Elab_Term_mkTermElabAttribute___closed__1; x_4 = lean_alloc_ctor(0, 2, 4); lean_ctor_set(x_4, 0, x_1); @@ -13470,7 +13468,272 @@ return x_73; } } } -lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_14; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_5, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +x_17 = !lean_is_exclusive(x_6); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_6, 0); +x_19 = lean_ctor_get(x_6, 1); +x_20 = lean_ctor_get(x_15, 0); +lean_inc(x_20); +x_21 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_19, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_inc(x_20); +x_22 = l_Lean_mkMVar(x_20); +x_23 = lean_box(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_24 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); +lean_closure_set(x_24, 0, x_22); +lean_closure_set(x_24, 1, x_1); +lean_closure_set(x_24, 2, x_23); +lean_closure_set(x_24, 3, x_15); +lean_closure_set(x_24, 4, x_2); +x_25 = lean_box(0); +lean_inc(x_20); +x_26 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_19, x_20, x_25); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_27 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_20, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +lean_ctor_set(x_6, 1, x_26); +x_5 = x_16; +x_13 = x_30; +goto _start; +} +else +{ +lean_object* x_32; uint8_t x_33; lean_object* x_34; +lean_dec(x_18); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = 1; +x_34 = lean_box(x_33); +lean_ctor_set(x_6, 1, x_26); +lean_ctor_set(x_6, 0, x_34); +x_5 = x_16; +x_13 = x_32; +goto _start; +} +} +else +{ +uint8_t x_36; +lean_dec(x_26); +lean_free_object(x_6); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) +{ +return x_27; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_27, 0); +x_38 = lean_ctor_get(x_27, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_27); +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_dec(x_21); +lean_dec(x_20); +lean_dec(x_15); +x_5 = x_16; +goto _start; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_6, 0); +x_42 = lean_ctor_get(x_6, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_6); +x_43 = lean_ctor_get(x_15, 0); +lean_inc(x_43); +x_44 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_42, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_inc(x_43); +x_45 = l_Lean_mkMVar(x_43); +x_46 = lean_box(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_47 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); +lean_closure_set(x_47, 0, x_45); +lean_closure_set(x_47, 1, x_1); +lean_closure_set(x_47, 2, x_46); +lean_closure_set(x_47, 3, x_15); +lean_closure_set(x_47, 4, x_2); +x_48 = lean_box(0); +lean_inc(x_43); +x_49 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_42, x_43, x_48); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_50 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_43, x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_41); +lean_ctor_set(x_54, 1, x_49); +x_5 = x_16; +x_6 = x_54; +x_13 = x_53; +goto _start; +} +else +{ +lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_41); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +lean_dec(x_50); +x_57 = 1; +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_49); +x_5 = x_16; +x_6 = x_59; +x_13 = x_56; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_49); +lean_dec(x_41); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_61 = lean_ctor_get(x_50, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_50, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_63 = x_50; +} else { + lean_dec_ref(x_50); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; +lean_dec(x_44); +lean_dec(x_43); +lean_dec(x_15); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_41); +lean_ctor_set(x_65, 1, x_42); +x_5 = x_16; +x_6 = x_65; +goto _start; +} +} +} +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { if (lean_obj_tag(x_4) == 0) @@ -13500,36 +13763,36 @@ lean_dec(x_4); x_16 = !lean_is_exclusive(x_5); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_17 = lean_ctor_get(x_5, 0); x_18 = lean_ctor_get(x_5, 1); x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); -x_20 = l_Lean_NameSet_contains(x_18, x_19); -if (x_20 == 0) +x_20 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_18, x_19); +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; lean_object* x_26; -x_21 = lean_box(0); lean_inc(x_19); -x_22 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_18, x_19, x_21); -lean_inc(x_19); -x_23 = l_Lean_mkMVar(x_19); -x_24 = lean_box(x_3); +x_21 = l_Lean_mkMVar(x_19); +x_22 = lean_box(x_3); lean_inc(x_2); lean_inc(x_1); -x_25 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); -lean_closure_set(x_25, 0, x_23); -lean_closure_set(x_25, 1, x_1); -lean_closure_set(x_25, 2, x_24); -lean_closure_set(x_25, 3, x_14); -lean_closure_set(x_25, 4, x_2); +x_23 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); +lean_closure_set(x_23, 0, x_21); +lean_closure_set(x_23, 1, x_1); +lean_closure_set(x_23, 2, x_22); +lean_closure_set(x_23, 3, x_14); +lean_closure_set(x_23, 4, x_2); +x_24 = lean_box(0); +lean_inc(x_19); +x_25 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_18, x_19, x_24); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_26 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_19, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_26 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_19, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; uint8_t x_28; @@ -13543,7 +13806,7 @@ lean_object* x_29; x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); lean_dec(x_26); -lean_ctor_set(x_5, 1, x_22); +lean_ctor_set(x_5, 1, x_25); x_4 = x_15; x_12 = x_29; goto _start; @@ -13557,7 +13820,7 @@ lean_inc(x_31); lean_dec(x_26); x_32 = 1; x_33 = lean_box(x_32); -lean_ctor_set(x_5, 1, x_22); +lean_ctor_set(x_5, 1, x_25); lean_ctor_set(x_5, 0, x_33); x_4 = x_15; x_12 = x_31; @@ -13567,7 +13830,7 @@ goto _start; else { uint8_t x_35; -lean_dec(x_22); +lean_dec(x_25); lean_free_object(x_5); lean_dec(x_17); lean_dec(x_15); @@ -13601,6 +13864,7 @@ return x_38; } else { +lean_dec(x_20); lean_dec(x_19); lean_dec(x_14); x_4 = x_15; @@ -13609,7 +13873,7 @@ goto _start; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_40 = lean_ctor_get(x_5, 0); x_41 = lean_ctor_get(x_5, 1); lean_inc(x_41); @@ -13617,31 +13881,31 @@ lean_inc(x_40); lean_dec(x_5); x_42 = lean_ctor_get(x_14, 0); lean_inc(x_42); -x_43 = l_Lean_NameSet_contains(x_41, x_42); -if (x_43 == 0) +x_43 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_41, x_42); +if (lean_obj_tag(x_43) == 0) { 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_box(0); lean_inc(x_42); -x_45 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_41, x_42, x_44); -lean_inc(x_42); -x_46 = l_Lean_mkMVar(x_42); -x_47 = lean_box(x_3); +x_44 = l_Lean_mkMVar(x_42); +x_45 = lean_box(x_3); lean_inc(x_2); lean_inc(x_1); -x_48 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); -lean_closure_set(x_48, 0, x_46); -lean_closure_set(x_48, 1, x_1); -lean_closure_set(x_48, 2, x_47); -lean_closure_set(x_48, 3, x_14); -lean_closure_set(x_48, 4, x_2); +x_46 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__2___boxed), 12, 5); +lean_closure_set(x_46, 0, x_44); +lean_closure_set(x_46, 1, x_1); +lean_closure_set(x_46, 2, x_45); +lean_closure_set(x_46, 3, x_14); +lean_closure_set(x_46, 4, x_2); +x_47 = lean_box(0); +lean_inc(x_42); +x_48 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_41, x_42, x_47); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_49 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_42, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_49 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_42, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; uint8_t x_51; @@ -13657,7 +13921,7 @@ lean_inc(x_52); lean_dec(x_49); x_53 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_53, 0, x_40); -lean_ctor_set(x_53, 1, x_45); +lean_ctor_set(x_53, 1, x_48); x_4 = x_15; x_5 = x_53; x_12 = x_52; @@ -13674,7 +13938,7 @@ x_56 = 1; x_57 = lean_box(x_56); x_58 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_45); +lean_ctor_set(x_58, 1, x_48); x_4 = x_15; x_5 = x_58; x_12 = x_55; @@ -13684,7 +13948,7 @@ goto _start; else { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_45); +lean_dec(x_48); lean_dec(x_40); lean_dec(x_15); lean_dec(x_11); @@ -13720,6 +13984,7 @@ return x_63; else { lean_object* x_64; +lean_dec(x_43); lean_dec(x_42); lean_dec(x_14); x_64 = lean_alloc_ctor(0, 2, 0); @@ -13736,13 +14001,13 @@ goto _start; static lean_object* _init_l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1() { _start: { -uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = 0; -x_2 = l_Lean_NameSet_empty; -x_3 = lean_box(x_1); +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = 0; +x_3 = lean_box(x_2); x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 1, x_1); return x_4; } } @@ -13767,7 +14032,7 @@ x_17 = lean_ctor_get(x_13, 2); lean_inc(x_17); lean_dec(x_13); x_18 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; -x_19 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(x_1, x_2, x_16, x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_19 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6(x_1, x_2, x_16, x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -13891,13 +14156,24 @@ lean_dec(x_2); return x_14; } } -lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_3); +lean_dec(x_3); +x_15 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_15; +} +} +lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_14; } } @@ -30691,7 +30967,6 @@ lean_dec(x_16); x_19 = l_Lean_Elab_Term_termElabAttribute; lean_inc(x_14); x_20 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_19, x_18, x_14); -lean_dec(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; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -34204,7 +34479,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_6, 5); lean_inc(x_14); lean_inc(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__1___boxed), 4, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__1), 4, 1); lean_closure_set(x_15, 0, x_12); lean_inc(x_13); x_16 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -34563,7 +34838,7 @@ x_52 = lean_ctor_get(x_50, 0); lean_inc(x_52); lean_dec(x_50); lean_inc(x_1); -x_53 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +x_53 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f), 4, 2); lean_closure_set(x_53, 0, x_52); lean_closure_set(x_53, 1, x_1); lean_inc(x_11); @@ -34901,7 +35176,7 @@ x_121 = lean_ctor_get(x_119, 0); lean_inc(x_121); lean_dec(x_119); lean_inc(x_1); -x_122 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +x_122 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f), 4, 2); lean_closure_set(x_122, 0, x_121); lean_closure_set(x_122, 1, x_1); lean_inc(x_11); @@ -35257,7 +35532,7 @@ x_195 = lean_ctor_get(x_193, 0); lean_inc(x_195); lean_dec(x_193); lean_inc(x_1); -x_196 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +x_196 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f), 4, 2); lean_closure_set(x_196, 0, x_195); lean_closure_set(x_196, 1, x_1); lean_inc(x_11); @@ -36091,15 +36366,6 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__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_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -38302,7 +38568,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5, x_6, x_7, x_15); +x_16 = l_Lean_Meta_mkFreshLevelMVar(x_4, x_5, x_6, x_7, x_15); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -38490,7 +38756,7 @@ lean_object* l_Lean_Elab_Term_elabType(lean_object* x_1, lean_object* x_2, lean_ _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; -x_9 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_mkFreshLevelMVar(x_4, x_5, x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -45925,8 +46191,8 @@ static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_State_infoState___default___closed__3; -x_2 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; +x_1 = l_Lean_Elab_Term_State_infoState___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -45936,10 +46202,22 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; +x_2 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___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; +} +} +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__4; -x_3 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; +x_3 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6; x_4 = l_Lean_Elab_Term_instInhabitedState___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 5, 0); @@ -45951,23 +46229,23 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7() { +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Term_instInhabitedSavedState___closed__9; -x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__17; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_instInhabitedSavedState___closed__10; +x_3 = l_Lean_Elab_Term_instInhabitedSavedState___closed__18; x_4 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -45977,7 +46255,7 @@ x_3 = lean_nat_add(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__10() { _start: { lean_object* x_1; @@ -45985,21 +46263,21 @@ x_1 = lean_mk_string("_uniq"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__9; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__10; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__11; x_2 = lean_unsigned_to_nat(1u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -46007,7 +46285,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -46033,9 +46311,9 @@ x_10 = lean_box(0); x_33 = l_Lean_maxRecDepth; x_34 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_3, x_33); x_35 = l_Lean_Core_getMaxHeartbeats(x_3); -x_36 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__8; -x_37 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__11; -x_38 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12; +x_36 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__9; +x_37 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12; +x_38 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13; x_39 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_39, 0, x_2); lean_ctor_set(x_39, 1, x_36); @@ -46073,7 +46351,7 @@ x_50 = lean_st_ref_get(x_48, x_49); x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec(x_50); -x_52 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7; +x_52 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__8; x_53 = lean_st_mk_ref(x_52, x_51); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); @@ -46082,7 +46360,7 @@ lean_inc(x_55); lean_dec(x_53); x_56 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSomeContext; x_57 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3; -x_58 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6; +x_58 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7; lean_inc(x_48); lean_inc(x_46); lean_inc(x_54); @@ -51023,8 +51301,8 @@ lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSavedState___closed__1); l_Lean_Elab_Term_instInhabitedSavedState___closed__2 = _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSavedState___closed__2); l_Lean_Elab_Term_instInhabitedSavedState___closed__3 = _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSavedState___closed__3); l_Lean_Elab_Term_instInhabitedSavedState___closed__4 = _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSavedState___closed__4); l_Lean_Elab_Term_instInhabitedSavedState___closed__5 = _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__5(); lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSavedState___closed__5); l_Lean_Elab_Term_instInhabitedSavedState___closed__6 = _init_l_Lean_Elab_Term_instInhabitedSavedState___closed__6(); @@ -51739,6 +52017,8 @@ l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__11 = _init_l_Lean_Elab_T lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__11); l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12(); lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12); +l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13); l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1(); lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1); l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Util.c b/stage0/stdlib/Lean/Elab/Util.c index 20ed06eef9..35aecfe21d 100644 --- a/stage0/stdlib/Lean/Elab/Util.c +++ b/stage0/stdlib/Lean/Elab/Util.c @@ -35,7 +35,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); static lean_object* l_Lean_Elab_macroAttribute___closed__1; static lean_object* l_Lean_Elab_macroAttribute___closed__12; static lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__3; -lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM_match__1(lean_object*); @@ -57,7 +56,6 @@ uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_ lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_expandMacroImpl_x3f___closed__1; lean_object* l_Lean_Elab_instMonadMacroAdapter___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_expandMacroImpl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_macroAttribute___lambda__6___boxed(lean_object*, lean_object*, lean_object*); @@ -2551,15 +2549,6 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_expandMacroImpl_x3f___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_Elab_expandMacroImpl_x3f(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_instMonadMacroAdapter___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3276,7 +3265,7 @@ _start: { 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_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed), 4, 1); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__1), 4, 1); lean_closure_set(x_13, 0, x_1); lean_inc(x_2); x_14 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed), 3, 1); @@ -3442,15 +3431,6 @@ x_9 = l_List_forM___at_Lean_Elab_liftMacroM___spec__2___rarg___lambda__3(x_1, x_ return x_9; } } -lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__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_Lean_Elab_liftMacroM___rarg___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index d6f580357c..29243f6fd0 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -84,10 +84,12 @@ static lean_object* l_Lean_mkSimpleThunkType___closed__3; uint8_t l_Lean_Expr_isProp(lean_object*); uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l_Lean_Expr_instHashableExpr___closed__1; +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__24; lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); lean_object* l_Lean_Expr_getAppArgs(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedBody_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedBody(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkAppN___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,6 +133,7 @@ lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit_match__1(lean_object*) lean_object* l_Lean_mkLHSGoal(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_309__match__1(lean_object*); static lean_object* l_Lean_mkDecIsTrue___closed__5; +lean_object* l_Lean_instFVarIdSetEmptyCollection; lean_object* l_Lean_mkMVar(lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux(lean_object*, lean_object*); @@ -152,6 +155,7 @@ static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Exp lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, lean_object*); static uint64_t l_Lean_Expr_mkData___closed__3; lean_object* l_Lean_annotation_x3f___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1(lean_object*); uint64_t l_Lean_Expr_mkDataForBinder(uint64_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Expr_setPPExplicit(lean_object*, uint8_t); @@ -202,6 +206,7 @@ lean_object* l_Lean_Expr_isNatLit_match__1___rarg(lean_object*, lean_object*, le static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__3; lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); lean_object* l_Lean_isLHSGoal_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008____boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArgD(lean_object*, lean_object*, lean_object*); uint64_t l_List_foldl___at_Lean_mkConst___spec__1(uint64_t, lean_object*); lean_object* l_List_mapTRAux___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,6 +215,8 @@ static lean_object* l_Lean_Expr_getAppArgs___closed__1; static lean_object* l_Lean_mkNatLit___closed__2; uint8_t l_Lean_Level_hasParam(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__14; +uint8_t l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008_(lean_object*, lean_object*); +lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isHeadBetaTargetFn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -232,6 +239,7 @@ lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); lean_object* l_Lean_instCoeExprExprStructEq___boxed(lean_object*); static lean_object* l_Lean_Expr_updateForall_x21___closed__3; lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055__match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__18; lean_object* l_Lean_Expr_isNatLit_match__1(lean_object*); @@ -256,6 +264,7 @@ uint8_t l_UInt8_add(uint8_t, uint8_t); static lean_object* l_Lean_Expr_setPPExplicit___closed__4; lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); lean_object* l_Lean_mkFreshFVarId(lean_object*); +lean_object* l_Lean_instReprFVarId(lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_isExplicit_match__1(lean_object*); lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object*); static lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; @@ -269,6 +278,7 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Expr_natLit_x3f___boxed(lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); static lean_object* l_Lean_mkOr___closed__3; +static lean_object* l_Lean_instReprFVarId___closed__2; lean_object* l_Lean_Expr_Data_approxDepth___boxed(lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateFn___boxed(lean_object*, lean_object*); @@ -284,6 +294,7 @@ uint8_t l_Lean_Expr_Data_hasExprMVar(uint64_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_type(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubstArray(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBTree_forIn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_bindingName_x21___closed__3; lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstOf___boxed(lean_object*, lean_object*); @@ -291,6 +302,7 @@ lean_object* lean_expr_mk_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_isSort_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instBEqBinderInfo; static lean_object* l_Lean_Expr_updateSort_x21___closed__3; +static lean_object* l_Lean_instReprFVarId___closed__1; uint64_t l_Lean_BinderInfo_toUInt64(uint8_t); lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain_match__1(lean_object*); static lean_object* l_Lean_Expr_letName_x21___closed__3; @@ -298,10 +310,12 @@ static lean_object* l_Lean_mkEM___closed__3; lean_object* l_Lean_Expr_updateLambda_x21(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98_(lean_object*, lean_object*); +static lean_object* l_Lean_instHashableFVarId___closed__1; lean_object* l_Lean_Expr_isProj_match__1(lean_object*); static lean_object* l_Lean_Expr_updateForall_x21___closed__2; static lean_object* l_Lean_Expr_updateLambdaE_x21___closed__2; lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_instReprFVarId___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__2; lean_object* l_Lean_BinderInfo_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_Expr_inferImplicit_match__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -322,11 +336,13 @@ static lean_object* l_Lean_Literal_type___closed__6; uint8_t l_Lean_Expr_hasLevelParam(lean_object*); lean_object* l_Lean_instCoeExprExprStructEq(lean_object*); lean_object* l_Lean_Expr_updateConst_x21(lean_object*, lean_object*); +lean_object* l_Lean_instEmptyCollectionFVarIdMap(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__22; lean_object* l_Lean_Expr_isConst_match__1(lean_object*); +lean_object* l_Lean_instFVarIdSetInhabited; lean_object* l_Lean_Expr_getRevArg_x21_match__1(lean_object*); lean_object* l_Lean_Expr_isConstOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isLambda_match__1(lean_object*); @@ -343,12 +359,14 @@ lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit_match__1___rarg(lean_o lean_object* l_Lean_BinderInfo_isInstImplicit_match__1(lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055__match__1(lean_object*); static lean_object* l_Lean_isLHSGoal_x3f___closed__1; uint8_t lean_expr_binder_info(lean_object*); static uint64_t l_Lean_Expr_mkData___closed__2; lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l_Lean_Expr_isLit_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Expr_isHeadBetaTargetFn_match__1(lean_object*); uint8_t l_Lean_BinderInfo_isStrictImplicit(uint8_t); lean_object* l_Lean_Expr_isMData_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -375,6 +393,7 @@ static lean_object* l_Lean_mkDecIsTrue___closed__1; lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instDecidableLt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isForall_match__1(lean_object*); lean_object* l_Lean_BinderInfo_isExplicit_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object*); @@ -446,6 +465,7 @@ static lean_object* l_Lean_Expr_updateProj_x21___closed__3; lean_object* l_Lean_Expr_hasAnyFVar_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Literal_type___closed__2; lean_object* l_Lean_Expr_mkDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object*); lean_object* l_Lean_Expr_instantiate___boxed(lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30_(lean_object*, lean_object*); static lean_object* l_Lean_mkSimpleThunk___closed__1; @@ -528,12 +548,15 @@ lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__27; uint8_t l_Lean_instInhabitedBinderInfo; static lean_object* l_Lean_Expr_updateLambda_x21___closed__1; +lean_object* l_Lean_instBEqFVarId; lean_object* l_Lean_Expr_mkDataForLet___boxed__const__1; +lean_object* l_Lean_instInhabitedFVarId; static lean_object* l_Lean_Expr_updateProj_x21___closed__1; lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__4; static lean_object* l_Lean_mkNatLit___closed__3; lean_object* l_Lean_ExprStructEq_beq_match__1___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedMVarId; lean_object* l_Lean_Expr_isProj___boxed(lean_object*); static lean_object* l_Lean_Expr_updateLambda_x21___closed__2; static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362____closed__2; @@ -620,6 +643,7 @@ lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; static lean_object* l_Lean_Expr_appArg_x21___closed__2; lean_object* l_Lean_mkApp7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLambda_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30____boxed(lean_object*, lean_object*); lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); @@ -687,8 +711,12 @@ static lean_object* l_Lean_instHashableLiteral___closed__1; lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); lean_object* lean_expr_mk_fvar(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Expr_setAppPPExplicitForExposingMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_instFVarIdHashSetInhabited; lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055____boxed(lean_object*); +lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_instForInFVarIdSetFVarId___closed__1; lean_object* l_Lean_Expr_updateProj___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isStringLit(lean_object*); lean_object* l_Lean_mkFreshMVarId(lean_object*); @@ -699,10 +727,12 @@ lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Expr_Data_hasFVar___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_mkAppRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isProj(lean_object*); +lean_object* l_Lean_instFVarIdHashSetEmptyCollection; static lean_object* l_Lean_instReprLiteral___closed__1; uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_309_(uint8_t, uint8_t); lean_object* l_Lean_ExprStructEq_hash_match__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_binderInfo(lean_object*); +lean_object* l_Lean_instHashableFVarId; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); uint8_t l_Lean_Expr_isOptParam(lean_object*); lean_object* l_Lean_Expr_mdataExpr_x21___boxed(lean_object*); @@ -712,6 +742,7 @@ lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_ctorName___closed__12; lean_object* l_Lean_mkApp2(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_instForInFVarIdSetFVarId___closed__2; lean_object* l_Lean_Expr_instBEqExpr; lean_object* l_Lean_instInhabitedExprStructEq; uint8_t l_List_foldr___at_Lean_mkConst___spec__3(uint8_t, lean_object*); @@ -722,6 +753,7 @@ lean_object* l_Lean_mkAnd(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedBody_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint32_t lean_expr_loose_bvar_range(lean_object*); lean_object* l_Lean_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_instBEqFVarId___closed__1; lean_object* l_Lean_Expr_mkAppRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateForallE_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isBVar_match__1(lean_object*); @@ -729,6 +761,7 @@ uint8_t l_Lean_instBEqData__1(uint64_t, uint64_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkAppN___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParamsArray___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubst_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_instForInFVarIdSetFVarId(lean_object*); lean_object* l_Lean_Expr_mkData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_instToStringExprStructEq(lean_object*); lean_object* l_Lean_Expr_isProp_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -746,6 +779,7 @@ lean_object* l_Lean_Expr_isAtomic___boxed(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux_match__1(lean_object*); lean_object* l_Lean_Expr_Data_nonDepLet___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_362__match__1(lean_object*); +lean_object* l_Lean_instInhabitedFVarIdMap(lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Level_instantiateParams(lean_object*, lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); @@ -811,6 +845,7 @@ lean_object* l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30_ lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_Expr_getRevArg_x21___closed__2; static lean_object* l_Lean_Expr_updateForallE_x21___closed__1; +static lean_object* l_Lean_instFVarIdHashSetInhabited___closed__1; lean_object* l_Lean_Expr_hasAnyFVar_visit(lean_object*, lean_object*); lean_object* lean_expr_update_const(lean_object*, lean_object*); static lean_object* l_Lean_Expr_updateSort_x21___closed__1; @@ -3487,6 +3522,253 @@ x_17 = lean_box_uint64(x_16); return x_17; } } +static lean_object* _init_l_Lean_instInhabitedFVarId() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_apply_2(x_3, x_1, x_2); +return x_5; +} +} +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___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___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008__match__1___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +uint8_t l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008_(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = lean_name_eq(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_instBEqFVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_beqFVarId____x40_Lean_Expr___hyg_1008____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instBEqFVarId() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instBEqFVarId___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055__match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055__match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055__match__1___rarg), 2, 0); +return x_2; +} +} +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object* x_1) { +_start: +{ +uint64_t x_2; uint64_t x_3; uint64_t x_4; +x_2 = 0; +x_3 = l_Lean_Name_hash(x_1); +x_4 = lean_uint64_mix_hash(x_2, x_3); +return x_4; +} +} +lean_object* l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055____boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instHashableFVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instHashableFVarId() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instHashableFVarId___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_instReprFVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`"); +return x_1; +} +} +static lean_object* _init_l_Lean_instReprFVarId___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_instReprFVarId___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_instReprFVarId(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = 1; +x_4 = l_Lean_Name_toString(x_1, x_3); +x_5 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_5, 0, x_4); +x_6 = l_Lean_instReprFVarId___closed__2; +x_7 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Lean_instReprFVarId___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_instReprFVarId(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instFVarIdSetInhabited() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_instFVarIdSetEmptyCollection() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_instForInFVarIdSetFVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instForInFVarIdSetFVarId___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_instForInFVarIdSetFVarId___closed__1; +x_2 = lean_alloc_closure((void*)(l_Std_RBTree_forIn___boxed), 4, 3); +lean_closure_set(x_2, 0, lean_box(0)); +lean_closure_set(x_2, 1, x_1); +lean_closure_set(x_2, 2, lean_box(0)); +return x_2; +} +} +lean_object* l_Lean_instForInFVarIdSetFVarId(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_instForInFVarIdSetFVarId___closed__2; +return x_2; +} +} +static lean_object* _init_l_Lean_instFVarIdHashSetInhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashSetImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_instFVarIdHashSetInhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instFVarIdHashSetInhabited___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_instFVarIdHashSetEmptyCollection() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instFVarIdHashSetInhabited___closed__1; +return x_1; +} +} +lean_object* l_Lean_instEmptyCollectionFVarIdMap(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +lean_object* l_Lean_instInhabitedFVarIdMap(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} static uint64_t _init_l_Lean_instInhabitedExpr___closed__1() { _start: { @@ -5239,7 +5521,7 @@ _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; uint64_t x_9; lean_object* x_10; x_2 = 13; -x_3 = l_Lean_Name_hash(x_1); +x_3 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_1); x_4 = lean_uint64_mix_hash(x_2, x_3); x_5 = 0; x_6 = lean_unsigned_to_nat(0u); @@ -5257,7 +5539,7 @@ _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; uint64_t x_9; lean_object* x_10; x_2 = 17; -x_3 = l_Lean_Name_hash(x_1); +x_3 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_1); x_4 = lean_uint64_mix_hash(x_2, x_3); x_5 = 0; x_6 = lean_unsigned_to_nat(0u); @@ -9004,7 +9286,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_getRevArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(526u); +x_3 = lean_unsigned_to_nat(545u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_getRevArg_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9319,7 +9601,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_appFn_x21___closed__1; -x_3 = lean_unsigned_to_nat(546u); +x_3 = lean_unsigned_to_nat(565u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9369,7 +9651,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_appArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(550u); +x_3 = lean_unsigned_to_nat(569u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9698,7 +9980,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_constName_x21___closed__1; -x_3 = lean_unsigned_to_nat(569u); +x_3 = lean_unsigned_to_nat(588u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9777,7 +10059,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_constLevels_x21___closed__1; -x_3 = lean_unsigned_to_nat(577u); +x_3 = lean_unsigned_to_nat(596u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9835,7 +10117,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bvarIdx_x21___closed__1; -x_3 = lean_unsigned_to_nat(581u); +x_3 = lean_unsigned_to_nat(600u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Expr_bvarIdx_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9893,7 +10175,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_fvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(585u); +x_3 = lean_unsigned_to_nat(604u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_fvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9913,7 +10195,7 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_instInhabitedName; +x_3 = l_Lean_instInhabitedFVarId; x_4 = l_Lean_Expr_fvarId_x21___closed__3; x_5 = lean_panic_fn(x_3, x_4); return x_5; @@ -9951,7 +10233,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_mvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(589u); +x_3 = lean_unsigned_to_nat(608u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_mvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9971,7 +10253,7 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_instInhabitedName; +x_3 = l_Lean_instInhabitedMVarId; x_4 = l_Lean_Expr_mvarId_x21___closed__3; x_5 = lean_panic_fn(x_3, x_4); return x_5; @@ -10066,7 +10348,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingName_x21___closed__1; -x_3 = lean_unsigned_to_nat(594u); +x_3 = lean_unsigned_to_nat(613u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10125,7 +10407,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingDomain_x21___closed__1; -x_3 = lean_unsigned_to_nat(599u); +x_3 = lean_unsigned_to_nat(618u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10184,7 +10466,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingBody_x21___closed__1; -x_3 = lean_unsigned_to_nat(604u); +x_3 = lean_unsigned_to_nat(623u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10243,7 +10525,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingInfo_x21___closed__1; -x_3 = lean_unsigned_to_nat(609u); +x_3 = lean_unsigned_to_nat(628u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10314,7 +10596,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_letName_x21___closed__1; -x_3 = lean_unsigned_to_nat(613u); +x_3 = lean_unsigned_to_nat(632u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10398,7 +10680,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_mdataExpr_x21___closed__1; -x_3 = lean_unsigned_to_nat(621u); +x_3 = lean_unsigned_to_nat(640u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_mdataExpr_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12778,7 +13060,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateApp_x21___closed__1; -x_3 = lean_unsigned_to_nat(889u); +x_3 = lean_unsigned_to_nat(908u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12850,7 +13132,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateConst_x21___closed__1; -x_3 = lean_unsigned_to_nat(898u); +x_3 = lean_unsigned_to_nat(917u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12929,7 +13211,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateSort_x21___closed__1; -x_3 = lean_unsigned_to_nat(907u); +x_3 = lean_unsigned_to_nat(926u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_updateSort_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13013,7 +13295,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateMData_x21___closed__1; -x_3 = lean_unsigned_to_nat(924u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateMData_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13084,7 +13366,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateProj_x21___closed__1; -x_3 = lean_unsigned_to_nat(929u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_updateProj_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13168,7 +13450,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateForall_x21___closed__1; -x_3 = lean_unsigned_to_nat(938u); +x_3 = lean_unsigned_to_nat(957u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13245,7 +13527,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateForallE_x21___closed__1; -x_3 = lean_unsigned_to_nat(943u); +x_3 = lean_unsigned_to_nat(962u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13333,7 +13615,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLambda_x21___closed__1; -x_3 = lean_unsigned_to_nat(952u); +x_3 = lean_unsigned_to_nat(971u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13410,7 +13692,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_3 = lean_unsigned_to_nat(957u); +x_3 = lean_unsigned_to_nat(976u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13488,7 +13770,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLet_x21___closed__1; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(985u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -16888,12 +17170,32 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_mkFreshFVarId___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_apply_2(x_4, lean_box(0), x_2); +return x_5; +} +} lean_object* l_Lean_mkFreshFVarId___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_mkFreshId___rarg(x_1, x_2); -return x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_inc(x_1); +x_4 = l_Lean_mkFreshId___rarg(x_1, x_2); +x_5 = lean_alloc_closure((void*)(l_Lean_mkFreshFVarId___rarg___lambda__1), 2, 1); +lean_closure_set(x_5, 0, x_1); +x_6 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_5); +return x_6; } } lean_object* l_Lean_mkFreshFVarId(lean_object* x_1) { @@ -16907,9 +17209,15 @@ return x_2; lean_object* l_Lean_mkFreshMVarId___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_mkFreshId___rarg(x_1, x_2); -return x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_inc(x_1); +x_4 = l_Lean_mkFreshId___rarg(x_1, x_2); +x_5 = lean_alloc_closure((void*)(l_Lean_mkFreshFVarId___rarg___lambda__1), 2, 1); +lean_closure_set(x_5, 0, x_1); +x_6 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_5); +return x_6; } } lean_object* l_Lean_mkFreshMVarId(lean_object* x_1) { @@ -17237,6 +17545,34 @@ l_Lean_Expr_mkDataForBinder___boxed__const__1 = _init_l_Lean_Expr_mkDataForBinde lean_mark_persistent(l_Lean_Expr_mkDataForBinder___boxed__const__1); l_Lean_Expr_mkDataForLet___boxed__const__1 = _init_l_Lean_Expr_mkDataForLet___boxed__const__1(); lean_mark_persistent(l_Lean_Expr_mkDataForLet___boxed__const__1); +l_Lean_instInhabitedFVarId = _init_l_Lean_instInhabitedFVarId(); +lean_mark_persistent(l_Lean_instInhabitedFVarId); +l_Lean_instBEqFVarId___closed__1 = _init_l_Lean_instBEqFVarId___closed__1(); +lean_mark_persistent(l_Lean_instBEqFVarId___closed__1); +l_Lean_instBEqFVarId = _init_l_Lean_instBEqFVarId(); +lean_mark_persistent(l_Lean_instBEqFVarId); +l_Lean_instHashableFVarId___closed__1 = _init_l_Lean_instHashableFVarId___closed__1(); +lean_mark_persistent(l_Lean_instHashableFVarId___closed__1); +l_Lean_instHashableFVarId = _init_l_Lean_instHashableFVarId(); +lean_mark_persistent(l_Lean_instHashableFVarId); +l_Lean_instReprFVarId___closed__1 = _init_l_Lean_instReprFVarId___closed__1(); +lean_mark_persistent(l_Lean_instReprFVarId___closed__1); +l_Lean_instReprFVarId___closed__2 = _init_l_Lean_instReprFVarId___closed__2(); +lean_mark_persistent(l_Lean_instReprFVarId___closed__2); +l_Lean_instFVarIdSetInhabited = _init_l_Lean_instFVarIdSetInhabited(); +lean_mark_persistent(l_Lean_instFVarIdSetInhabited); +l_Lean_instFVarIdSetEmptyCollection = _init_l_Lean_instFVarIdSetEmptyCollection(); +lean_mark_persistent(l_Lean_instFVarIdSetEmptyCollection); +l_Lean_instForInFVarIdSetFVarId___closed__1 = _init_l_Lean_instForInFVarIdSetFVarId___closed__1(); +lean_mark_persistent(l_Lean_instForInFVarIdSetFVarId___closed__1); +l_Lean_instForInFVarIdSetFVarId___closed__2 = _init_l_Lean_instForInFVarIdSetFVarId___closed__2(); +lean_mark_persistent(l_Lean_instForInFVarIdSetFVarId___closed__2); +l_Lean_instFVarIdHashSetInhabited___closed__1 = _init_l_Lean_instFVarIdHashSetInhabited___closed__1(); +lean_mark_persistent(l_Lean_instFVarIdHashSetInhabited___closed__1); +l_Lean_instFVarIdHashSetInhabited = _init_l_Lean_instFVarIdHashSetInhabited(); +lean_mark_persistent(l_Lean_instFVarIdHashSetInhabited); +l_Lean_instFVarIdHashSetEmptyCollection = _init_l_Lean_instFVarIdHashSetEmptyCollection(); +lean_mark_persistent(l_Lean_instFVarIdHashSetEmptyCollection); l_Lean_instInhabitedExpr___closed__1 = _init_l_Lean_instInhabitedExpr___closed__1(); l_Lean_instInhabitedExpr___closed__2 = _init_l_Lean_instInhabitedExpr___closed__2(); lean_mark_persistent(l_Lean_instInhabitedExpr___closed__2); diff --git a/stage0/stdlib/Lean/HeadIndex.c b/stage0/stdlib/Lean/HeadIndex.c index a0fc0295f1..3611713403 100644 --- a/stage0/stdlib/Lean/HeadIndex.c +++ b/stage0/stdlib/Lean/HeadIndex.c @@ -17,6 +17,7 @@ lean_object* l_Lean_Expr_toHeadIndex___boxed(lean_object*); static lean_object* l_Lean_Expr_toHeadIndex___closed__1; static lean_object* l_Lean_Expr_toHeadIndex___closed__2; lean_object* l_Lean_Expr_head___boxed(lean_object*); +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_Expr_toHeadIndex___closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -32,6 +33,7 @@ uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Expr_headNumArgs(lean_object*); lean_object* l_Lean_HeadIndex_instHashableHeadIndex; uint64_t lean_uint64_of_nat(lean_object*); +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_30_(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_HeadIndex_HeadIndex_hash_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -642,7 +644,7 @@ case 0: lean_object* x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; x_2 = lean_ctor_get(x_1, 0); x_3 = 11; -x_4 = l_Lean_Name_hash(x_2); +x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); x_5 = lean_uint64_mix_hash(x_3, x_4); return x_5; } @@ -651,7 +653,7 @@ case 1: lean_object* x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; x_6 = lean_ctor_get(x_1, 0); x_7 = 13; -x_8 = l_Lean_Name_hash(x_6); +x_8 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_6); x_9 = lean_uint64_mix_hash(x_7, x_8); return x_9; } diff --git a/stage0/stdlib/Lean/KeyedDeclsAttribute.c b/stage0/stdlib/Lean/KeyedDeclsAttribute.c index ff90dbe63a..25da2f3c9e 100644 --- a/stage0/stdlib/Lean/KeyedDeclsAttribute.c +++ b/stage0/stdlib/Lean/KeyedDeclsAttribute.c @@ -14,63 +14,82 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); +static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2; +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg(lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__7___boxed(lean_object*); +lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef(lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_KeyedDeclsAttribute_init___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__5; +size_t l_USize_add(size_t, size_t); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__3; lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1(lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5; lean_object* l_Lean_KeyedDeclsAttribute_init_match__2(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin(lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_insert(lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_init___spec__1___rarg___boxed(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___spec__1___rarg(lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5; +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__8(lean_object*); extern lean_object* l_Lean_builtinInitAttr; static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__6___closed__1; lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__6___boxed(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__4; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__9; +uint8_t l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__4(lean_object*, lean_object*); -lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1(lean_object*); +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7(lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__4(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_Def_evalKey___default___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__6___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1; static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2; static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__8; -lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__17; static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__4; +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__1; -static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5; static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__3; -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4(lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4; +lean_object* l_Lean_throwError___at_Lean_Core_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__4; lean_object* l_Lean_KeyedDeclsAttribute_getValues(lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__5(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_Def_builtinName___default; lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__10___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3; lean_object* l_id___rarg___boxed(lean_object*); +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_instHashableName; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__4___boxed(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___spec__1___rarg___boxed(lean_object*); -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6; lean_object* l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_KeyedDeclsAttribute_init___spec__5(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -82,57 +101,74 @@ lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__5(lean_obj lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__7(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__15; lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_init(lean_object*); +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2(lean_object*); lean_object* l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_KeyedDeclsAttribute_init___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(lean_object*, lean_object*); -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4; +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedOLeanEntry; lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___rarg(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__8___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__14; static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__18; -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_ExtensionState_table___default___spec__1___rarg(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__5; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__2; -static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13(lean_object*, lean_object*); +static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3; +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__1; lean_object* l_Lean_ofExcept___at_Lean_KeyedDeclsAttribute_init___spec__3(lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); size_t l_UInt64_toUSize(uint64_t); +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7(lean_object*, lean_object*); +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__2___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__3; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_139_(uint8_t, uint8_t); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___lambda__1___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__10___rarg(lean_object*, lean_object*); lean_object* l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert(lean_object*); +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__5; lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5(lean_object*); lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__1; lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_init___spec__1___rarg(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__6; lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__7(lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8(lean_object*); lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__3; static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__14; @@ -142,10 +178,13 @@ lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_KeyedDeclsAttribute_Def_evalKey___default___boxed(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___lambda__1___closed__2; lean_object* l_Lean_throwError___at_Lean_KeyedDeclsAttribute_init___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1(lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__10; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__5; +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4(lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___spec__1(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__1; @@ -154,136 +193,170 @@ uint64_t l_Lean_Name_hash(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4; lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_ExtensionState_table___default___spec__1___rarg___boxed(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__10; +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__7; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2; static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__2; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__9___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getValues___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert_match__1(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__13; static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__7; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6(lean_object*, lean_object*); +lean_object* l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init_match__3(lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); +lean_object* l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__4(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState(lean_object*); -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8(lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__2(lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert_match__1(lean_object*, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3; +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable(lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7(lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute(lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5; +lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1(lean_object*); lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_init___spec__1(lean_object*); +size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__2; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__9(lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7(lean_object*); -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2; +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3; lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5; lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6(lean_object*); +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin_match__1(lean_object*); -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__7; -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_newEntries___default; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_Def_evalKey___default(uint8_t); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5(lean_object*); -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1; +lean_object* l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3(lean_object*); +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erased___default; lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__6(lean_object*); +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getEntries(lean_object*); -static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1; +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__10(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_KeyedDeclsAttribute_init___spec__4(lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedOLeanEntry___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert(lean_object*); +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4; lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__8___rarg(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___boxed(lean_object*, lean_object*); static uint32_t l_Lean_instInhabitedKeyedDeclsAttribute___lambda__1___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_table___default(lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1; lean_object* l_Lean_Name_append(lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_addAndCompile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__2; +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(lean_object*, lean_object*); uint8_t l_Lean_Name_isAnonymous(lean_object*); lean_object* l_Lean_registerScopedEnvExtensionUnsafe___rarg(lean_object*, lean_object*); +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__1___closed__2; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__7___rarg(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_insert___rarg(lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___closed__6; lean_object* l_IO_ofExcept___at_Lean_KeyedDeclsAttribute_declareBuiltin___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__1(lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__19; -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1; +lean_object* l_Std_PersistentHashMap_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__11; +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6; lean_object* l_List_mapTRAux___at_Lean_KeyedDeclsAttribute_getValues___spec__1(lean_object*); -static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4; +static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1; +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___closed__2; -static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5; lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3(lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__5___rarg(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__6; +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedDef___closed__1; lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__6(lean_object*); lean_object* l_Lean_throwError___at_Lean_KeyedDeclsAttribute_init___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__12; lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_ExtensionState_table___default___spec__1(lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2; lean_object* l_Lean_ScopedEnvExtension_instInhabitedStateStack(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2; +static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2; lean_object* lean_decl_get_sorry_dep(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1; static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1; -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6; lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__3; static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1; -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__6___rarg___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4; +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_mkRef___rarg(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6(lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__5(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__11; +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__16; -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(lean_object*, lean_object*); -lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12(lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__4(lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3(lean_object*); +static lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4; +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init_match__1(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__8; static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__2; +uint8_t l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(lean_object*, lean_object*); uint32_t lean_uint32_of_nat(lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4; +lean_object* l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11___boxed(lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__3___boxed(lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_ofExcept___at_Lean_KeyedDeclsAttribute_declareBuiltin___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default; +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___closed__9; lean_object* l_List_mapTRAux___at_Lean_KeyedDeclsAttribute_getValues___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__2(lean_object*, lean_object*); @@ -291,8 +364,10 @@ static lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__1 lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Name_instBEqName; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10(lean_object*, lean_object*); lean_object* l_Lean_Attribute_Builtin_getId(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedKeyedDeclsAttribute___lambda__3(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__2(lean_object*); static lean_object* _init_l_Lean_KeyedDeclsAttribute_Def_builtinName___default() { _start: { @@ -526,6 +601,30 @@ lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__4; +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erased___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +return x_1; +} +} lean_object* l_Std_mkHashMap___at_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___spec__1___rarg(lean_object* x_1) { _start: { @@ -568,13 +667,16 @@ return x_4; static lean_object* _init_l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); x_2 = l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__2; -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; +x_3 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +x_4 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +lean_ctor_set(x_4, 3, x_3); +return x_4; } } lean_object* l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState(lean_object* x_1) { @@ -906,7 +1008,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -929,15 +1031,15 @@ return x_7; } } } -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert_match__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert_match__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg), 3, 0); +x_3 = lean_alloc_closure((void*)(l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert_match__1___rarg), 3, 0); return x_3; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -969,15 +1071,15 @@ return x_9; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3(lean_object* x_1) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed), 2, 0); return x_2; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; @@ -991,21 +1093,21 @@ x_7 = lean_usize_modn(x_6, x_4); lean_dec(x_4); x_8 = lean_array_uget(x_3, x_7); lean_dec(x_3); -x_9 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(x_2, x_8); +x_9 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(x_2, x_8); lean_dec(x_8); lean_dec(x_2); return x_9; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__2(lean_object* x_1) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__2___rarg), 2, 0); return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1037,15 +1139,15 @@ return x_9; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5(lean_object* x_1) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed), 2, 0); return x_2; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; @@ -1059,21 +1161,21 @@ x_7 = lean_usize_modn(x_6, x_4); lean_dec(x_4); x_8 = lean_array_uget(x_3, x_7); lean_dec(x_3); -x_9 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(x_2, x_8); +x_9 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(x_2, x_8); lean_dec(x_8); lean_dec(x_2); return x_9; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4(lean_object* x_1) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg), 2, 0); return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1105,15 +1207,15 @@ return x_9; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7(lean_object* x_1) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed), 2, 0); return x_2; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; @@ -1127,21 +1229,21 @@ x_7 = lean_usize_modn(x_6, x_4); lean_dec(x_4); x_8 = lean_array_uget(x_3, x_7); lean_dec(x_3); -x_9 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(x_2, x_8); +x_9 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(x_2, x_8); lean_dec(x_8); lean_dec(x_2); return x_9; } } -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6(lean_object* x_1) { +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg), 2, 0); return x_2; } } -lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -1161,7 +1263,7 @@ x_8 = l_Std_PersistentHashMap_find_x3f___rarg(x_6, x_7, x_5, x_2); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; -x_9 = l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(x_4, x_2); +x_9 = l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__4___rarg(x_4, x_2); return x_9; } else @@ -1192,20 +1294,20 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_1, 0); lean_inc(x_13); lean_dec(x_1); -x_14 = l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(x_13, x_2); +x_14 = l_Std_HashMapImp_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__6___rarg(x_13, x_2); return x_14; } } } -lean_object* l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1(lean_object* x_1) { +lean_object* l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg), 2, 0); return x_2; } } -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1282,15 +1384,15 @@ return x_30; } } } -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8(lean_object* x_1) { +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1367,15 +1469,15 @@ return x_30; } } } -lean_object* l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9(lean_object* x_1) { +lean_object* l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -1386,7 +1488,7 @@ lean_inc(x_4); lean_dec(x_3); lean_inc(x_4); lean_inc(x_1); -x_5 = l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(x_1, x_4); +x_5 = l_Lean_SMap_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__1___rarg(x_1, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -1394,7 +1496,7 @@ x_6 = lean_box(0); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_2); lean_ctor_set(x_7, 1, x_6); -x_8 = l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(x_1, x_4, x_7); +x_8 = l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__8___rarg(x_1, x_4, x_7); return x_8; } else @@ -1406,49 +1508,94 @@ lean_dec(x_5); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_2); lean_ctor_set(x_10, 1, x_9); -x_11 = l_Lean_SMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(x_1, x_4, x_10); +x_11 = l_Lean_SMap_insert___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__9___rarg(x_1, x_4, x_10); return x_11; } } } -lean_object* l_Lean_KeyedDeclsAttribute_Table_insert(lean_object* x_1) { +lean_object* l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_Table_insert___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___rarg), 2, 0); return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(x_1, x_2); +x_3 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__3___rarg(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(x_1, x_2); +x_3 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(x_1, x_2); +x_3 = l_Std_AssocList_find_x3f___at___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___spec__7___rarg(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_insert___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_inc(x_3); +x_5 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___rarg(x_6, x_2); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +x_9 = lean_ctor_get(x_3, 1); +lean_inc(x_9); +lean_dec(x_3); +x_10 = l_Lean_Name_instBEqName; +x_11 = l_Lean_instHashableName; +x_12 = lean_box(0); +lean_inc(x_9); +x_13 = l_Std_PersistentHashMap_insert___rarg(x_10, x_11, x_8, x_9, x_12); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +lean_dec(x_1); +x_15 = l_Std_PersistentHashMap_erase___rarg(x_10, x_11, x_14, x_9); +x_16 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_7); +lean_ctor_set(x_16, 2, x_13); +lean_ctor_set(x_16, 3, x_15); +return x_16; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_insert(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_ExtensionState_insert___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -1466,7 +1613,7 @@ lean_ctor_set(x_10, 1, x_3); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_4); -x_12 = l_Lean_KeyedDeclsAttribute_Table_insert___rarg(x_8, x_11); +x_12 = l___private_Lean_KeyedDeclsAttribute_0__Lean_KeyedDeclsAttribute_Table_insert___rarg(x_8, x_11); x_13 = lean_st_ref_set(x_6, x_12, x_9); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) @@ -1505,6 +1652,904 @@ lean_dec(x_1); return x_6; } } +lean_object* l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Lean_Name_instBEqName; +x_8 = l_Lean_instHashableName; +x_9 = lean_box(0); +x_10 = l_Std_PersistentHashMap_insert___rarg(x_7, x_8, x_1, x_6, x_9); +x_1 = x_10; +x_2 = x_4; +goto _start; +} +} +} +lean_object* l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 2); +lean_inc(x_6); +lean_dec(x_3); +lean_inc(x_1); +x_7 = lean_apply_3(x_1, x_2, x_4, x_5); +x_2 = x_7; +x_3 = x_6; +goto _start; +} +} +} +lean_object* l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_3 == x_4; +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = x_3 + x_8; +switch (lean_obj_tag(x_7)) { +case 0: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_dec(x_7); +lean_inc(x_1); +x_12 = lean_apply_3(x_1, x_5, x_10, x_11); +x_3 = x_9; +x_5 = x_12; +goto _start; +} +case 1: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_14); +lean_dec(x_7); +lean_inc(x_1); +x_15 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5___rarg(x_1, x_14, x_5); +x_3 = x_9; +x_5 = x_15; +goto _start; +} +default: +{ +x_3 = x_9; +goto _start; +} +} +} +else +{ +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5___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; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_5, x_5); +if (x_8 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = 0; +x_10 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg(x_1, x_4, x_9, x_10, x_3); +lean_dec(x_4); +return x_11; +} +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__7___rarg(x_1, x_12, x_13, lean_box(0), x_14, x_3); +lean_dec(x_13); +lean_dec(x_12); +return x_15; +} +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___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; lean_object* x_7; +lean_dec(x_3); +lean_dec(x_2); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__5___rarg(x_1, x_6, x_5); +return x_7; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__4___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_3 == x_4; +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = x_3 + x_8; +switch (lean_obj_tag(x_7)) { +case 0: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_dec(x_7); +lean_inc(x_1); +x_12 = lean_apply_3(x_1, x_5, x_10, x_11); +x_3 = x_9; +x_5 = x_12; +goto _start; +} +case 1: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_14); +lean_dec(x_7); +lean_inc(x_1); +x_15 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8___rarg(x_1, x_14, x_5); +x_3 = x_9; +x_5 = x_15; +goto _start; +} +default: +{ +x_3 = x_9; +goto _start; +} +} +} +else +{ +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8___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; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_5, x_5); +if (x_8 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = 0; +x_10 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg(x_1, x_4, x_9, x_10, x_3); +lean_dec(x_4); +return x_11; +} +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__7___rarg(x_1, x_12, x_13, lean_box(0), x_14, x_3); +lean_dec(x_13); +lean_dec(x_12); +return x_15; +} +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7___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_dec(x_3); +lean_dec(x_2); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__8___rarg(x_1, x_6, x_5); +return x_7; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_3 == x_4; +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; +x_7 = lean_array_uget(x_2, x_3); +lean_inc(x_1); +x_8 = l_Std_AssocList_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__3___rarg(x_1, x_5, x_7); +x_9 = 1; +x_10 = x_3 + x_9; +x_3 = x_10; +x_5 = x_8; +goto _start; +} +else +{ +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_3 == x_4; +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = x_3 + x_8; +switch (lean_obj_tag(x_7)) { +case 0: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_dec(x_7); +lean_inc(x_1); +x_12 = lean_apply_3(x_1, x_5, x_10, x_11); +x_3 = x_9; +x_5 = x_12; +goto _start; +} +case 1: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_14); +lean_dec(x_7); +lean_inc(x_1); +x_15 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12___rarg(x_1, x_14, x_5); +x_3 = x_9; +x_5 = x_15; +goto _start; +} +default: +{ +x_3 = x_9; +goto _start; +} +} +} +else +{ +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12___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; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_5, x_5); +if (x_8 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_3; +} +else +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = 0; +x_10 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_11 = l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg(x_1, x_4, x_9, x_10, x_3); +lean_dec(x_4); +return x_11; +} +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__7___rarg(x_1, x_12, x_13, lean_box(0), x_14, x_3); +lean_dec(x_13); +lean_dec(x_12); +return x_15; +} +} +} +lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11___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_dec(x_3); +lean_dec(x_2); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_PersistentHashMap_foldlMAux___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__12___rarg(x_1, x_6, x_5); +return x_7; +} +} +lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2___rarg(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; uint8_t x_9; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_7); +lean_dec(x_6); +x_10 = l_Lean_Name_instBEqName; +x_11 = l_Lean_instHashableName; +x_12 = l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__4___rarg(x_1, x_10, x_11, x_4, x_2); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_nat_dec_le(x_7, x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_7); +lean_dec(x_6); +x_14 = l_Lean_Name_instBEqName; +x_15 = l_Lean_instHashableName; +x_16 = l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__7___rarg(x_1, x_14, x_15, x_4, x_2); +return x_16; +} +else +{ +size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_17 = 0; +x_18 = lean_usize_of_nat(x_7); +lean_dec(x_7); +lean_inc(x_1); +x_19 = l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg(x_1, x_6, x_17, x_18, x_2); +lean_dec(x_6); +x_20 = l_Lean_Name_instBEqName; +x_21 = l_Lean_instHashableName; +x_22 = l_Std_PersistentHashMap_foldlM___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__11___rarg(x_1, x_20, x_21, x_4, x_19); +return x_22; +} +} +} +} +lean_object* l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = l_List_foldl___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__1___rarg(x_1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___lambda__1), 3, 0); +return x_1; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_box(0); +x_3 = l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1; +x_4 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +lean_inc(x_1); +x_5 = l_Lean_SMap_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__2___rarg(x_3, x_4, x_1); +x_6 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_1); +lean_ctor_set(x_6, 2, x_5); +lean_ctor_set(x_6, 3, x_4); +return x_6; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_mkStateOfTable(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg), 1, 0); +return x_2; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___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_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__6___rarg(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___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: +{ +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_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__9___rarg(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___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_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__10___rarg(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___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_Array_foldlMUnsafe_fold___at_Lean_KeyedDeclsAttribute_mkStateOfTable___spec__13___rarg(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___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: +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_1); +if (x_7 == 0) +{ +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; +x_8 = lean_ctor_get(x_1, 2); +x_9 = lean_ctor_get(x_1, 3); +x_10 = l_Lean_Name_instBEqName; +x_11 = l_Lean_instHashableName; +lean_inc(x_2); +x_12 = l_Std_PersistentHashMap_erase___rarg(x_10, x_11, x_8, x_2); +x_13 = lean_box(0); +x_14 = l_Std_PersistentHashMap_insert___rarg(x_10, x_11, x_9, x_2, x_13); +lean_ctor_set(x_1, 3, x_14); +lean_ctor_set(x_1, 2, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_6); +return x_15; +} +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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_16 = lean_ctor_get(x_1, 0); +x_17 = lean_ctor_get(x_1, 1); +x_18 = lean_ctor_get(x_1, 2); +x_19 = lean_ctor_get(x_1, 3); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_1); +x_20 = l_Lean_Name_instBEqName; +x_21 = l_Lean_instHashableName; +lean_inc(x_2); +x_22 = l_Std_PersistentHashMap_erase___rarg(x_20, x_21, x_18, x_2); +x_23 = lean_box(0); +x_24 = l_Std_PersistentHashMap_insert___rarg(x_20, x_21, x_19, x_2, x_23); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_16); +lean_ctor_set(x_25, 1, x_17); +lean_ctor_set(x_25, 2, x_22); +lean_ctor_set(x_25, 3, 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_6); +return x_26; +} +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'"); +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' does not have ["); +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("] attribute"); +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___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; uint8_t x_8; +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +lean_inc(x_3); +x_8 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_7, x_3); +if (x_8 == 0) +{ +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; uint8_t x_19; +lean_dec(x_1); +x_9 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_9, 0, x_3); +x_10 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2; +x_11 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4; +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_2); +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_throwError___at_Lean_Core_withIncRecDepth___spec__1(x_17, x_4, x_5, x_6); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_2); +x_23 = lean_box(0); +x_24 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___lambda__1(x_1, x_3, x_23, x_4, x_5, x_6); +return x_24; +} +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_ExtensionState_erase___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_KeyedDeclsAttribute_ExtensionState_erase___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_7; +} +} lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2384,6 +3429,189 @@ x_2 = lean_alloc_closure((void*)(l_Lean_ScopedEnvExtension_add___at_Lean_KeyedDe return x_2; } } +static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_ScopedEnvExtension_instInhabitedStateStack(lean_box(0), lean_box(0), lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1; +x_2 = l_Lean_instInhabitedPersistentEnvExtensionState___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Environment"); +return x_1; +} +} +static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.EnvExtensionInterfaceUnsafe.getState"); +return x_1; +} +} +static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3; +x_2 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4; +x_3 = lean_unsigned_to_nat(223u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_2, 2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2; +x_8 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5; +x_9 = lean_panic_fn(x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_array_fget(x_4, x_3); +x_11 = x_10; +return x_11; +} +} +} +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___boxed), 2, 0); +return x_2; +} +} +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___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_ctor_get(x_1, 0); +x_4 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg(x_3, x_2); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +return x_5; +} +} +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg___boxed), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState(lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.ScopedEnvExtension"); +return x_1; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.ScopedEnvExtension.getState"); +return x_1; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unreachable code has been reached"); +return x_1; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2; +x_2 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3; +x_3 = lean_unsigned_to_nat(157u); +x_4 = lean_unsigned_to_nat(16u); +x_5 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___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_ctor_get(x_1, 1); +x_4 = l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg(x_3, x_2); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1; +x_7 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5; +x_8 = lean_panic_fn(x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +return x_10; +} +} +} +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___boxed), 2, 0); +return x_2; +} +} lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -2412,15 +3640,12 @@ return x_7; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__2(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_box(0); +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg(x_1); x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_1); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_2); -return x_5; +lean_ctor_set(x_4, 1, x_2); +return x_4; } } lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -2478,28 +3703,7 @@ lean_inc(x_2); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__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; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_5, 0, x_3); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -lean_dec(x_1); -x_7 = l_Lean_KeyedDeclsAttribute_Table_insert___rarg(x_6, x_2); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_5); -lean_ctor_set(x_8, 1, x_7); -return x_8; -} -} -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; lean_object* x_11; lean_object* x_12; @@ -2712,55 +3916,154 @@ return x_51; } } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1() { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(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_1; -x_1 = lean_mk_string("attribute cannot be erased"); -return x_1; -} -} -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2() { -_start: +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg(x_1, x_10); +lean_dec(x_10); +x_12 = l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg(x_11, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_take(x_5, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) { -lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2; -x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4); -return x_6; -} -} -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1() { -_start: +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_alloc_closure((void*)(l_Lean_instInhabitedKeyedDeclsAttribute___lambda__4___boxed), 2, 1); +lean_closure_set(x_20, 0, x_13); +x_21 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_1, x_19, x_20); +lean_ctor_set(x_16, 0, x_21); +x_22 = lean_st_ref_set(x_5, x_16, x_17); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___boxed), 4, 0); -return x_1; +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(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) { +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +x_31 = lean_ctor_get(x_16, 2); +x_32 = lean_ctor_get(x_16, 3); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_16); +x_33 = lean_alloc_closure((void*)(l_Lean_instInhabitedKeyedDeclsAttribute___lambda__4___boxed), 2, 1); +lean_closure_set(x_33, 0, x_13); +x_34 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_1, x_29, x_33); +x_35 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 2, x_31); +lean_ctor_set(x_35, 3, x_32); +x_36 = lean_st_ref_set(x_5, x_35, x_17); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +x_39 = lean_box(0); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; +} +} +else +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_12); +if (x_41 == 0) +{ +return x_12; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_12, 0); +x_43 = lean_ctor_get(x_12, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_12); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +} +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_10 = 1; +lean_inc(x_1); x_11 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_2); lean_ctor_set_uint8(x_11, sizeof(void*)*2, x_10); lean_inc(x_5); -x_12 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___boxed), 9, 3); +x_12 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5___boxed), 9, 3); lean_closure_set(x_12, 0, x_3); lean_closure_set(x_12, 1, x_4); lean_closure_set(x_12, 2, x_5); -x_13 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1; +lean_inc(x_5); +x_13 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___boxed), 6, 2); +lean_closure_set(x_13, 0, x_5); +lean_closure_set(x_13, 1, x_1); x_14 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); @@ -2825,7 +4128,7 @@ return x_25; } } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1() { _start: { lean_object* x_1; @@ -2833,16 +4136,16 @@ x_1 = lean_mk_string("unexpected type at '"); return x_1; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3() { _start: { lean_object* x_1; @@ -2850,16 +4153,16 @@ x_1 = lean_mk_string("', '"); return x_1; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5() { _start: { lean_object* x_1; @@ -2867,16 +4170,16 @@ x_1 = lean_mk_string("' expected"); return x_1; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(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* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; lean_object* x_13; @@ -2921,11 +4224,11 @@ lean_dec(x_6); lean_dec(x_5); x_22 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_22, 0, x_3); -x_23 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2; +x_23 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4; +x_25 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); @@ -2934,7 +4237,7 @@ lean_ctor_set(x_27, 0, x_4); x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6; +x_29 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -3031,11 +4334,11 @@ lean_dec(x_6); lean_dec(x_5); x_56 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_56, 0, x_3); -x_57 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2; +x_57 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2; x_58 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4; +x_59 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4; x_60 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); @@ -3044,7 +4347,7 @@ lean_ctor_set(x_61, 0, x_4); x_62 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6; +x_63 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6; x_64 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); @@ -3114,7 +4417,7 @@ return x_73; } } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1() { _start: { lean_object* x_1; @@ -3122,16 +4425,16 @@ x_1 = lean_mk_string("invalid attribute '"); return x_1; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3() { _start: { lean_object* x_1; @@ -3139,16 +4442,16 @@ x_1 = lean_mk_string("', must be global"); return x_1; } } -static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4() { +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; uint8_t x_13; @@ -3165,11 +4468,11 @@ lean_dec(x_2); lean_dec(x_1); x_14 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_14, 0, x_5); -x_15 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2; +x_15 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4; +x_17 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -3200,11 +4503,37 @@ else lean_object* x_24; lean_object* x_25; lean_dec(x_5); x_24 = lean_box(0); -x_25 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(x_1, x_7, x_6, x_2, x_3, x_4, x_24, x_9, x_10, x_11); +x_25 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(x_1, x_7, x_6, x_2, x_3, x_4, x_24, x_9, x_10, x_11); return x_25; } } } +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("attribute cannot be erased"); +return x_1; +} +} +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(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 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2; +x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4); +return x_6; +} +} static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__1() { _start: { @@ -3248,7 +4577,7 @@ static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_ExtensionState_insert___rarg), 2, 0); return x_1; } } @@ -3260,6 +4589,14 @@ x_1 = lean_mk_string("(builtin) "); return x_1; } } +static lean_object* _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed), 4, 0); +return x_1; +} +} lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3326,13 +4663,13 @@ lean_ctor_set_uint8(x_28, sizeof(void*)*2, x_27); lean_inc(x_1); lean_inc(x_11); lean_inc(x_12); -x_29 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed), 11, 5); +x_29 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___boxed), 11, 5); lean_closure_set(x_29, 0, x_12); lean_closure_set(x_29, 1, x_11); lean_closure_set(x_29, 2, x_1); lean_closure_set(x_29, 3, x_2); lean_closure_set(x_29, 4, x_8); -x_30 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1; +x_30 = l_Lean_KeyedDeclsAttribute_init___rarg___closed__7; x_31 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_31, 0, x_28); lean_ctor_set(x_31, 1, x_29); @@ -3346,7 +4683,7 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); -x_35 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(x_9, x_10, x_12, x_11, x_22, x_1, x_6, x_33, x_34); +x_35 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(x_9, x_10, x_12, x_11, x_22, x_1, x_6, x_33, x_34); lean_dec(x_33); return x_35; } @@ -3386,7 +4723,7 @@ lean_object* x_40; lean_object* x_41; lean_dec(x_8); lean_dec(x_2); x_40 = lean_box(0); -x_41 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(x_9, x_10, x_12, x_11, x_22, x_1, x_6, x_40, x_23); +x_41 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(x_9, x_10, x_12, x_11, x_22, x_1, x_6, x_40, x_23); return x_41; } } @@ -3470,6 +4807,36 @@ lean_dec(x_5); return x_8; } } +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__7___rarg(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -3497,99 +4864,64 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_6); lean_dec(x_6); -x_11 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +x_11 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); return x_11; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6___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_5; -x_5 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); +lean_object* x_7; +x_7 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -return x_5; +return x_7; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); return x_10; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_7); return x_11; } } -lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_8); lean_dec(x_8); -x_13 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); +x_13 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); return x_13; } } -static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1() { +lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_1; -x_1 = l_Lean_ScopedEnvExtension_instInhabitedStateStack(lean_box(0), lean_box(0), lean_box(0)); -return x_1; -} -} -static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1; -x_2 = l_Lean_instInhabitedPersistentEnvExtensionState___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.Environment"); -return x_1; -} -} -static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.EnvExtensionInterfaceUnsafe.getState"); -return x_1; -} -} -static lean_object* _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3; -x_2 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4; -x_3 = lean_unsigned_to_nat(223u); -x_4 = lean_unsigned_to_nat(4u); -x_5 = l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; +lean_object* x_5; +x_5 = l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; } } lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg(lean_object* x_1, lean_object* x_2) { @@ -3604,8 +4936,8 @@ lean_dec(x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2; -x_8 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5; +x_7 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2; +x_8 = l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5; x_9 = lean_panic_fn(x_7, x_8); return x_9; } @@ -3646,51 +4978,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_PersistentEnvExtension_getState___at_Lea return x_2; } } -static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState(lean_box(0)); -return x_1; -} -} -static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.ScopedEnvExtension"); -return x_1; -} -} -static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.ScopedEnvExtension.getState"); -return x_1; -} -} -static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unreachable code has been reached"); -return x_1; -} -} -static lean_object* _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2; -x_2 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3; -x_3 = lean_unsigned_to_nat(157u); -x_4 = lean_unsigned_to_nat(16u); -x_5 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -3703,8 +4990,8 @@ lean_dec(x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1; -x_7 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5; +x_6 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1; +x_7 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5; x_8 = lean_panic_fn(x_6, x_7); return x_8; } @@ -3997,28 +5284,244 @@ x_2 = lean_alloc_closure((void*)(l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttrib return x_2; } } -lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +uint8_t l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11(lean_object* x_1) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = lean_ctor_get(x_1, 2); -x_5 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg(x_4, x_2); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_box(0); -x_8 = l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__4___rarg(x_6, x_3); -if (lean_obj_tag(x_8) == 0) +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = lean_ctor_get(x_1, 1); +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_nat_dec_eq(x_2, x_3); +return x_4; +} +} +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -return x_7; +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; +lean_dec(x_1); +x_4 = l_List_reverse___rarg(x_3); +return x_4; } else { -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -return x_9; +lean_inc(x_1); +x_10 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_9); +if (x_10 == 0) +{ +lean_ctor_set(x_2, 1, x_3); +{ +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +else +{ +lean_free_object(x_2); +lean_dec(x_6); +x_2 = x_7; +goto _start; +} +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_2); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +lean_inc(x_1); +x_17 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_3); +x_2 = x_14; +x_3 = x_18; +goto _start; +} +else +{ +lean_dec(x_13); +x_2 = x_14; +goto _start; +} +} +} +} +} +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12___rarg), 3, 0); +return x_2; +} +} +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13___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_dec(x_1); +x_4 = l_List_reverse___rarg(x_3); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +lean_inc(x_1); +x_10 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_9); +if (x_10 == 0) +{ +lean_ctor_set(x_2, 1, x_3); +{ +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +else +{ +lean_free_object(x_2); +lean_dec(x_6); +x_2 = x_7; +goto _start; +} +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_2); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +lean_inc(x_1); +x_17 = l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(x_1, x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_3); +x_2 = x_14; +x_3 = x_18; +goto _start; +} +else +{ +lean_dec(x_13); +x_2 = x_14; +goto _start; +} +} +} +} +} +lean_object* l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(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; uint8_t x_10; +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg(x_4, x_2); +lean_dec(x_2); +lean_dec(x_4); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +x_7 = lean_box(0); +x_8 = l_Lean_SMap_find_x3f___at_Lean_KeyedDeclsAttribute_getEntries___spec__4___rarg(x_6, x_3); +x_9 = lean_ctor_get(x_5, 3); +lean_inc(x_9); +lean_dec(x_5); +x_10 = l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11(x_9); +if (lean_obj_tag(x_8) == 0) +{ +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__12___rarg(x_9, x_7, x_7); +return x_11; +} +else +{ +lean_dec(x_9); +return x_7; +} +} +else +{ +if (x_10 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_8, 0); +lean_inc(x_12); +lean_dec(x_8); +x_13 = l_List_filterAux___at_Lean_KeyedDeclsAttribute_getEntries___spec__13___rarg(x_9, x_12, x_7); +return x_13; +} +else +{ +lean_object* x_14; +lean_dec(x_9); +x_14 = lean_ctor_get(x_8, 0); +lean_inc(x_14); +lean_dec(x_8); +return x_14; +} } } } @@ -4026,7 +5529,7 @@ lean_object* l_Lean_KeyedDeclsAttribute_getEntries(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_getEntries___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_KeyedDeclsAttribute_getEntries___rarg), 3, 0); return x_2; } } @@ -4090,14 +5593,14 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11___boxed(lean_object* x_1) { _start: { -lean_object* x_4; -x_4 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_1, x_2, x_3); -lean_dec(x_2); +uint8_t x_2; lean_object* x_3; +x_2 = l_Std_PersistentHashMap_isEmpty___at_Lean_KeyedDeclsAttribute_getEntries___spec__11(x_1); lean_dec(x_1); -return x_4; +x_3 = lean_box(x_2); +return x_3; } } lean_object* l_List_mapTRAux___at_Lean_KeyedDeclsAttribute_getValues___spec__1___rarg(lean_object* x_1, lean_object* x_2) { @@ -4165,8 +5668,6 @@ _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = l_Lean_KeyedDeclsAttribute_getEntries___rarg(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); x_5 = lean_box(0); x_6 = l_List_mapTRAux___at_Lean_KeyedDeclsAttribute_getValues___spec__1___rarg(x_4, x_5); return x_6; @@ -4237,6 +5738,12 @@ l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__4 = _init_l_ lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__4); l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__5 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__5(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_table___default___closed__5); +l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1 = _init_l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1(); +lean_mark_persistent(l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1); +l_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default); +l_Lean_KeyedDeclsAttribute_ExtensionState_erased___default = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erased___default(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erased___default); l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__1 = _init_l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__1); l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__2 = _init_l_Lean_KeyedDeclsAttribute_instInhabitedExtensionState___closed__2(); @@ -4276,6 +5783,20 @@ l_Lean_instInhabitedKeyedDeclsAttribute___closed__13 = _init_l_Lean_instInhabite lean_mark_persistent(l_Lean_instInhabitedKeyedDeclsAttribute___closed__13); l_Lean_instInhabitedKeyedDeclsAttribute___closed__14 = _init_l_Lean_instInhabitedKeyedDeclsAttribute___closed__14(); lean_mark_persistent(l_Lean_instInhabitedKeyedDeclsAttribute___closed__14); +l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1 = _init_l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_mkStateOfTable___rarg___closed__1); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__1); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__2); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__3); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__4); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__5); +l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6 = _init_l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_ExtensionState_erase___rarg___closed__6); l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__1 = _init_l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__1); l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__2 = _init_l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__2(); @@ -4314,12 +5835,38 @@ l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__18 = _init_l_Lean_Key lean_mark_persistent(l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__18); l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__19 = _init_l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__19(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__19); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__1); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__7___closed__2); +l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1(); +lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__1); +l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2(); +lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__2); +l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3(); +lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__3); +l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4(); +lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__4); +l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5(); +lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_init___spec__8___rarg___closed__5); +l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__1); +l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__2); +l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__3); +l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__4); +l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_init___spec__6___rarg___closed__5); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__1); +l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__2); +l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__3); +l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__4); +l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__5); +l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__8___closed__6); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__1); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__2(); @@ -4328,18 +5875,10 @@ l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3 = _init_l_Lean_Ke lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__3); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__4); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__5); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__9___closed__6); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__1); l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__2); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__3); -l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4(); -lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___lambda__10___closed__4); l_Lean_KeyedDeclsAttribute_init___rarg___closed__1 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__1(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___closed__1); l_Lean_KeyedDeclsAttribute_init___rarg___closed__2 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__2(); @@ -4352,26 +5891,8 @@ l_Lean_KeyedDeclsAttribute_init___rarg___closed__5 = _init_l_Lean_KeyedDeclsAttr lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___closed__5); l_Lean_KeyedDeclsAttribute_init___rarg___closed__6 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__6(); lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___closed__6); -l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1(); -lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__1); -l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2(); -lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__2); -l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3(); -lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__3); -l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4(); -lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__4); -l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5(); -lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__3___rarg___closed__5); -l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__1); -l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__2); -l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__3); -l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__4); -l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5 = _init_l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_getState___at_Lean_KeyedDeclsAttribute_getEntries___spec__1___rarg___closed__5); +l_Lean_KeyedDeclsAttribute_init___rarg___closed__7 = _init_l_Lean_KeyedDeclsAttribute_init___rarg___closed__7(); +lean_mark_persistent(l_Lean_KeyedDeclsAttribute_init___rarg___closed__7); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Level.c b/stage0/stdlib/Lean/Level.c index 5288138139..89a002d02d 100644 --- a/stage0/stdlib/Lean/Level.c +++ b/stage0/stdlib/Lean/Level.c @@ -32,7 +32,6 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Level_PP_Result_format___closed__4; lean_object* lean_nat_div(lean_object*, lean_object*); uint8_t l_UInt64_decEq(uint64_t, uint64_t); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_data___boxed(lean_object*); static lean_object* l_Lean_Level_mvarId_x21___closed__1; lean_object* l_Lean_Level_mvarId_x21___boxed(lean_object*); @@ -66,6 +65,7 @@ static lean_object* l_Lean_Level_PP_toResult___closed__4; static lean_object* l_Lean_Level_instHashableLevel___closed__1; lean_object* l_Lean_Level_instToStringLevel(lean_object*); lean_object* l_Lean_Level_mkData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Level_mkData___closed__1; lean_object* l_Lean_Level_ctorToNat___boxed(lean_object*); lean_object* lean_level_mk_succ(lean_object*); @@ -80,21 +80,26 @@ lean_object* l_Lean_Level_find_x3f_visit_match__1___rarg(lean_object*, lean_obje lean_object* l_Lean_Level_PP_Result_imax_match__1(lean_object*); lean_object* l_Lean_Level_instBEqLevel; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Level_PP_Result_quote___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205____boxed(lean_object*); uint8_t lean_level_has_param(lean_object*); uint64_t l_Lean_Level_hash(lean_object*); static lean_object* l___private_Lean_Level_0__Lean_Level_PP_parenIfFalse___closed__4; lean_object* l_Lean_Level_PP_Result_quote_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_isExplicit___boxed(lean_object*); +lean_object* l_Lean_instForInMVarIdSetMVarId(lean_object*); uint32_t lean_level_hash(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Level_hasParamEx___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Level_isMVar_match__1(lean_object*); +lean_object* l_Lean_instMVarIdSetInhabited; static lean_object* l_Lean_Level_mkData___closed__4; lean_object* l_Nat_max(lean_object*, lean_object*); +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Level_PP_toResult___closed__1; lean_object* l_Lean_Level_getOffsetAux(lean_object*, lean_object*); uint8_t l_Lean_Level_hasParam(lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_depth(lean_object*); lean_object* l_Lean_Level_isSucc___boxed(lean_object*); static lean_object* l_Lean_Level_updateIMax_x21___closed__1; @@ -110,6 +115,7 @@ lean_object* l___private_Lean_Level_0__Lean_Level_isAlreadyNormalizedCheap___box static lean_object* l_Lean_Level_PP_Result_format___closed__6; lean_object* l_Lean_Level_isParam_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_addOffsetAux_match__1(lean_object*); +static lean_object* l_Lean_instForInMVarIdSetMVarId___closed__2; lean_object* l___private_Lean_Level_0__Lean_Level_getMaxArgsAux_match__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Level_mvarId_x21___closed__3; extern uint64_t l_instInhabitedUInt64; @@ -118,13 +124,17 @@ lean_object* l_Lean_Level_Data_hash___boxed(lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_mkIMaxAux_match__1(lean_object*); lean_object* l_Lean_Level_isParam_match__1(lean_object*); lean_object* l_Lean_Level_getLevelOffset___boxed(lean_object*); +static lean_object* l_Lean_instBEqMVarId___closed__1; lean_object* l_Lean_Level_Data_hasMVar___boxed(lean_object*); +lean_object* l_Std_RBTree_forIn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_updateIMax_x21(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_mkLevelIMax(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_level_has_mvar(lean_object*); lean_object* l_Lean_Level_isNeverZero___boxed(lean_object*); uint8_t l_Lean_Level_normLtAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205__match__1(lean_object*); lean_object* l_Lean_Level_PP_Result_format___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -139,6 +149,7 @@ static lean_object* l_Lean_Level_PP_toResult___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); uint32_t lean_level_depth(lean_object*); lean_object* l_Lean_Level_isIMax___boxed(lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_getMaxArgsAux___at_Lean_Level_normalize___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_instHashableLevel; @@ -157,22 +168,30 @@ lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Level_normalize___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint32_t l_UInt64_toUInt32(uint64_t); +static lean_object* l_Lean_instHashableMVarId___closed__1; lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); lean_object* l_Lean_Level_mkNaryMax_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelMax(lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_PP_parenIfFalse_match__1(lean_object*); +lean_object* l_Lean_instReprMVarId(lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_occurs_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_instMVarIdSetEmptyCollection; lean_object* l_Lean_Level_PP_Result_quote___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_depth___boxed(lean_object*); lean_object* lean_level_mk_imax_simp(lean_object*, lean_object*); lean_object* l_Lean_Level_toNat(lean_object*); lean_object* l_Lean_Level_normLtAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); +lean_object* l_Lean_instInhabitedMVarIdMap(lean_object*); +uint8_t l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158_(lean_object*, lean_object*); uint64_t l_Lean_Name_hash(lean_object*); +static lean_object* l_Lean_instReprMVarId___closed__1; lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Level_updateSucc_x21___closed__3; static lean_object* l_Lean_Level_PP_Result_quote___lambda__4___closed__1; lean_object* l_Lean_Level_PP_Result_quote___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_instForInMVarIdSetMVarId___closed__1; lean_object* l_Lean_Level_toNat___boxed(lean_object*); lean_object* l_Lean_Level_addOffset(lean_object*, lean_object*); uint64_t l_Lean_Level_Data_hash(uint64_t); @@ -204,11 +223,13 @@ lean_object* l___private_Lean_Level_0__Lean_Level_accMax(lean_object*, lean_obje lean_object* l_Lean_Level_PP_Result_succ(lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_isExplicitSubsumed___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_getMaxArgsAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_PP_toResult_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_Data_hasParam(uint64_t); uint64_t l_UInt64_land(uint64_t, uint64_t); static lean_object* l_Lean_Level_normalize___closed__4; +lean_object* l_Lean_instHashableMVarId; lean_object* l_Lean_Level_addOffsetAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Level_0__Lean_Level_isExplicitSubsumedAux(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_skipExplicit___boxed(lean_object*, lean_object*); @@ -243,7 +264,9 @@ lean_object* l_Nat_imax___boxed(lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); uint8_t l_Lean_instBEqData(uint64_t, uint64_t); static lean_object* l_Lean_Level_updateIMax_x21___closed__3; +lean_object* l_Lean_instInhabitedMVarId; static lean_object* l_Lean_levelOne___closed__1; +lean_object* l_Lean_instBEqMVarId; static lean_object* l_Lean_levelZero___closed__2; lean_object* l_Lean_Level_isMaxIMax___boxed(lean_object*); uint8_t l_Lean_Name_lt(lean_object*, lean_object*); @@ -255,6 +278,7 @@ static lean_object* l_Lean_Level_PP_toResult___closed__3; lean_object* l_Lean_Level_instQuoteLevel(lean_object*); lean_object* l_Lean_Level_find_x3f(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Level_getOffsetAux_match__1(lean_object*); lean_object* l_Lean_Level_PP_Result_quote___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_Data_hasMVar(uint64_t); @@ -264,8 +288,10 @@ lean_object* l_Lean_Level_mkNaryMax(lean_object*); lean_object* l_Lean_Level_Data_depth___boxed(lean_object*); static lean_object* l_Lean_Level_PP_Result_quote___lambda__3___closed__1; lean_object* l_Lean_Level_normalize(lean_object*); +static lean_object* l_Lean_instReprMVarId___closed__2; uint64_t l_UInt64_shiftLeft(uint64_t, uint64_t); lean_object* l_Lean_Level_mkNaryMax_match__1(lean_object*); +lean_object* l_Lean_instReprMVarId___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Level_PP_Result_quote___lambda__6___closed__1; lean_object* l_Lean_Level_PP_Result_quote(lean_object*, lean_object*); lean_object* l_Lean_Level_PP_Result_quote___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -274,12 +300,12 @@ static lean_object* l_Lean_Level_updateSucc_x21___closed__2; lean_object* l_Lean_Level_normLtAux_match__1(lean_object*); static lean_object* l_Lean_Level_PP_Result_quote___lambda__3___closed__2; uint8_t l_Lean_Level_isMVar(lean_object*); +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158____boxed(lean_object*, lean_object*); lean_object* l_Lean_Level_isSucc_match__1___rarg(lean_object*, lean_object*, lean_object*); uint64_t l_UInt32_toUInt64(uint32_t); lean_object* l_Lean_Level_PP_Result_format(lean_object*, uint8_t); lean_object* lean_level_mk_imax(lean_object*, lean_object*); lean_object* l_Nat_imax(lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* l_Array_mapMUnsafe_map___at_Lean_Level_PP_Result_quote___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_depthEx___boxed(lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_PP_Result_formatLst_match__1(lean_object*); @@ -292,6 +318,7 @@ lean_object* l_Lean_Level_dec___boxed(lean_object*); lean_object* l_Lean_Level_collectMVars_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_find_x3f_visit(lean_object*, lean_object*); uint64_t l_Lean_instInhabitedData; +lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); lean_object* l_Lean_Level_ofNat_match__1(lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_PP_parenIfFalse_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_getMaxArgsAux_match__1(lean_object*); @@ -339,6 +366,7 @@ uint8_t lean_level_eq(lean_object*, lean_object*); static lean_object* l_Lean_Level_PP_Result_quote___lambda__5___closed__4; lean_object* l_Lean_Level_beq___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Level_mkData___closed__5; +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1(lean_object*); lean_object* l_Lean_Level_isMax_match__1(lean_object*); lean_object* l_Lean_Level_PP_Result_quote___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_isAlreadyNormalizedCheap_match__1(lean_object*); @@ -361,6 +389,7 @@ lean_object* l_Lean_Level_PP_Result_quote___lambda__2(lean_object*, lean_object* lean_object* l_Lean_Level_getOffset(lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_PP_Result_formatLst(lean_object*); lean_object* l_Nat_toLevel___boxed(lean_object*); +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205__match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Level_isIMax_match__1(lean_object*); uint8_t l_Lean_Level_isMax(lean_object*); uint8_t l___private_Lean_Level_0__Lean_Level_isExplicitSubsumed(lean_object*, lean_object*); @@ -370,6 +399,7 @@ lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Level_0__Lean_Level_mkMaxAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_PP_Result_format_match__1(lean_object*); +lean_object* l_Lean_instEmptyCollectionMVarIdMap(lean_object*); lean_object* l_Nat_imax(lean_object* x_1, lean_object* x_2) { _start: { @@ -625,6 +655,228 @@ x_9 = lean_box_uint64(x_8); return x_9; } } +static lean_object* _init_l_Lean_instInhabitedMVarId() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_apply_2(x_3, x_1, x_2); +return x_5; +} +} +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___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___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158__match__1___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +uint8_t l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158_(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = lean_name_eq(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_instBEqMVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Level_0__Lean_beqMVarId____x40_Lean_Level___hyg_158____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instBEqMVarId() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instBEqMVarId___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205__match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205__match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205__match__1___rarg), 2, 0); +return x_2; +} +} +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object* x_1) { +_start: +{ +uint64_t x_2; uint64_t x_3; uint64_t x_4; +x_2 = 0; +x_3 = l_Lean_Name_hash(x_1); +x_4 = lean_uint64_mix_hash(x_2, x_3); +return x_4; +} +} +lean_object* l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205____boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instHashableMVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instHashableMVarId() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instHashableMVarId___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_instReprMVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("`"); +return x_1; +} +} +static lean_object* _init_l_Lean_instReprMVarId___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_instReprMVarId___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_instReprMVarId(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = 1; +x_4 = l_Lean_Name_toString(x_1, x_3); +x_5 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_5, 0, x_4); +x_6 = l_Lean_instReprMVarId___closed__2; +x_7 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Lean_instReprMVarId___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_instReprMVarId(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instMVarIdSetInhabited() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_instMVarIdSetEmptyCollection() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_instForInMVarIdSetMVarId___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_instForInMVarIdSetMVarId___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_instForInMVarIdSetMVarId___closed__1; +x_2 = lean_alloc_closure((void*)(l_Std_RBTree_forIn___boxed), 4, 3); +lean_closure_set(x_2, 0, lean_box(0)); +lean_closure_set(x_2, 1, x_1); +lean_closure_set(x_2, 2, lean_box(0)); +return x_2; +} +} +lean_object* l_Lean_instForInMVarIdSetMVarId(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_instForInMVarIdSetMVarId___closed__2; +return x_2; +} +} +lean_object* l_Lean_instEmptyCollectionMVarIdMap(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +lean_object* l_Lean_instInhabitedMVarIdMap(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} static uint64_t _init_l_Lean_instInhabitedLevel___closed__1() { _start: { @@ -1142,7 +1394,7 @@ _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; x_2 = 2237; -x_3 = l_Lean_Name_hash(x_1); +x_3 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_1); x_4 = lean_uint64_mix_hash(x_2, x_3); x_5 = lean_unsigned_to_nat(0u); x_6 = 1; @@ -1880,7 +2132,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_mvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(157u); +x_3 = lean_unsigned_to_nat(176u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_Level_mvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1900,7 +2152,7 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_instInhabitedName; +x_3 = l_Lean_instInhabitedMVarId; x_4 = l_Lean_Level_mvarId_x21___closed__3; x_5 = lean_panic_fn(x_3, x_4); return x_5; @@ -4162,7 +4414,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_normalize___closed__1; -x_3 = lean_unsigned_to_nat(341u); +x_3 = lean_unsigned_to_nat(360u); x_4 = lean_unsigned_to_nat(11u); x_5 = l_Lean_Level_normalize___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6598,7 +6850,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateSucc_x21___closed__1; -x_3 = lean_unsigned_to_nat(487u); +x_3 = lean_unsigned_to_nat(506u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Level_updateSucc_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6674,7 +6926,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateMax_x21___closed__1; -x_3 = lean_unsigned_to_nat(496u); +x_3 = lean_unsigned_to_nat(515u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_Level_updateMax_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6754,7 +7006,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Level_mkData___closed__2; x_2 = l_Lean_Level_updateIMax_x21___closed__1; -x_3 = lean_unsigned_to_nat(505u); +x_3 = lean_unsigned_to_nat(524u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Level_updateIMax_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -7290,6 +7542,2476 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Level_collectMVars_match__1___rarg), 6, return x_2; } } +lean_object* l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_Level_collectMVars___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l_Lean_Level_collectMVars(lean_object* x_1, lean_object* x_2) { _start: { @@ -7336,7 +10058,7 @@ x_13 = lean_ctor_get(x_1, 0); lean_inc(x_13); lean_dec(x_1); x_14 = lean_box(0); -x_15 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_2, x_13, x_14); +x_15 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_2, x_13, x_14); return x_15; } default: @@ -7636,6 +10358,28 @@ l_Lean_Level_mkData___closed__5 = _init_l_Lean_Level_mkData___closed__5(); lean_mark_persistent(l_Lean_Level_mkData___closed__5); l_Lean_Level_mkData___boxed__const__1 = _init_l_Lean_Level_mkData___boxed__const__1(); lean_mark_persistent(l_Lean_Level_mkData___boxed__const__1); +l_Lean_instInhabitedMVarId = _init_l_Lean_instInhabitedMVarId(); +lean_mark_persistent(l_Lean_instInhabitedMVarId); +l_Lean_instBEqMVarId___closed__1 = _init_l_Lean_instBEqMVarId___closed__1(); +lean_mark_persistent(l_Lean_instBEqMVarId___closed__1); +l_Lean_instBEqMVarId = _init_l_Lean_instBEqMVarId(); +lean_mark_persistent(l_Lean_instBEqMVarId); +l_Lean_instHashableMVarId___closed__1 = _init_l_Lean_instHashableMVarId___closed__1(); +lean_mark_persistent(l_Lean_instHashableMVarId___closed__1); +l_Lean_instHashableMVarId = _init_l_Lean_instHashableMVarId(); +lean_mark_persistent(l_Lean_instHashableMVarId); +l_Lean_instReprMVarId___closed__1 = _init_l_Lean_instReprMVarId___closed__1(); +lean_mark_persistent(l_Lean_instReprMVarId___closed__1); +l_Lean_instReprMVarId___closed__2 = _init_l_Lean_instReprMVarId___closed__2(); +lean_mark_persistent(l_Lean_instReprMVarId___closed__2); +l_Lean_instMVarIdSetInhabited = _init_l_Lean_instMVarIdSetInhabited(); +lean_mark_persistent(l_Lean_instMVarIdSetInhabited); +l_Lean_instMVarIdSetEmptyCollection = _init_l_Lean_instMVarIdSetEmptyCollection(); +lean_mark_persistent(l_Lean_instMVarIdSetEmptyCollection); +l_Lean_instForInMVarIdSetMVarId___closed__1 = _init_l_Lean_instForInMVarIdSetMVarId___closed__1(); +lean_mark_persistent(l_Lean_instForInMVarIdSetMVarId___closed__1); +l_Lean_instForInMVarIdSetMVarId___closed__2 = _init_l_Lean_instForInMVarIdSetMVarId___closed__2(); +lean_mark_persistent(l_Lean_instForInMVarIdSetMVarId___closed__2); l_Lean_instInhabitedLevel___closed__1 = _init_l_Lean_instInhabitedLevel___closed__1(); l_Lean_instInhabitedLevel___closed__2 = _init_l_Lean_instInhabitedLevel___closed__2(); lean_mark_persistent(l_Lean_instInhabitedLevel___closed__2); diff --git a/stage0/stdlib/Lean/LocalContext.c b/stage0/stdlib/Lean/LocalContext.c index 803b43e69c..59aa44cdee 100644 --- a/stage0/stdlib/Lean/LocalContext.c +++ b/stage0/stdlib/Lean/LocalContext.c @@ -56,6 +56,7 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_any___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_of_nat(lean_object*); +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); lean_object* l_Lean_LocalDecl_isAuxDecl___boxed(lean_object*); lean_object* l_Lean_LocalDecl_setType_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,7 +86,6 @@ static lean_object* l_Lean_LocalContext_decls___default___closed__2; lean_object* l_Lean_LocalContext_findDeclM_x3f(lean_object*); lean_object* l___private_Lean_LocalContext_0__Lean_LocalContext_popTailNoneAux(lean_object*); uint8_t l_Lean_getSanitizeNames(lean_object*); -extern lean_object* l_Lean_instHashableName; lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec__4(lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__4___rarg___lambda__1(lean_object*, uint8_t); lean_object* l_Std_PersistentHashMap_containsAtAux___at_Lean_LocalContext_contains___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,7 +209,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___closed__1; -uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__11___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1(lean_object*); @@ -292,6 +291,7 @@ lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_ lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_anyM___spec__3(lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqFVarId; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__13___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Nat_foldRev_loop___at_Lean_LocalContext_mkLambda___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDecl_x3f___rarg(lean_object*, lean_object*); @@ -372,6 +372,7 @@ lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object* static lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___closed__2; lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_instMonadLCtx___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_instHashableFVarId; lean_object* l_Nat_foldRevM_loop___at_Lean_LocalContext_sanitizeNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVar_x21___boxed(lean_object*, lean_object*); @@ -456,7 +457,6 @@ lean_object* l_Lean_LocalDecl_setBinderInfo_match__1(lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; lean_object* l_Lean_LocalDecl_setIndex(lean_object*, lean_object*); static uint64_t _init_l_Lean_instInhabitedLocalDecl___closed__1() { _start: @@ -1842,8 +1842,8 @@ lean_ctor_set(x_10, 1, x_2); lean_ctor_set(x_10, 2, x_3); lean_ctor_set(x_10, 3, x_4); lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_5); -x_11 = l_Lean_Name_instBEqName; -x_12 = l_Lean_instHashableName; +x_11 = l_Lean_instBEqFVarId; +x_12 = l_Lean_instHashableFVarId; lean_inc(x_10); x_13 = l_Std_PersistentHashMap_insert___rarg(x_11, x_12, x_7, x_2, x_10); x_14 = lean_alloc_ctor(1, 1, 0); @@ -1870,8 +1870,8 @@ lean_ctor_set(x_19, 1, x_2); lean_ctor_set(x_19, 2, x_3); lean_ctor_set(x_19, 3, x_4); lean_ctor_set_uint8(x_19, sizeof(void*)*4, x_5); -x_20 = l_Lean_Name_instBEqName; -x_21 = l_Lean_instHashableName; +x_20 = l_Lean_instBEqFVarId; +x_21 = l_Lean_instHashableFVarId; lean_inc(x_19); x_22 = l_Std_PersistentHashMap_insert___rarg(x_20, x_21, x_16, x_2, x_19); x_23 = lean_alloc_ctor(1, 1, 0); @@ -1914,8 +1914,8 @@ lean_ctor_set(x_11, 2, x_3); lean_ctor_set(x_11, 3, x_4); lean_ctor_set(x_11, 4, x_5); lean_ctor_set_uint8(x_11, sizeof(void*)*5, x_6); -x_12 = l_Lean_Name_instBEqName; -x_13 = l_Lean_instHashableName; +x_12 = l_Lean_instBEqFVarId; +x_13 = l_Lean_instHashableFVarId; lean_inc(x_11); x_14 = l_Std_PersistentHashMap_insert___rarg(x_12, x_13, x_8, x_2, x_11); x_15 = lean_alloc_ctor(1, 1, 0); @@ -1943,8 +1943,8 @@ lean_ctor_set(x_20, 2, x_3); lean_ctor_set(x_20, 3, x_4); lean_ctor_set(x_20, 4, x_5); lean_ctor_set_uint8(x_20, sizeof(void*)*5, x_6); -x_21 = l_Lean_Name_instBEqName; -x_22 = l_Lean_instHashableName; +x_21 = l_Lean_instBEqFVarId; +x_22 = l_Lean_instHashableFVarId; lean_inc(x_20); x_23 = l_Std_PersistentHashMap_insert___rarg(x_21, x_22, x_17, x_2, x_20); x_24 = lean_alloc_ctor(1, 1, 0); @@ -1981,8 +1981,8 @@ x_6 = lean_ctor_get(x_5, 2); lean_inc(x_6); x_7 = l_Lean_LocalDecl_setIndex(x_2, x_6); x_8 = l_Lean_LocalDecl_fvarId(x_7); -x_9 = l_Lean_Name_instBEqName; -x_10 = l_Lean_instHashableName; +x_9 = l_Lean_instBEqFVarId; +x_10 = l_Lean_instHashableFVarId; lean_inc(x_7); x_11 = l_Std_PersistentHashMap_insert___rarg(x_9, x_10, x_4, x_8, x_7); x_12 = lean_alloc_ctor(1, 1, 0); @@ -2004,8 +2004,8 @@ x_16 = lean_ctor_get(x_15, 2); lean_inc(x_16); x_17 = l_Lean_LocalDecl_setIndex(x_2, x_16); x_18 = l_Lean_LocalDecl_fvarId(x_17); -x_19 = l_Lean_Name_instBEqName; -x_20 = l_Lean_instHashableName; +x_19 = l_Lean_instBEqFVarId; +x_20 = l_Lean_instHashableFVarId; lean_inc(x_17); x_21 = l_Std_PersistentHashMap_insert___rarg(x_19, x_20, x_14, x_18, x_17); x_22 = lean_alloc_ctor(1, 1, 0); @@ -2025,8 +2025,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqFVarId; +x_5 = l_Lean_instHashableFVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -2280,7 +2280,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_hash(x_2); +x_4 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); x_5 = (size_t)x_4; x_6 = l_Std_PersistentHashMap_containsAux___at_Lean_LocalContext_contains___spec__2(x_3, x_5, x_2); lean_dec(x_2); @@ -3007,8 +3007,8 @@ x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); -x_5 = l_Lean_Name_instBEqName; -x_6 = l_Lean_instHashableName; +x_5 = l_Lean_instBEqFVarId; +x_6 = l_Lean_instHashableFVarId; lean_inc(x_2); lean_inc(x_3); x_7 = l_Std_PersistentHashMap_find_x3f___rarg(x_5, x_6, x_3, x_2); @@ -3108,8 +3108,8 @@ lean_inc(x_13); lean_dec(x_9); x_14 = l_Lean_LocalDecl_fvarId(x_13); lean_dec(x_13); -x_15 = l_Lean_Name_instBEqName; -x_16 = l_Lean_instHashableName; +x_15 = l_Lean_instBEqFVarId; +x_16 = l_Lean_instHashableFVarId; x_17 = l_Std_PersistentHashMap_erase___rarg(x_15, x_16, x_2, x_14); x_18 = l_Std_PersistentArray_pop___rarg(x_3); x_19 = l___private_Lean_LocalContext_0__Lean_LocalContext_popTailNoneAux(x_18); @@ -3126,8 +3126,8 @@ lean_inc(x_20); lean_dec(x_9); x_21 = l_Lean_LocalDecl_fvarId(x_20); lean_dec(x_20); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqFVarId; +x_23 = l_Lean_instHashableFVarId; x_24 = l_Std_PersistentHashMap_erase___rarg(x_22, x_23, x_2, x_21); x_25 = l_Std_PersistentArray_pop___rarg(x_3); x_26 = l___private_Lean_LocalContext_0__Lean_LocalContext_popTailNoneAux(x_25); @@ -3584,8 +3584,8 @@ x_5 = l_Lean_LocalDecl_setUserName(x_4, x_3); x_6 = lean_ctor_get(x_1, 0); lean_inc(x_6); x_7 = l_Lean_LocalDecl_fvarId(x_5); -x_8 = l_Lean_Name_instBEqName; -x_9 = l_Lean_instHashableName; +x_8 = l_Lean_instBEqFVarId; +x_9 = l_Lean_instHashableFVarId; lean_inc(x_5); x_10 = l_Std_PersistentHashMap_insert___rarg(x_8, x_9, x_6, x_7, x_5); x_11 = lean_ctor_get(x_1, 1); @@ -3637,8 +3637,8 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean x_11 = lean_ctor_get(x_6, 0); x_12 = l_Lean_LocalDecl_setUserName(x_11, x_3); x_13 = l_Lean_LocalDecl_fvarId(x_12); -x_14 = l_Lean_Name_instBEqName; -x_15 = l_Lean_instHashableName; +x_14 = l_Lean_instBEqFVarId; +x_15 = l_Lean_instHashableFVarId; lean_inc(x_12); x_16 = l_Std_PersistentHashMap_insert___rarg(x_14, x_15, x_4, x_13, x_12); x_17 = l_Lean_LocalDecl_index(x_12); @@ -3657,8 +3657,8 @@ lean_inc(x_19); lean_dec(x_6); x_20 = l_Lean_LocalDecl_setUserName(x_19, x_3); x_21 = l_Lean_LocalDecl_fvarId(x_20); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqFVarId; +x_23 = l_Lean_instHashableFVarId; lean_inc(x_20); x_24 = l_Std_PersistentHashMap_insert___rarg(x_22, x_23, x_4, x_21, x_20); x_25 = l_Lean_LocalDecl_index(x_20); @@ -3686,8 +3686,8 @@ if (lean_is_exclusive(x_6)) { } x_30 = l_Lean_LocalDecl_setUserName(x_28, x_3); x_31 = l_Lean_LocalDecl_fvarId(x_30); -x_32 = l_Lean_Name_instBEqName; -x_33 = l_Lean_instHashableName; +x_32 = l_Lean_instBEqFVarId; +x_33 = l_Lean_instHashableFVarId; lean_inc(x_30); x_34 = l_Std_PersistentHashMap_insert___rarg(x_32, x_33, x_4, x_31, x_30); x_35 = l_Lean_LocalDecl_index(x_30); @@ -3742,8 +3742,8 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean x_11 = lean_ctor_get(x_6, 0); x_12 = lean_apply_1(x_3, x_11); x_13 = l_Lean_LocalDecl_fvarId(x_12); -x_14 = l_Lean_Name_instBEqName; -x_15 = l_Lean_instHashableName; +x_14 = l_Lean_instBEqFVarId; +x_15 = l_Lean_instHashableFVarId; lean_inc(x_12); x_16 = l_Std_PersistentHashMap_insert___rarg(x_14, x_15, x_4, x_13, x_12); x_17 = l_Lean_LocalDecl_index(x_12); @@ -3762,8 +3762,8 @@ lean_inc(x_19); lean_dec(x_6); x_20 = lean_apply_1(x_3, x_19); x_21 = l_Lean_LocalDecl_fvarId(x_20); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqFVarId; +x_23 = l_Lean_instHashableFVarId; lean_inc(x_20); x_24 = l_Std_PersistentHashMap_insert___rarg(x_22, x_23, x_4, x_21, x_20); x_25 = l_Lean_LocalDecl_index(x_20); @@ -3791,8 +3791,8 @@ if (lean_is_exclusive(x_6)) { } x_30 = lean_apply_1(x_3, x_28); x_31 = l_Lean_LocalDecl_fvarId(x_30); -x_32 = l_Lean_Name_instBEqName; -x_33 = l_Lean_instHashableName; +x_32 = l_Lean_instBEqFVarId; +x_33 = l_Lean_instHashableFVarId; lean_inc(x_30); x_34 = l_Std_PersistentHashMap_insert___rarg(x_32, x_33, x_4, x_31, x_30); x_35 = l_Lean_LocalDecl_index(x_30); @@ -3846,8 +3846,8 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean x_11 = lean_ctor_get(x_6, 0); x_12 = l_Lean_LocalDecl_setBinderInfo(x_11, x_3); x_13 = l_Lean_LocalDecl_fvarId(x_12); -x_14 = l_Lean_Name_instBEqName; -x_15 = l_Lean_instHashableName; +x_14 = l_Lean_instBEqFVarId; +x_15 = l_Lean_instHashableFVarId; lean_inc(x_12); x_16 = l_Std_PersistentHashMap_insert___rarg(x_14, x_15, x_4, x_13, x_12); x_17 = l_Lean_LocalDecl_index(x_12); @@ -3866,8 +3866,8 @@ lean_inc(x_19); lean_dec(x_6); x_20 = l_Lean_LocalDecl_setBinderInfo(x_19, x_3); x_21 = l_Lean_LocalDecl_fvarId(x_20); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqFVarId; +x_23 = l_Lean_instHashableFVarId; lean_inc(x_20); x_24 = l_Std_PersistentHashMap_insert___rarg(x_22, x_23, x_4, x_21, x_20); x_25 = l_Lean_LocalDecl_index(x_20); @@ -3895,8 +3895,8 @@ if (lean_is_exclusive(x_6)) { } x_30 = l_Lean_LocalDecl_setBinderInfo(x_28, x_3); x_31 = l_Lean_LocalDecl_fvarId(x_30); -x_32 = l_Lean_Name_instBEqName; -x_33 = l_Lean_instHashableName; +x_32 = l_Lean_instBEqFVarId; +x_33 = l_Lean_instHashableFVarId; lean_inc(x_30); x_34 = l_Std_PersistentHashMap_insert___rarg(x_32, x_33, x_4, x_31, x_30); x_35 = l_Lean_LocalDecl_index(x_30); diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index aa698c1e9c..f6cd0dcc45 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -404,6 +404,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MessageLog_getInfoMessages___sp lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageLog_errorsToWarnings___spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); lean_object* l_Lean_Message_toString___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; static lean_object* l_Lean_MessageData_formatAux___closed__2; lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); static lean_object* l_Lean_myMacro____x40_Lean_Message___hyg_2331____closed__15; @@ -6969,7 +6970,19 @@ static lean_object* _init_l_Lean_addMessageContextPartial___rarg___lambda__1___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_MessageData_instantiateMVars___closed__3; +x_1 = l_Lean_MessageData_instantiateMVars___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; x_2 = l_Lean_MessageLog_msgs___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6988,7 +7001,7 @@ x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); x_7 = l_Lean_MessageData_instantiateMVars___closed__4; -x_8 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; +x_8 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; x_9 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_9, 0, x_2); lean_ctor_set(x_9, 1, x_7); @@ -8828,7 +8841,7 @@ x_8 = l_Lean_KernelException_toMessageData___closed__4; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; +x_10 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; x_11 = l___private_Lean_Message_0__Lean_KernelException_mkCtx(x_3, x_10, x_2, x_9); return x_11; } @@ -8850,7 +8863,7 @@ x_17 = l_Lean_KernelException_toMessageData___closed__4; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; +x_19 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; x_20 = l___private_Lean_Message_0__Lean_KernelException_mkCtx(x_12, x_19, x_2, x_18); return x_20; } @@ -8979,7 +8992,7 @@ x_64 = l_Lean_KernelException_toMessageData___closed__4; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; +x_66 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; x_67 = l___private_Lean_Message_0__Lean_KernelException_mkCtx(x_59, x_66, x_2, x_65); return x_67; } @@ -9001,7 +9014,7 @@ x_73 = l_Lean_KernelException_toMessageData___closed__4; x_74 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_74, 0, x_72); lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; +x_75 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; x_76 = l___private_Lean_Message_0__Lean_KernelException_mkCtx(x_68, x_75, x_2, x_74); return x_76; } @@ -9370,6 +9383,8 @@ l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_L lean_mark_persistent(l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_MessageLog_getInfoMessages___spec__2___closed__1); l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1 = _init_l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1); +l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2 = _init_l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2); l_Lean_instToMessageDataString___closed__1 = _init_l_Lean_instToMessageDataString___closed__1(); lean_mark_persistent(l_Lean_instToMessageDataString___closed__1); l_Lean_instToMessageDataString = _init_l_Lean_instToMessageDataString(); diff --git a/stage0/stdlib/Lean/Meta/AbstractMVars.c b/stage0/stdlib/Lean/Meta/AbstractMVars.c index e9181ce6d6..35be616568 100644 --- a/stage0/stdlib/Lean/Meta/AbstractMVars.c +++ b/stage0/stdlib/Lean/Meta/AbstractMVars.c @@ -16,6 +16,7 @@ extern "C" { lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beqAbstractMVarsResult____x40_Lean_Meta_AbstractMVars___hyg_41__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -28,7 +29,6 @@ lean_object* l_Std_mkHashMap___at_Lean_Meta_AbstractMVars_State_lmap___default__ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_instHashableName; uint8_t lean_name_eq(lean_object*, lean_object*); uint8_t l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beqAbstractMVarsResult____x40_Lean_Meta_AbstractMVars___hyg_41_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_AbstractMVars_State_emap___default___closed__1; @@ -58,9 +58,9 @@ lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instBEqAbstractMVarsResult___closed__1; lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* lean_name_append_index_after(lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractMVars_mkFreshFVarId(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_abstractMVars___closed__1; -uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Meta_AbstractMVars_mkFreshId(lean_object*); lean_object* l_Lean_Meta_lambdaMetaTelescope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_isEqvAux___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beqAbstractMVarsResult____x40_Lean_Meta_AbstractMVars___hyg_41____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -68,6 +68,8 @@ uint8_t l_Array_isEqvAux___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beq lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars_match__1(lean_object*); lean_object* l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beqAbstractMVarsResult____x40_Lean_Meta_AbstractMVars___hyg_41__match__1(lean_object*); size_t lean_usize_modn(size_t, lean_object*); +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object*); +extern lean_object* l_Lean_instHashableMVarId; lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); @@ -82,6 +84,7 @@ lean_object* l_Std_mkHashMap___at_Lean_Meta_AbstractMVars_State_emap___default__ lean_object* l_Lean_Meta_abstractMVars_match__1___rarg(lean_object*, lean_object*); lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__2(lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqMVarId; lean_object* l_Lean_Meta_AbstractMVars_State_nextParamIdx___default; lean_object* l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars_match__2(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); @@ -112,7 +115,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spe lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instantiateLevelParamsArray___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars_match__3(lean_object*); lean_object* l_Lean_Meta_AbstractMVars_State_paramNames___default; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); @@ -125,7 +127,6 @@ lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars_match__2___rarg(lean_ob lean_object* l_Lean_Meta_AbstractMVars_State_fvars___default; lean_object* lean_expr_update_const(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; static lean_object* _init_l_Lean_Meta_instInhabitedAbstractMVarsResult___closed__1() { _start: { @@ -555,6 +556,31 @@ return x_34; } } } +lean_object* l_Lean_Meta_AbstractMVars_mkFreshFVarId(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_Meta_AbstractMVars_mkFreshId(x_1); +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +return x_2; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_inc(x_4); +lean_dec(x_2); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +} lean_object* l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -739,7 +765,7 @@ x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Name_hash(x_2); +x_5 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_2); x_6 = (size_t)x_5; x_7 = lean_usize_modn(x_6, x_4); lean_dec(x_4); @@ -1113,8 +1139,8 @@ x_104 = lean_unsigned_to_nat(1u); x_105 = lean_nat_add(x_82, x_104); lean_dec(x_82); x_106 = lean_array_push(x_83, x_102); -x_107 = l_Lean_Name_instBEqName; -x_108 = l_Lean_instHashableName; +x_107 = l_Lean_instBEqMVarId; +x_108 = l_Lean_instHashableMVarId; lean_inc(x_103); x_109 = l_Std_HashMap_insert___rarg(x_107, x_108, x_85, x_78, x_103); lean_ctor_set(x_2, 6, x_109); @@ -1138,8 +1164,8 @@ x_114 = lean_unsigned_to_nat(1u); x_115 = lean_nat_add(x_82, x_114); lean_dec(x_82); x_116 = lean_array_push(x_83, x_112); -x_117 = l_Lean_Name_instBEqName; -x_118 = l_Lean_instHashableName; +x_117 = l_Lean_instBEqMVarId; +x_118 = l_Lean_instHashableMVarId; lean_inc(x_113); x_119 = l_Std_HashMap_insert___rarg(x_117, x_118, x_85, x_78, x_113); x_120 = lean_alloc_ctor(0, 8, 0); @@ -1584,7 +1610,7 @@ x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Name_hash(x_2); +x_5 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_2); x_6 = (size_t)x_5; x_7 = lean_usize_modn(x_6, x_4); lean_dec(x_4); @@ -1860,7 +1886,7 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); lean_dec(x_38); -x_41 = l_Lean_Meta_AbstractMVars_mkFreshId(x_40); +x_41 = l_Lean_Meta_AbstractMVars_mkFreshFVarId(x_40); x_42 = !lean_is_exclusive(x_41); if (x_42 == 0) { @@ -1882,8 +1908,8 @@ x_50 = lean_ctor_get(x_44, 5); x_51 = lean_ctor_get(x_44, 7); lean_inc(x_45); x_52 = lean_array_push(x_50, x_45); -x_53 = l_Lean_Name_instBEqName; -x_54 = l_Lean_instHashableName; +x_53 = l_Lean_instBEqMVarId; +x_54 = l_Lean_instHashableMVarId; lean_inc(x_45); x_55 = l_Std_HashMap_insert___rarg(x_53, x_54, x_51, x_5, x_45); if (x_47 == 0) @@ -1937,8 +1963,8 @@ lean_inc(x_63); lean_dec(x_44); lean_inc(x_45); x_71 = lean_array_push(x_68, x_45); -x_72 = l_Lean_Name_instBEqName; -x_73 = l_Lean_instHashableName; +x_72 = l_Lean_instBEqMVarId; +x_73 = l_Lean_instHashableMVarId; lean_inc(x_45); x_74 = l_Std_HashMap_insert___rarg(x_72, x_73, x_70, x_5, x_45); if (x_47 == 0) @@ -2031,8 +2057,8 @@ if (lean_is_exclusive(x_85)) { } lean_inc(x_86); x_98 = lean_array_push(x_94, x_86); -x_99 = l_Lean_Name_instBEqName; -x_100 = l_Lean_instHashableName; +x_99 = l_Lean_instBEqMVarId; +x_100 = l_Lean_instHashableMVarId; lean_inc(x_86); x_101 = l_Std_HashMap_insert___rarg(x_99, x_100, x_96, x_5, x_86); if (x_88 == 0) @@ -2173,7 +2199,7 @@ lean_inc(x_123); x_124 = lean_ctor_get(x_122, 1); lean_inc(x_124); lean_dec(x_122); -x_125 = l_Lean_Meta_AbstractMVars_mkFreshId(x_124); +x_125 = l_Lean_Meta_AbstractMVars_mkFreshFVarId(x_124); x_126 = lean_ctor_get(x_125, 0); lean_inc(x_126); x_127 = lean_ctor_get(x_125, 1); @@ -2224,8 +2250,8 @@ if (lean_is_exclusive(x_127)) { } lean_inc(x_129); x_141 = lean_array_push(x_137, x_129); -x_142 = l_Lean_Name_instBEqName; -x_143 = l_Lean_instHashableName; +x_142 = l_Lean_instBEqMVarId; +x_143 = l_Lean_instHashableMVarId; lean_inc(x_129); x_144 = l_Std_HashMap_insert___rarg(x_142, x_143, x_139, x_5, x_129); if (x_131 == 0) @@ -3271,7 +3297,7 @@ else lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; x_12 = lean_unsigned_to_nat(0u); x_13 = lean_array_uset(x_3, x_2, x_12); -x_14 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_mkFreshLevelMVar(x_4, x_5, x_6, x_7, x_8); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); diff --git a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c index b23d3d8880..5502a1527e 100644 --- a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c +++ b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c @@ -28,7 +28,6 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(lean_object*, size_t, size_t); static lean_object* l_Lean_Meta_abstractNestedProofs___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_instHashableName; lean_object* lean_array_get_size(lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Meta_mkAuxDefinitionFor(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -71,6 +70,7 @@ lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l___private_Lean_Meta_AbstractNestedProofs_0__Lean_Meta_AbstractNestedProofs_mkAuxLemma___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); +extern lean_object* l_Lean_instBEqFVarId; lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_AbstractNestedProofs_visit___spec__2___boxed__const__1; lean_object* l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); @@ -91,6 +91,7 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___spec__6(lean_object*); lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_0__Lean_Meta_AbstractNestedProofs_mkAuxLemma___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +extern lean_object* l_Lean_instHashableFVarId; uint8_t l_Lean_Expr_isAtomic(lean_object*); lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(lean_object*, lean_object*, lean_object*); @@ -110,7 +111,6 @@ lean_object* l_Lean_Meta_AbstractNestedProofs_State_nextIdx___default; lean_object* l_Lean_Meta_AbstractNestedProofs_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_AbstractNestedProofs_visit___closed__2; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; static lean_object* l_Lean_Meta_AbstractNestedProofs_visit___closed__1; uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(lean_object* x_1, size_t x_2, size_t x_3) { _start: @@ -974,8 +974,8 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean x_21 = lean_ctor_get(x_14, 0); lean_dec(x_21); x_22 = l_Lean_LocalDecl_fvarId(x_3); -x_23 = l_Lean_Name_instBEqName; -x_24 = l_Lean_instHashableName; +x_23 = l_Lean_instBEqFVarId; +x_24 = l_Lean_instHashableFVarId; lean_inc(x_3); x_25 = l_Std_PersistentHashMap_insert___rarg(x_23, x_24, x_12, x_22, x_3); x_26 = l_Lean_LocalDecl_index(x_3); @@ -996,8 +996,8 @@ else lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_dec(x_14); x_30 = l_Lean_LocalDecl_fvarId(x_3); -x_31 = l_Lean_Name_instBEqName; -x_32 = l_Lean_instHashableName; +x_31 = l_Lean_instBEqFVarId; +x_32 = l_Lean_instHashableFVarId; lean_inc(x_3); x_33 = l_Std_PersistentHashMap_insert___rarg(x_31, x_32, x_12, x_30, x_3); x_34 = l_Lean_LocalDecl_index(x_3); @@ -1027,8 +1027,8 @@ if (lean_is_exclusive(x_14)) { x_39 = lean_box(0); } x_40 = l_Lean_LocalDecl_fvarId(x_3); -x_41 = l_Lean_Name_instBEqName; -x_42 = l_Lean_instHashableName; +x_41 = l_Lean_instBEqFVarId; +x_42 = l_Lean_instHashableFVarId; lean_inc(x_3); x_43 = l_Std_PersistentHashMap_insert___rarg(x_41, x_42, x_12, x_40, x_3); x_44 = l_Lean_LocalDecl_index(x_3); diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 6c618eb8b5..9d64fcb5fd 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -28,6 +28,7 @@ size_t l_USize_add(size_t, size_t); static lean_object* l_Lean_Meta_mkLt___closed__4; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMArgs_loop___closed__8; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppOptMAux___closed__9; static lean_object* l_Lean_Meta_mkHEqSymm___closed__2; @@ -379,7 +380,6 @@ static lean_object* l_Lean_Meta_mkProjection___lambda__1___closed__4; static lean_object* l_Lean_Meta_mkNoConfusion___closed__10; lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_throwAppBuilderException___rarg___closed__4; -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkAppM___closed__3; static lean_object* l_Lean_Meta_mkProjection___lambda__1___closed__8; lean_object* l_Lean_Meta_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5846,7 +5846,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 0); lean_dec(x_11); -x_12 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_12 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -5885,7 +5885,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); -x_22 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_22 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 518ddbf385..a6fff50fdc 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -21,6 +21,7 @@ lean_object* l_Lean_Meta_mkLetFVars___boxed(lean_object*, lean_object*, lean_obj lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_resettingSynthInstanceCacheWhen___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarAtCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instMonadMetaM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl_match__1(lean_object*); @@ -31,7 +32,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux lean_object* l_Lean_Meta_liftMkBindingM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); lean_object* l_Lean_Meta_Cache_synthInstance___default; -lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); uint8_t l_Lean_Meta_Config_transparency___default; lean_object* l_Lean_Meta_withLetDecl(lean_object*); @@ -207,6 +208,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp(lean_o lean_object* l_Lean_Meta_map1MetaM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1125____closed__3; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_beqInfoCacheKey____x40_Lean_Meta_Basic___hyg_288____boxed(lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg___boxed(lean_object*, lean_object*); static size_t l_Lean_Meta_instInhabitedState___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewBinderInfosImp(lean_object*); lean_object* l_Lean_Meta_isReadOnlyLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,6 +278,7 @@ lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_withLocalDecls_loop___spec lean_object* l_Lean_Meta_withNewLocalInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Meta_mkFreshLevelMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_instInhabitedSavedState___closed__11; static lean_object* l_Lean_Meta_instMonadMCtxMetaM___closed__2; lean_object* l_Lean_Meta_instInhabitedMetaM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstance___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -295,12 +298,11 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewBinderInfosImp___ra lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_getZetaFVarIds(lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); -static uint32_t l_Lean_Meta_instInhabitedSavedState___closed__3; +static lean_object* l_Lean_Meta_instInhabitedSavedState___closed__3; lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_map2MetaM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwUnknownFVar(lean_object*); static lean_object* l_Lean_Meta_State_postponed___default___closed__2; -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewBinderInfos___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_Meta_Basic_0__Lean_Meta_withExistingLocalDeclsImp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -309,6 +311,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp(lean_ob lean_object* l_Lean_Meta_map2MetaM(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); lean_object* l_Lean_Meta_Context_synthPendingDepth___default; +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_throwIsDefEqStuck(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instMonadMCtxMetaM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_liftMkBindingM___rarg___closed__2; @@ -344,6 +347,7 @@ lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey_match__1___rarg(l static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_3____closed__2; lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getLevelMVarDepth___closed__1; +lean_object* l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getPostponed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; lean_object* l_Lean_Meta_isDefEqStuckExceptionId; @@ -464,7 +468,7 @@ uint8_t l_Lean_Meta_Config_ctxApprox___default; lean_object* l_Lean_Meta_map1MetaM(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp_process_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_dependsOn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_instInhabitedSavedState___closed__4; +static uint32_t l_Lean_Meta_instInhabitedSavedState___closed__4; lean_object* l_Array_reverse___rarg(lean_object*); lean_object* l_Lean_ppExpr(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -518,11 +522,11 @@ lean_object* l_Lean_Meta_modifyCache_match__1(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaMetaTelescope_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Context_lctx___default___closed__2; static lean_object* l_Lean_Meta_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_Meta_occursCheck___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelMVar(lean_object*); @@ -550,6 +554,7 @@ lean_object* l_Lean_Meta_approxDefEq(lean_object*); lean_object* l_Lean_Meta_instInhabitedInfoCacheKey; lean_object* l_Lean_Meta_withExistingLocalDecls___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassImp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_shouldReduceReducibleOnly___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withExistingLocalDecls(lean_object*); @@ -566,7 +571,6 @@ static lean_object* l_Lean_Meta_Cache_defEqDefault___default___closed__2; lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instMetaEvalMetaM(lean_object*); lean_object* l_Lean_Meta_lambdaLetTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_State_mctx___default___closed__1; lean_object* l_Lean_Meta_withLocalDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); @@ -694,7 +698,6 @@ lean_object* l_Lean_Meta_mkLambdaFVars___boxed(lean_object*, lean_object*, lean_ lean_object* lean_level_update_succ(lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); @@ -709,6 +712,7 @@ uint8_t l_Array_isEqvAux___at___private_Lean_Meta_Basic_0__Lean_Meta_withLocalCo lean_object* l_Lean_Meta_abstractRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withAssignableSyntheticOpaque(lean_object*); lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassExpensive_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -771,7 +775,6 @@ lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_ob lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateLambdaAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_fullApproxDefEqImp(lean_object*); lean_object* l_Lean_Meta_withTrackingZeta___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Meta_instInhabitedInfoCacheKey___closed__1; lean_object* l_List_mapM___at_Lean_Meta_instantiateMVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setInlineAttribute_match__1(lean_object*); @@ -785,6 +788,7 @@ lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_liftMkBindingM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Cache_funInfo___default___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isReadOnlyOrSyntheticOpaqueExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarWithIdCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instAlternativeMetaM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -801,6 +805,8 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp_process_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instMonadLCtxMetaM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withAtLeastTransparency___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -814,7 +820,6 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewFVar(lean_object*); uint32_t lean_uint32_of_nat(lean_object*); lean_object* l_Lean_Meta_setMCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDeclFromUserName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isReadOnlyLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithId(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -848,6 +853,7 @@ lean_object* l_Lean_Meta_withMCtx(lean_object*); static lean_object* l_Lean_Meta_instInhabitedPostponedEntry___closed__1; lean_object* l_Lean_Meta_lambdaMetaTelescope_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isReadOnlyOrSyntheticOpaqueExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl_match__1(lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_instantiateMVars___spec__5___boxed__const__1; size_t lean_usize_of_nat(lean_object*); @@ -863,7 +869,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___rarg___lambda__1(lean_object*, lean_object* l_Lean_Meta_instAddMessageContextMetaM; lean_object* l_Lean_Meta_mapError___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___boxed(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassImp_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_instMonadLCtxMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -873,7 +879,6 @@ uint8_t l_Lean_Meta_ParamInfo_isStrictImplicit(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1125____closed__1; lean_object* l_Lean_Meta_instMonadMetaM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp_process___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1706,7 +1711,7 @@ static lean_object* _init_l_Lean_Meta_State_zetaFVarIds___default() { _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -1794,14 +1799,14 @@ static lean_object* _init_l_Lean_Meta_instInhabitedState___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_State_mctx___default___closed__2; -x_2 = l_Lean_Meta_instInhabitedCache___closed__2; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_State_mctx___default___closed__2; +x_3 = l_Lean_Meta_instInhabitedCache___closed__2; x_4 = l_Lean_Meta_instInhabitedState___closed__3; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -1826,10 +1831,22 @@ return x_2; static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__2() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Cache_inferType___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__3() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Meta_instInhabitedSavedState___closed__1; -x_3 = l_Lean_Meta_State_mctx___default___closed__1; +x_3 = l_Lean_Meta_instInhabitedSavedState___closed__2; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -1837,7 +1854,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static uint32_t _init_l_Lean_Meta_instInhabitedSavedState___closed__3() { +static uint32_t _init_l_Lean_Meta_instInhabitedSavedState___closed__4() { _start: { lean_object* x_1; uint32_t x_2; @@ -1846,11 +1863,11 @@ x_2 = lean_uint32_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__4() { +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__5() { _start: { uint32_t x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_instInhabitedSavedState___closed__3; +x_1 = l_Lean_Meta_instInhabitedSavedState___closed__4; x_2 = 0; x_3 = lean_box(0); x_4 = l_Lean_Meta_ParamInfo_backDeps___default___closed__1; @@ -1864,14 +1881,14 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 4, x_2); return x_5; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__5() { +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Meta_instInhabitedSavedState___closed__1; -x_2 = l_Lean_Meta_instInhabitedSavedState___closed__2; +x_2 = l_Lean_Meta_instInhabitedSavedState___closed__3; x_3 = l_Lean_Meta_ParamInfo_backDeps___default___closed__1; -x_4 = l_Lean_Meta_instInhabitedSavedState___closed__4; +x_4 = l_Lean_Meta_instInhabitedSavedState___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -1880,7 +1897,7 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__6() { +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1892,7 +1909,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__7() { +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__8() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -1904,30 +1921,14 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_instInhabitedSavedState___closed__5; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Meta_instInhabitedSavedState___closed__6; -x_4 = l_Lean_Meta_instInhabitedSavedState___closed__7; -x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 3, x_4); -return x_5; -} -} static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_State_mctx___default___closed__2; -x_2 = l_Lean_Meta_instInhabitedCache___closed__2; -x_3 = l_Lean_NameSet_empty; -x_4 = l_Lean_Meta_instInhabitedState___closed__3; +x_1 = l_Lean_Meta_instInhabitedSavedState___closed__6; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Meta_instInhabitedSavedState___closed__7; +x_4 = l_Lean_Meta_instInhabitedSavedState___closed__8; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -1939,9 +1940,25 @@ return x_5; static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__10() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_State_mctx___default___closed__2; +x_3 = l_Lean_Meta_instInhabitedCache___closed__2; +x_4 = l_Lean_Meta_instInhabitedState___closed__3; +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_instInhabitedSavedState___closed__11() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_instInhabitedSavedState___closed__8; -x_2 = l_Lean_Meta_instInhabitedSavedState___closed__9; +x_1 = l_Lean_Meta_instInhabitedSavedState___closed__9; +x_2 = l_Lean_Meta_instInhabitedSavedState___closed__10; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -1952,7 +1969,7 @@ static lean_object* _init_l_Lean_Meta_instInhabitedSavedState() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_instInhabitedSavedState___closed__10; +x_1 = l_Lean_Meta_instInhabitedSavedState___closed__11; return x_1; } } @@ -1991,7 +2008,19 @@ static lean_object* _init_l_Lean_Meta_Context_lctx___default___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_State_mctx___default___closed__1; +x_1 = l_Lean_Meta_Cache_inferType___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_Context_lctx___default___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Context_lctx___default___closed__1; x_2 = l_Lean_Meta_State_postponed___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2003,7 +2032,7 @@ static lean_object* _init_l_Lean_Meta_Context_lctx___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Context_lctx___default___closed__1; +x_1 = l_Lean_Meta_Context_lctx___default___closed__2; return x_1; } } @@ -3439,7 +3468,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Meta_Context_config___default___closed__1; -x_3 = l_Lean_Meta_Context_lctx___default___closed__1; +x_3 = l_Lean_Meta_Context_lctx___default___closed__2; x_4 = l_Lean_Meta_ParamInfo_backDeps___default___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 5, 0); @@ -3455,14 +3484,14 @@ static lean_object* _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_State_mctx___default___closed__2; -x_2 = l_Lean_Meta_instInhabitedCache___closed__2; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_State_mctx___default___closed__2; +x_3 = l_Lean_Meta_instInhabitedCache___closed__2; x_4 = l_Lean_Meta_State_postponed___default___closed__3; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -4582,7 +4611,7 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_11 = lean_ctor_get(x_8, 2); lean_dec(x_11); -x_12 = l_Lean_NameSet_empty; +x_12 = lean_box(0); lean_ctor_set(x_8, 2, x_12); x_13 = lean_st_ref_set(x_1, x_8, x_9); x_14 = !lean_is_exclusive(x_13); @@ -4618,7 +4647,7 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_8); -x_23 = l_Lean_NameSet_empty; +x_23 = lean_box(0); x_24 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_24, 0, x_20); lean_ctor_set(x_24, 1, x_21); @@ -5422,7 +5451,7 @@ lean_dec(x_8); return x_14; } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(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; uint8_t x_7; @@ -5589,19 +5618,44 @@ return x_48; } } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2(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_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg___boxed), 2, 0); +x_4 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg___boxed), 2, 0); return x_4; } } +lean_object* l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___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 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(x_4, x_5); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_6); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +} lean_object* l_Lean_Meta_mkFreshExprMVarAt(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_12 = l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(x_7, x_8, x_9, x_10, x_11); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -5611,26 +5665,38 @@ x_15 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarAtCore(x_13, x_1, return x_15; } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } +lean_object* l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___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_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Lean_Meta_mkFreshExprMVarAt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -5645,126 +5711,110 @@ lean_dec(x_7); return x_13; } } -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_5 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +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; uint8_t x_14; +x_6 = l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(x_1, x_2, x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_st_ref_get(x_3, x_7); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_st_ref_take(x_1, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_st_ref_get(x_4, x_8); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_take(x_2, x_10); +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_6); -x_15 = l_Lean_MetavarContext_addLevelMVarDecl(x_14, x_6); -lean_ctor_set(x_11, 0, x_15); -x_16 = lean_st_ref_set(x_1, x_11, x_12); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_7); +x_16 = l_Lean_MetavarContext_addLevelMVarDecl(x_15, x_7); +lean_ctor_set(x_12, 0, x_16); +x_17 = lean_st_ref_set(x_2, x_12, x_13); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = l_Lean_mkLevelMVar(x_6); -lean_ctor_set(x_16, 0, x_19); -return x_16; +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +x_20 = l_Lean_mkLevelMVar(x_7); +lean_ctor_set(x_17, 0, x_20); +return x_17; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = l_Lean_mkLevelMVar(x_6); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_dec(x_17); +x_22 = l_Lean_mkLevelMVar(x_7); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; } } 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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -x_25 = lean_ctor_get(x_11, 2); -x_26 = lean_ctor_get(x_11, 3); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +x_26 = lean_ctor_get(x_12, 2); +x_27 = lean_ctor_get(x_12, 3); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_11); -lean_inc(x_6); -x_27 = l_Lean_MetavarContext_addLevelMVarDecl(x_23, x_6); -x_28 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_24); -lean_ctor_set(x_28, 2, x_25); -lean_ctor_set(x_28, 3, x_26); -x_29 = lean_st_ref_set(x_1, x_28, x_12); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_31 = x_29; +lean_dec(x_12); +lean_inc(x_7); +x_28 = l_Lean_MetavarContext_addLevelMVarDecl(x_24, x_7); +x_29 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_25); +lean_ctor_set(x_29, 2, x_26); +lean_ctor_set(x_29, 3, x_27); +x_30 = lean_st_ref_set(x_2, x_29, x_13); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_32 = x_30; } else { - lean_dec_ref(x_29); - x_31 = lean_box(0); + lean_dec_ref(x_30); + x_32 = lean_box(0); } -x_32 = l_Lean_mkLevelMVar(x_6); -if (lean_is_scalar(x_31)) { - x_33 = lean_alloc_ctor(0, 2, 0); +x_33 = l_Lean_mkLevelMVar(x_7); +if (lean_is_scalar(x_32)) { + x_34 = lean_alloc_ctor(0, 2, 0); } else { - x_33 = x_31; + x_34 = x_32; } -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -return x_33; +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; } } } -lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object* x_1) { +lean_object* l_Lean_Meta_mkFreshLevelMVar___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_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkFreshLevelMVar___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_Lean_Meta_mkFreshLevelMVar___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_Meta_mkFreshLevelMVar___rarg(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Lean_Meta_mkFreshLevelMVar(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Meta_mkFreshLevelMVar___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Meta_mkFreshLevelMVar(x_1); -lean_dec(x_1); -return x_2; +return x_6; } } lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarCore(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) { @@ -5835,7 +5885,7 @@ _start: if (lean_obj_tag(x_1) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_9 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_mkFreshLevelMVar(x_4, x_5, x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -5903,7 +5953,7 @@ lean_object* l_Lean_Meta_mkFreshTypeMVar(uint8_t x_1, lean_object* x_2, lean_obj _start: { 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 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_mkFreshLevelMVar(x_3, x_4, x_5, x_6, x_7); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); @@ -5996,7 +6046,7 @@ _start: if (lean_obj_tag(x_2) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_10 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -6055,7 +6105,7 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean x_11 = lean_unsigned_to_nat(1u); x_12 = lean_nat_sub(x_2, x_11); lean_dec(x_2); -x_13 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5, x_6, x_7, x_8); +x_13 = l_Lean_Meta_mkFreshLevelMVar(x_4, x_5, x_6, x_7, x_8); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -20038,6 +20088,39 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Basic_0__Lean_Meta_isClas return x_2; } } +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(x_1, x_2); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_3); +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_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1(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_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg___boxed), 2, 0); +return x_4; +} +} lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -20176,7 +20259,7 @@ x_30 = lean_array_get_size(x_5); x_31 = lean_expr_instantiate_rev_range(x_14, x_6, x_30, x_5); lean_dec(x_30); lean_dec(x_14); -x_32 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_11, x_12); +x_32 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_11, x_12); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -21407,6 +21490,26 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Basic_0__Lean_Meta_forall return x_2; } } +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -22040,7 +22143,7 @@ x_16 = lean_array_get_size(x_4); x_17 = lean_expr_instantiate_rev_range(x_13, x_5, x_16, x_4); lean_dec(x_16); lean_dec(x_13); -x_18 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_18 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_10, x_11); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -22117,7 +22220,7 @@ x_42 = lean_array_get_size(x_4); x_43 = lean_expr_instantiate_rev_range(x_39, x_5, x_42, x_4); lean_dec(x_42); lean_dec(x_39); -x_44 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_44 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_10, x_11); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -22152,7 +22255,7 @@ lean_dec(x_53); x_58 = lean_expr_instantiate_rev_range(x_54, x_5, x_56, x_4); lean_dec(x_56); lean_dec(x_54); -x_59 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_59 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_10, x_11); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -23183,7 +23286,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(le _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_8, x_9); +x_10 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -23909,7 +24012,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_8, x_9); +x_10 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -29474,8 +29577,8 @@ lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__1); l_Lean_Meta_instInhabitedSavedState___closed__2 = _init_l_Lean_Meta_instInhabitedSavedState___closed__2(); lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__2); l_Lean_Meta_instInhabitedSavedState___closed__3 = _init_l_Lean_Meta_instInhabitedSavedState___closed__3(); +lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__3); l_Lean_Meta_instInhabitedSavedState___closed__4 = _init_l_Lean_Meta_instInhabitedSavedState___closed__4(); -lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__4); l_Lean_Meta_instInhabitedSavedState___closed__5 = _init_l_Lean_Meta_instInhabitedSavedState___closed__5(); lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__5); l_Lean_Meta_instInhabitedSavedState___closed__6 = _init_l_Lean_Meta_instInhabitedSavedState___closed__6(); @@ -29488,6 +29591,8 @@ l_Lean_Meta_instInhabitedSavedState___closed__9 = _init_l_Lean_Meta_instInhabite lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__9); l_Lean_Meta_instInhabitedSavedState___closed__10 = _init_l_Lean_Meta_instInhabitedSavedState___closed__10(); lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__10); +l_Lean_Meta_instInhabitedSavedState___closed__11 = _init_l_Lean_Meta_instInhabitedSavedState___closed__11(); +lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState___closed__11); l_Lean_Meta_instInhabitedSavedState = _init_l_Lean_Meta_instInhabitedSavedState(); lean_mark_persistent(l_Lean_Meta_instInhabitedSavedState); l_Lean_Meta_Context_config___default___closed__1 = _init_l_Lean_Meta_Context_config___default___closed__1(); @@ -29496,6 +29601,8 @@ l_Lean_Meta_Context_config___default = _init_l_Lean_Meta_Context_config___defaul lean_mark_persistent(l_Lean_Meta_Context_config___default); l_Lean_Meta_Context_lctx___default___closed__1 = _init_l_Lean_Meta_Context_lctx___default___closed__1(); lean_mark_persistent(l_Lean_Meta_Context_lctx___default___closed__1); +l_Lean_Meta_Context_lctx___default___closed__2 = _init_l_Lean_Meta_Context_lctx___default___closed__2(); +lean_mark_persistent(l_Lean_Meta_Context_lctx___default___closed__2); l_Lean_Meta_Context_lctx___default = _init_l_Lean_Meta_Context_lctx___default(); lean_mark_persistent(l_Lean_Meta_Context_lctx___default); l_Lean_Meta_Context_localInstances___default = _init_l_Lean_Meta_Context_localInstances___default(); diff --git a/stage0/stdlib/Lean/Meta/Closure.c b/stage0/stdlib/Lean/Meta/Closure.c index 684034088c..809cc92709 100644 --- a/stage0/stdlib/Lean/Meta/Closure.c +++ b/stage0/stdlib/Lean/Meta/Closure.c @@ -20,7 +20,6 @@ lean_object* l_Lean_Meta_Closure_visitLevel_match__1___rarg(lean_object*, lean_o static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__18; lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__14; lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -40,10 +39,12 @@ static lean_object* l_Lean_Meta_Closure_collectLevelAux___closed__2; extern lean_object* l_Lean_ExprStructEq_instHashableExprStructEq; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Closure_collectLevelAux___closed__9; +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__16; lean_object* l_Lean_Meta_mkAuxDefinitionFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_Closure_pickNextToProcess_x3f___spec__1___boxed(lean_object*); lean_object* l_Lean_Meta_Closure_process_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Lean_Meta_Closure_State_newLocalDecls___default; @@ -61,11 +62,13 @@ lean_object* l_Lean_Meta_Closure_visitLevel_match__1(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_Closure_State_exprFVarArgs___default; +lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_nextLevelIdx___default; lean_object* l_Lean_Meta_Closure_State_nextExprIdx___default; uint8_t l_Lean_Level_hasParam(lean_object*); lean_object* l_Lean_Meta_Closure_State_levelArgs___default; uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAuxDefinitionFor(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__15; lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -106,12 +109,14 @@ uint8_t l_Lean_Expr_hasLevelParam(lean_object*); lean_object* l_Lean_Meta_getZetaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f(uint8_t); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_instHashableLevel; static lean_object* l_Lean_Meta_mkAuxDefinition___lambda__3___closed__3; lean_object* l_Lean_Meta_Closure_collectExprAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_newLocalDeclsForMVars___default; lean_object* l_Lean_compileDecl___at_Lean_Meta_mkAuxDefinition___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); @@ -125,6 +130,7 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_append_index_after(lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_visitedLevel___default; lean_object* l_Array_back___at_Lean_Meta_Closure_pickNextToProcess_x3f___spec__1(lean_object*); lean_object* l_Lean_Meta_Closure_collectExprAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -132,8 +138,6 @@ lean_object* l_Lean_Meta_Closure_process___boxed(lean_object*, lean_object*, lea lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__1; lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__17; static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__8; @@ -161,6 +165,7 @@ lean_object* l_Lean_Meta_Closure_mkBinding___boxed(lean_object*, lean_object*, l lean_object* l_Lean_Meta_Closure_visitExpr_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_preprocess___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_resetZetaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, 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_Lean_Meta_Closure_preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); @@ -191,6 +196,7 @@ static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__9; lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_Closure_process_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkValueTypeClosureAux(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_toProcess___default; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -206,7 +212,6 @@ lean_object* l_Lean_Meta_Closure_collectLevelAux_match__1___rarg(lean_object*, l static lean_object* l_List_foldlM___at_Lean_Meta_mkAuxDefinition___spec__6___closed__4; lean_object* l_Lean_Meta_Closure_mkValueTypeClosure_match__1(lean_object*); lean_object* l_Lean_Meta_mkAuxDefinition___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkAuxDefinition___lambda__3___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_mkNextUserName___rarg___closed__1; @@ -215,14 +220,12 @@ lean_object* l_Lean_Meta_Closure_collectExprAux(lean_object*, uint8_t, lean_obje uint8_t lean_is_aux_recursor(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkForall(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitLevel___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkValueTypeClosureAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAuxDefinition___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_instInhabitedToProcessElement___closed__1; lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkLambda___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectExprAux_match__2(lean_object*); -lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkNextUserName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkBinding___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -238,6 +241,7 @@ lean_object* l_List_foldlM___at_Lean_Meta_mkAuxDefinition___spec__7(lean_object* lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Std_mkHashMap___at_Lean_Meta_Closure_State_visitedLevel___default___spec__1(lean_object*); lean_object* l_Lean_Meta_Closure_process_match__2(lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); @@ -250,10 +254,8 @@ static lean_object* l_Lean_Meta_mkAuxDefinition___closed__1; lean_object* l_Lean_Meta_mkAuxDefinition___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_instInhabitedToProcessElement; lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__19; static lean_object* l_Lean_Meta_Closure_collectLevelAux___closed__6; -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__4; lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); @@ -272,6 +274,8 @@ uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_newLetDecls___default; uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l_Lean_Meta_Closure_process_match__1(lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxDefinition___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -282,9 +286,9 @@ lean_object* l_Lean_Meta_Closure_collectLevel___boxed(lean_object*, lean_object* static lean_object* l_Lean_Meta_Closure_collectExprAux___closed__10; extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors; lean_object* lean_expr_update_const(lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_pushToProcess(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkValueTypeClosure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta_Closure_mkValueTypeClosure___closed__1; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedLevel; @@ -1723,7 +1727,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectLevelAux___closed__1; x_2 = l_Lean_Meta_Closure_collectLevelAux___closed__2; -x_3 = lean_unsigned_to_nat(487u); +x_3 = lean_unsigned_to_nat(506u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Meta_Closure_collectLevelAux___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1752,7 +1756,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectLevelAux___closed__1; x_2 = l_Lean_Meta_Closure_collectLevelAux___closed__5; -x_3 = lean_unsigned_to_nat(496u); +x_3 = lean_unsigned_to_nat(515u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_Meta_Closure_collectLevelAux___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1781,7 +1785,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectLevelAux___closed__1; x_2 = l_Lean_Meta_Closure_collectLevelAux___closed__8; -x_3 = lean_unsigned_to_nat(505u); +x_3 = lean_unsigned_to_nat(524u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Meta_Closure_collectLevelAux___closed__9; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -3853,7 +3857,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Closure_collectExprAux_match__2___r return x_2; } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg(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; uint8_t x_7; @@ -4020,15 +4024,40 @@ return x_48; } } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2(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; -x_6 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg___boxed), 2, 0); +x_6 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg___boxed), 2, 0); return x_6; } } -lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(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) { +lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___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, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(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: { if (lean_obj_tag(x_1) == 0) @@ -4055,7 +4084,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_17 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_16); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { @@ -4096,7 +4125,7 @@ lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); -x_28 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_27); +x_28 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_27); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -4154,7 +4183,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__2; -x_3 = lean_unsigned_to_nat(924u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4183,7 +4212,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__5; -x_3 = lean_unsigned_to_nat(929u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4212,7 +4241,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__8; -x_3 = lean_unsigned_to_nat(889u); +x_3 = lean_unsigned_to_nat(908u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__9; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4241,7 +4270,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__11; -x_3 = lean_unsigned_to_nat(957u); +x_3 = lean_unsigned_to_nat(976u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__12; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4270,7 +4299,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__14; -x_3 = lean_unsigned_to_nat(943u); +x_3 = lean_unsigned_to_nat(962u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__15; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4299,7 +4328,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__17; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(985u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__18; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4328,7 +4357,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(x_7, x_44); +x_45 = l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -4379,7 +4408,7 @@ lean_dec(x_56); if (lean_obj_tag(x_58) == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_59 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(x_7, x_57); +x_59 = l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_57); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -5197,7 +5226,7 @@ goto block_341; block_294: { lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_245 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(x_7, x_244); +x_245 = l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_244); x_246 = lean_ctor_get(x_245, 0); lean_inc(x_246); x_247 = lean_ctor_get(x_245, 1); @@ -5642,7 +5671,7 @@ if (x_375 == 0) lean_object* x_376; lean_object* x_377; uint8_t x_378; x_376 = lean_ctor_get(x_1, 1); lean_inc(x_376); -x_377 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(x_376, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_377 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(x_376, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5681,7 +5710,7 @@ lean_inc(x_386); lean_inc(x_385); lean_dec(x_1); lean_inc(x_386); -x_388 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(x_386, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_388 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(x_386, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -8311,22 +8340,22 @@ return x_40; } } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___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_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__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_1); lean_dec(x_1); -x_7 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1(x_6, x_2, x_3, x_4, x_5); +x_7 = l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__2(x_6, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -8334,13 +8363,28 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Lean_mkFreshFVarId___at_Lean_Meta_Closure_collectExprAux___spec__1(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3___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_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__2(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_List_mapM___at_Lean_Meta_Closure_collectExprAux___spec__3(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9856,7 +9900,51 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Closure_process_match__2___rarg), 3 return x_2; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -10015,7 +10103,7 @@ lean_dec(x_20); x_37 = !lean_is_exclusive(x_21); if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; x_38 = lean_ctor_get(x_21, 2); x_39 = lean_ctor_get(x_21, 3); x_40 = lean_ctor_get(x_21, 4); @@ -10029,9 +10117,9 @@ lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); lean_dec(x_43); -x_46 = l_Lean_NameSet_contains(x_44, x_18); +x_46 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_44, x_18); lean_dec(x_44); -if (x_46 == 0) +if (lean_obj_tag(x_46) == 0) { uint8_t x_47; lean_object* x_48; lean_free_object(x_21); @@ -10087,6 +10175,7 @@ return x_57; else { lean_object* x_58; +lean_dec(x_46); lean_dec(x_18); lean_inc(x_6); lean_inc(x_5); @@ -10164,7 +10253,7 @@ x_84 = lean_usize_of_nat(x_83); lean_dec(x_83); x_85 = 0; x_86 = x_82; -x_87 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(x_19, x_62, x_84, x_85, x_86); +x_87 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(x_19, x_62, x_84, x_85, x_86); lean_dec(x_62); x_88 = x_87; lean_ctor_set(x_79, 5, x_88); @@ -10208,7 +10297,7 @@ x_105 = lean_usize_of_nat(x_104); lean_dec(x_104); x_106 = 0; x_107 = x_97; -x_108 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(x_19, x_62, x_105, x_106, x_107); +x_108 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(x_19, x_62, x_105, x_106, x_107); lean_dec(x_62); x_109 = x_108; x_110 = lean_alloc_ctor(0, 12, 0); @@ -10344,7 +10433,7 @@ x_151 = lean_usize_of_nat(x_150); lean_dec(x_150); x_152 = 0; x_153 = x_142; -x_154 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(x_19, x_62, x_151, x_152, x_153); +x_154 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(x_19, x_62, x_151, x_152, x_153); lean_dec(x_62); x_155 = x_154; if (lean_is_scalar(x_149)) { @@ -10437,7 +10526,7 @@ return x_167; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; x_168 = lean_ctor_get(x_21, 2); x_169 = lean_ctor_get(x_21, 3); x_170 = lean_ctor_get(x_21, 4); @@ -10451,9 +10540,9 @@ lean_inc(x_172); x_173 = lean_ctor_get(x_171, 1); lean_inc(x_173); lean_dec(x_171); -x_174 = l_Lean_NameSet_contains(x_172, x_18); +x_174 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_172, x_18); lean_dec(x_172); -if (x_174 == 0) +if (lean_obj_tag(x_174) == 0) { uint8_t x_175; lean_object* x_176; lean_dec(x_170); @@ -10510,6 +10599,7 @@ return x_185; else { lean_object* x_186; +lean_dec(x_174); lean_dec(x_18); lean_inc(x_6); lean_inc(x_5); @@ -10679,7 +10769,7 @@ x_236 = lean_usize_of_nat(x_235); lean_dec(x_235); x_237 = 0; x_238 = x_227; -x_239 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(x_19, x_190, x_236, x_237, x_238); +x_239 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(x_19, x_190, x_236, x_237, x_238); lean_dec(x_190); x_240 = x_239; if (lean_is_scalar(x_234)) { @@ -10804,7 +10894,17 @@ return x_256; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___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_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2___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; @@ -10812,7 +10912,7 @@ 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_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__2(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Meta/CollectFVars.c b/stage0/stdlib/Lean/Meta/CollectFVars.c index cf526c1a0f..1effa42055 100644 --- a/stage0/stdlib/Lean/Meta/CollectFVars.c +++ b/stage0/stdlib/Lean/Meta/CollectFVars.c @@ -22,6 +22,7 @@ static lean_object* l_Lean_Elab_Term_removeUnused___closed__1; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); @@ -47,7 +48,6 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_removeUnused_match__1(lean_object*); lean_object* l_Lean_Elab_Term_removeUnused_match__1___rarg(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -408,15 +408,15 @@ lean_dec(x_21); x_22 = !lean_is_exclusive(x_15); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_23 = lean_ctor_get(x_15, 0); x_24 = lean_ctor_get(x_15, 1); x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); x_26 = l_Lean_Expr_fvarId_x21(x_13); -x_27 = l_Lean_NameSet_contains(x_25, x_26); +x_27 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_25, x_26); lean_dec(x_25); -if (x_27 == 0) +if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_dec(x_13); @@ -431,6 +431,7 @@ goto _start; else { lean_object* x_31; +lean_dec(x_27); lean_dec(x_26); lean_inc(x_8); lean_inc(x_7); @@ -558,7 +559,7 @@ return x_55; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_56 = lean_ctor_get(x_15, 0); x_57 = lean_ctor_get(x_15, 1); lean_inc(x_57); @@ -567,9 +568,9 @@ lean_dec(x_15); x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); x_59 = l_Lean_Expr_fvarId_x21(x_13); -x_60 = l_Lean_NameSet_contains(x_58, x_59); +x_60 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_58, x_59); lean_dec(x_58); -if (x_60 == 0) +if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_13); @@ -588,6 +589,7 @@ goto _start; else { lean_object* x_65; +lean_dec(x_60); lean_dec(x_59); lean_inc(x_8); lean_inc(x_7); @@ -720,7 +722,7 @@ return x_90; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; x_91 = lean_ctor_get(x_14, 0); lean_inc(x_91); lean_dec(x_14); @@ -739,9 +741,9 @@ if (lean_is_exclusive(x_15)) { x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); x_96 = l_Lean_Expr_fvarId_x21(x_13); -x_97 = l_Lean_NameSet_contains(x_95, x_96); +x_97 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_95, x_96); lean_dec(x_95); -if (x_97 == 0) +if (lean_obj_tag(x_97) == 0) { lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_dec(x_13); @@ -766,6 +768,7 @@ goto _start; else { lean_object* x_103; +lean_dec(x_97); lean_dec(x_96); lean_inc(x_8); lean_inc(x_7); @@ -905,7 +908,7 @@ return x_129; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; x_130 = lean_ctor_get(x_4, 0); lean_inc(x_130); lean_dec(x_4); @@ -934,9 +937,9 @@ if (lean_is_exclusive(x_15)) { x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); x_137 = l_Lean_Expr_fvarId_x21(x_13); -x_138 = l_Lean_NameSet_contains(x_136, x_137); +x_138 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_136, x_137); lean_dec(x_136); -if (x_138 == 0) +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_dec(x_13); @@ -967,6 +970,7 @@ goto _start; else { lean_object* x_145; +lean_dec(x_138); lean_dec(x_137); lean_inc(x_8); lean_inc(x_7); diff --git a/stage0/stdlib/Lean/Meta/DiscrTree.c b/stage0/stdlib/Lean/Meta/DiscrTree.c index 5160f142d2..516b632222 100644 --- a/stage0/stdlib/Lean/Meta/DiscrTree.c +++ b/stage0/stdlib/Lean/Meta/DiscrTree.c @@ -26,6 +26,7 @@ static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNum lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Array_back___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___boxed(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_empty___closed__3; static lean_object* l_Array_back___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___closed__1; static lean_object* l_Array_back___at___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___spec__2___rarg___closed__2; @@ -65,6 +66,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_format_match__1(lean_object*); lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getMatchKeyArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_getMatch_process_match__2(lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getMatch_process___spec__2(lean_object*); lean_object* l_Lean_Meta_DiscrTree_instInhabitedDiscrTree(lean_object*); @@ -223,6 +225,7 @@ static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__4; static lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation___closed__1; static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1; lean_object* l_Lean_Meta_DiscrTree_getUnify(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRoot(lean_object*); uint8_t l_Array_contains___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process___spec__4___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,6 +292,7 @@ lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object static lean_object* l_Lean_Meta_DiscrTree_format___rarg___closed__1; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_shouldAddAsStar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_insertCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_format___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getMatch_process___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_DiscrTree_mkPathAux___spec__1___boxed(lean_object*); @@ -307,9 +311,10 @@ lean_object* l_Lean_Meta_DiscrTree_getMatch_process(lean_object*); lean_object* lean_array_pop(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__7; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__5; -lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getUnify_process___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra(lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ignoreArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_Key_arity_match__1(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_isNumeral___closed__3; @@ -329,6 +334,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_DiscrTree_getUnify_process lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey___rarg(lean_object*, lean_object*); lean_object* l_Array_binSearchAux___at_Lean_Meta_DiscrTree_getMatch_process___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs_match__1(lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_insertCore(lean_object*); static lean_object* l_List_mapTRAux___at_Lean_Meta_DiscrTree_Trie_format___spec__1___rarg___closed__6; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_whnfUntilBadKey_step(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -358,6 +364,7 @@ static lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__1; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_findKey(lean_object*); uint8_t l_Lean_Meta_ParamInfo_isStrictImplicit(lean_object*); static lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie___closed__2; +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -7729,6 +7736,95 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra_match__1___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: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_8, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_2); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_8, x_11); +lean_dec(x_8); +x_13 = lean_apply_2(x_3, x_7, x_12); +return x_13; +} +else +{ +lean_object* x_14; +lean_dec(x_8); +lean_dec(x_3); +x_14 = lean_apply_1(x_2, x_7); +return x_14; +} +} +case 1: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_16, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_16, x_19); +lean_dec(x_16); +x_21 = lean_apply_2(x_5, x_15, x_20); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_16); +lean_dec(x_5); +x_22 = lean_apply_1(x_4, x_15); +return x_22; +} +} +default: +{ +lean_object* x_23; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = lean_apply_1(x_6, x_1); +return x_23; +} +} +} +} +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra_match__1___rarg), 6, 0); +return x_2; +} +} lean_object* l_Lean_Meta_DiscrTree_getMatch_process_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -9302,677 +9398,890 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Meta_DiscrTree_getMatch___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) { +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRoot___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, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_8; uint8_t x_9; -lean_inc(x_1); -x_8 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); -x_9 = !lean_is_exclusive(x_3); -if (x_9 == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Lean_Meta_DiscrTree_instBEqKey; +x_11 = l_Lean_Meta_DiscrTree_instHashableKey; +x_12 = l_Std_PersistentHashMap_find_x3f___rarg(x_10, x_11, x_1, x_2); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_3, 0); +lean_object* x_13; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Meta_DiscrTree_getMatch_process___rarg(x_3, x_14, x_4, x_5, x_6, x_7, x_8, x_9); +return x_15; +} +} +} +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRoot(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +uint8_t x_11; x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { -uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_12 = 2; -lean_ctor_set_uint8(x_10, 5, x_12); -x_13 = 1; +uint8_t x_12; +x_12 = !lean_is_exclusive(x_2); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_10, 1); +x_15 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_2, 1); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_16, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_free_object(x_10); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_16, x_19); +lean_dec(x_16); +lean_ctor_set(x_2, 1, x_20); +x_21 = lean_array_pop(x_3); +x_3 = x_21; +x_4 = x_13; +x_9 = x_14; +goto _start; +} +else +{ +lean_free_object(x_2); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +x_25 = lean_ctor_get(x_2, 0); +x_26 = lean_ctor_get(x_2, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_2); +x_27 = lean_unsigned_to_nat(0u); +x_28 = lean_nat_dec_eq(x_26, x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_free_object(x_10); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_sub(x_26, x_29); +lean_dec(x_26); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_25); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_array_pop(x_3); +x_2 = x_31; +x_3 = x_32; +x_4 = x_23; +x_9 = x_24; +goto _start; +} +else +{ +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +} +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; uint8_t x_40; +x_34 = lean_ctor_get(x_10, 0); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_10); +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_2, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_38 = x_2; +} else { + lean_dec_ref(x_2); + x_38 = lean_box(0); +} +x_39 = lean_unsigned_to_nat(0u); +x_40 = lean_nat_dec_eq(x_37, x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_sub(x_37, x_41); +lean_dec(x_37); +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_36); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_array_pop(x_3); +x_2 = x_43; +x_3 = x_44; +x_4 = x_34; +x_9 = x_35; +goto _start; +} +else +{ +lean_object* x_46; +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_34); +lean_ctor_set(x_46, 1, x_35); +return x_46; +} +} +} +case 1: +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_10); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_2); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_49 = lean_ctor_get(x_10, 0); +x_50 = lean_ctor_get(x_10, 1); +x_51 = lean_ctor_get(x_2, 0); +x_52 = lean_ctor_get(x_2, 1); +x_53 = lean_unsigned_to_nat(0u); +x_54 = lean_nat_dec_eq(x_52, x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_free_object(x_10); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_sub(x_52, x_55); +lean_dec(x_52); +lean_ctor_set(x_2, 1, x_56); +x_57 = lean_array_pop(x_3); +x_3 = x_57; +x_4 = x_49; +x_9 = x_50; +goto _start; +} +else +{ +lean_free_object(x_2); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_10, 0); +x_60 = lean_ctor_get(x_10, 1); +x_61 = lean_ctor_get(x_2, 0); +x_62 = lean_ctor_get(x_2, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_2); +x_63 = lean_unsigned_to_nat(0u); +x_64 = lean_nat_dec_eq(x_62, x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_free_object(x_10); +x_65 = lean_unsigned_to_nat(1u); +x_66 = lean_nat_sub(x_62, x_65); +lean_dec(x_62); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_array_pop(x_3); +x_2 = x_67; +x_3 = x_68; +x_4 = x_59; +x_9 = x_60; +goto _start; +} +else +{ +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +} +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; uint8_t x_76; +x_70 = lean_ctor_get(x_10, 0); +x_71 = lean_ctor_get(x_10, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_10); +x_72 = lean_ctor_get(x_2, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_2, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_74 = x_2; +} else { + lean_dec_ref(x_2); + x_74 = lean_box(0); +} +x_75 = lean_unsigned_to_nat(0u); +x_76 = lean_nat_dec_eq(x_73, x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_77 = lean_unsigned_to_nat(1u); +x_78 = lean_nat_sub(x_73, x_77); +lean_dec(x_73); +if (lean_is_scalar(x_74)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_74; +} +lean_ctor_set(x_79, 0, x_72); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_array_pop(x_3); +x_2 = x_79; +x_3 = x_80; +x_4 = x_70; +x_9 = x_71; +goto _start; +} +else +{ +lean_object* x_82; +lean_dec(x_74); +lean_dec(x_73); +lean_dec(x_72); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_70); +lean_ctor_set(x_82, 1, x_71); +return x_82; +} +} +} +default: +{ +uint8_t x_83; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_10); +if (x_83 == 0) +{ +return x_10; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_10, 0); +x_85 = lean_ctor_get(x_10, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_10); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_10); +if (x_87 == 0) +{ +return x_10; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_10, 0); +x_89 = lean_ctor_get(x_10, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_10); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +} +lean_object* l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_20; +lean_inc(x_1); +x_9 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getStarResult___rarg(x_1); +x_20 = !lean_is_exclusive(x_4); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_4, 0); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +uint8_t x_23; uint8_t x_24; lean_object* x_25; +x_23 = 2; +lean_ctor_set_uint8(x_21, 5, x_23); +x_24 = 1; +lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_14 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_13, x_13, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_14) == 0) +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_24, x_24, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 3) +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 3) { -uint8_t x_17; -lean_dec(x_15); -lean_dec(x_3); +uint8_t x_28; +lean_dec(x_26); +lean_dec(x_4); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_1); -x_17 = !lean_is_exclusive(x_14); -if (x_17 == 0) +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) { -lean_object* x_18; -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -lean_ctor_set(x_14, 0, x_8); -return x_14; -} -else -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_14, 1); -lean_inc(x_19); -lean_dec(x_14); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_8); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -else -{ -uint8_t x_21; -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_22 = lean_ctor_get(x_14, 1); -x_23 = lean_ctor_get(x_14, 0); -lean_dec(x_23); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(x_24); -lean_dec(x_15); -x_25 = l_Lean_Meta_DiscrTree_instBEqKey; -x_26 = l_Lean_Meta_DiscrTree_instHashableKey; -x_27 = l_Std_PersistentHashMap_find_x3f___rarg(x_25, x_26, x_1, x_16); -if (lean_obj_tag(x_27) == 0) -{ -lean_dec(x_24); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set(x_14, 0, x_8); -return x_14; -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_free_object(x_14); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -lean_dec(x_27); -x_29 = l_Lean_Meta_DiscrTree_getMatch_process___rarg(x_24, x_28, x_8, x_3, x_4, x_5, x_6, x_22); -if (lean_obj_tag(x_29) == 0) -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -return x_29; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_inc(x_31); +lean_object* x_29; +x_29 = lean_ctor_get(x_25, 0); lean_dec(x_29); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_ctor_set(x_25, 0, x_9); +x_10 = x_25; +goto block_19; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_9); +lean_ctor_set(x_31, 1, x_30); +x_10 = x_31; +goto block_19; } } else { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_29); -if (x_34 == 0) +if (x_3 == 0) { -return x_29; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_dec(x_25); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +x_34 = l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg(x_1, x_27, x_33, x_9, x_4, x_5, x_6, x_7, x_32); +x_10 = x_34; +goto block_19; } else { lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_29, 0); -x_36 = lean_ctor_get(x_29, 1); -lean_inc(x_36); +x_35 = lean_ctor_get(x_25, 1); lean_inc(x_35); -lean_dec(x_29); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} +lean_dec(x_25); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_dec(x_26); +x_37 = l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___rarg(x_1, x_27, x_36, x_9, x_4, x_5, x_6, x_7, x_35); +x_10 = x_37; +goto block_19; } } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_14, 1); -lean_inc(x_38); -lean_dec(x_14); -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_dec(x_15); -x_40 = l_Lean_Meta_DiscrTree_instBEqKey; -x_41 = l_Lean_Meta_DiscrTree_instHashableKey; -x_42 = l_Std_PersistentHashMap_find_x3f___rarg(x_40, x_41, x_1, x_16); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -lean_dec(x_39); -lean_dec(x_3); +uint8_t x_38; +lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_8); -lean_ctor_set(x_43, 1, x_38); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Meta_DiscrTree_getMatch_process___rarg(x_39, x_44, x_8, x_3, x_4, x_5, x_6, x_38); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_48 = x_45; -} else { - lean_dec_ref(x_45); - x_48 = lean_box(0); -} -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_45, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_45, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_52 = x_45; -} else { - lean_dec_ref(x_45); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; -} -} -} -} -} -else -{ -uint8_t x_54; -lean_dec(x_3); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_14); -if (x_54 == 0) +x_38 = !lean_is_exclusive(x_25); +if (x_38 == 0) { -return x_14; +x_10 = x_25; +goto block_19; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_14, 0); -x_56 = lean_ctor_get(x_14, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_14); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_25, 0); +x_40 = lean_ctor_get(x_25, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_25); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_10 = x_41; +goto block_19; } } } else { -uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_58 = lean_ctor_get_uint8(x_10, 0); -x_59 = lean_ctor_get_uint8(x_10, 1); -x_60 = lean_ctor_get_uint8(x_10, 2); -x_61 = lean_ctor_get_uint8(x_10, 3); -x_62 = lean_ctor_get_uint8(x_10, 4); -x_63 = lean_ctor_get_uint8(x_10, 6); -x_64 = lean_ctor_get_uint8(x_10, 7); -x_65 = lean_ctor_get_uint8(x_10, 8); -x_66 = lean_ctor_get_uint8(x_10, 9); -x_67 = lean_ctor_get_uint8(x_10, 10); -x_68 = lean_ctor_get_uint8(x_10, 11); -lean_dec(x_10); -x_69 = 2; -x_70 = lean_alloc_ctor(0, 0, 12); -lean_ctor_set_uint8(x_70, 0, x_58); -lean_ctor_set_uint8(x_70, 1, x_59); -lean_ctor_set_uint8(x_70, 2, x_60); -lean_ctor_set_uint8(x_70, 3, x_61); -lean_ctor_set_uint8(x_70, 4, x_62); -lean_ctor_set_uint8(x_70, 5, x_69); -lean_ctor_set_uint8(x_70, 6, x_63); -lean_ctor_set_uint8(x_70, 7, x_64); -lean_ctor_set_uint8(x_70, 8, x_65); -lean_ctor_set_uint8(x_70, 9, x_66); -lean_ctor_set_uint8(x_70, 10, x_67); -lean_ctor_set_uint8(x_70, 11, x_68); -lean_ctor_set(x_3, 0, x_70); -x_71 = 1; +uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; +x_42 = lean_ctor_get_uint8(x_21, 0); +x_43 = lean_ctor_get_uint8(x_21, 1); +x_44 = lean_ctor_get_uint8(x_21, 2); +x_45 = lean_ctor_get_uint8(x_21, 3); +x_46 = lean_ctor_get_uint8(x_21, 4); +x_47 = lean_ctor_get_uint8(x_21, 6); +x_48 = lean_ctor_get_uint8(x_21, 7); +x_49 = lean_ctor_get_uint8(x_21, 8); +x_50 = lean_ctor_get_uint8(x_21, 9); +x_51 = lean_ctor_get_uint8(x_21, 10); +x_52 = lean_ctor_get_uint8(x_21, 11); +lean_dec(x_21); +x_53 = 2; +x_54 = lean_alloc_ctor(0, 0, 12); +lean_ctor_set_uint8(x_54, 0, x_42); +lean_ctor_set_uint8(x_54, 1, x_43); +lean_ctor_set_uint8(x_54, 2, x_44); +lean_ctor_set_uint8(x_54, 3, x_45); +lean_ctor_set_uint8(x_54, 4, x_46); +lean_ctor_set_uint8(x_54, 5, x_53); +lean_ctor_set_uint8(x_54, 6, x_47); +lean_ctor_set_uint8(x_54, 7, x_48); +lean_ctor_set_uint8(x_54, 8, x_49); +lean_ctor_set_uint8(x_54, 9, x_50); +lean_ctor_set_uint8(x_54, 10, x_51); +lean_ctor_set_uint8(x_54, 11, x_52); +lean_ctor_set(x_4, 0, x_54); +x_55 = 1; +lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_72 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_71, x_71, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_72) == 0) +x_56 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_55, x_55, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -if (lean_obj_tag(x_74) == 3) +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 3) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_73); -lean_dec(x_3); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_57); +lean_dec(x_4); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_1); -x_75 = lean_ctor_get(x_72, 1); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_60 = x_56; +} else { + lean_dec_ref(x_56); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_9); +lean_ctor_set(x_61, 1, x_59); +x_10 = x_61; +goto block_19; +} +else +{ +if (x_3 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +lean_dec(x_56); +x_63 = lean_ctor_get(x_57, 1); +lean_inc(x_63); +lean_dec(x_57); +x_64 = l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg(x_1, x_58, x_63, x_9, x_4, x_5, x_6, x_7, x_62); +x_10 = x_64; +goto block_19; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_56, 1); +lean_inc(x_65); +lean_dec(x_56); +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +lean_dec(x_57); +x_67 = l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___rarg(x_1, x_58, x_66, x_9, x_4, x_5, x_6, x_7, x_65); +x_10 = x_67; +goto block_19; +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_68 = lean_ctor_get(x_56, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_56, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_70 = x_56; +} else { + lean_dec_ref(x_56); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +x_10 = x_71; +goto block_19; +} +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; +x_72 = lean_ctor_get(x_4, 0); +x_73 = lean_ctor_get(x_4, 1); +x_74 = lean_ctor_get(x_4, 2); +x_75 = lean_ctor_get(x_4, 3); +x_76 = lean_ctor_get(x_4, 4); +lean_inc(x_76); lean_inc(x_75); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_76 = x_72; -} else { - lean_dec_ref(x_72); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_8); -lean_ctor_set(x_77, 1, x_75); -return x_77; -} -else -{ -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_78 = lean_ctor_get(x_72, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_79 = x_72; -} else { - lean_dec_ref(x_72); - x_79 = lean_box(0); -} -x_80 = lean_ctor_get(x_73, 1); -lean_inc(x_80); -lean_dec(x_73); -x_81 = l_Lean_Meta_DiscrTree_instBEqKey; -x_82 = l_Lean_Meta_DiscrTree_instHashableKey; -x_83 = l_Std_PersistentHashMap_find_x3f___rarg(x_81, x_82, x_1, x_74); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; -lean_dec(x_80); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); lean_dec(x_4); -if (lean_is_scalar(x_79)) { - x_84 = lean_alloc_ctor(0, 2, 0); +x_77 = lean_ctor_get_uint8(x_72, 0); +x_78 = lean_ctor_get_uint8(x_72, 1); +x_79 = lean_ctor_get_uint8(x_72, 2); +x_80 = lean_ctor_get_uint8(x_72, 3); +x_81 = lean_ctor_get_uint8(x_72, 4); +x_82 = lean_ctor_get_uint8(x_72, 6); +x_83 = lean_ctor_get_uint8(x_72, 7); +x_84 = lean_ctor_get_uint8(x_72, 8); +x_85 = lean_ctor_get_uint8(x_72, 9); +x_86 = lean_ctor_get_uint8(x_72, 10); +x_87 = lean_ctor_get_uint8(x_72, 11); +if (lean_is_exclusive(x_72)) { + x_88 = x_72; } else { - x_84 = x_79; + lean_dec_ref(x_72); + x_88 = lean_box(0); } -lean_ctor_set(x_84, 0, x_8); -lean_ctor_set(x_84, 1, x_78); -return x_84; -} -else -{ -lean_object* x_85; lean_object* x_86; -lean_dec(x_79); -x_85 = lean_ctor_get(x_83, 0); -lean_inc(x_85); -lean_dec(x_83); -x_86 = l_Lean_Meta_DiscrTree_getMatch_process___rarg(x_80, x_85, x_8, x_3, x_4, x_5, x_6, x_78); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_89 = x_86; +x_89 = 2; +if (lean_is_scalar(x_88)) { + x_90 = lean_alloc_ctor(0, 0, 12); } else { - lean_dec_ref(x_86); - x_89 = lean_box(0); + x_90 = x_88; } -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(0, 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; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_86, 0); +lean_ctor_set_uint8(x_90, 0, x_77); +lean_ctor_set_uint8(x_90, 1, x_78); +lean_ctor_set_uint8(x_90, 2, x_79); +lean_ctor_set_uint8(x_90, 3, x_80); +lean_ctor_set_uint8(x_90, 4, x_81); +lean_ctor_set_uint8(x_90, 5, x_89); +lean_ctor_set_uint8(x_90, 6, x_82); +lean_ctor_set_uint8(x_90, 7, x_83); +lean_ctor_set_uint8(x_90, 8, x_84); +lean_ctor_set_uint8(x_90, 9, x_85); +lean_ctor_set_uint8(x_90, 10, x_86); +lean_ctor_set_uint8(x_90, 11, x_87); +x_91 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_73); +lean_ctor_set(x_91, 2, x_74); +lean_ctor_set(x_91, 3, x_75); +lean_ctor_set(x_91, 4, x_76); +x_92 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); lean_inc(x_91); -x_92 = lean_ctor_get(x_86, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_93 = x_86; -} else { - lean_dec_ref(x_86); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -} -} -} -else +x_93 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_92, x_92, x_91, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_3); -lean_dec(x_8); +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +if (lean_obj_tag(x_95) == 3) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_94); +lean_dec(x_91); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_1); -x_95 = lean_ctor_get(x_72, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_72, 1); +x_96 = lean_ctor_get(x_93, 1); lean_inc(x_96); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_97 = x_72; +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_97 = x_93; } else { - lean_dec_ref(x_72); + lean_dec_ref(x_93); x_97 = lean_box(0); } if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); + x_98 = lean_alloc_ctor(0, 2, 0); } else { x_98 = x_97; } -lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 0, x_9); lean_ctor_set(x_98, 1, x_96); -return x_98; -} -} +x_10 = x_98; +goto block_19; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; -x_99 = lean_ctor_get(x_3, 0); -x_100 = lean_ctor_get(x_3, 1); -x_101 = lean_ctor_get(x_3, 2); -x_102 = lean_ctor_get(x_3, 3); -x_103 = lean_ctor_get(x_3, 4); -lean_inc(x_103); -lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); +if (x_3 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_93, 1); lean_inc(x_99); -lean_dec(x_3); -x_104 = lean_ctor_get_uint8(x_99, 0); -x_105 = lean_ctor_get_uint8(x_99, 1); -x_106 = lean_ctor_get_uint8(x_99, 2); -x_107 = lean_ctor_get_uint8(x_99, 3); -x_108 = lean_ctor_get_uint8(x_99, 4); -x_109 = lean_ctor_get_uint8(x_99, 6); -x_110 = lean_ctor_get_uint8(x_99, 7); -x_111 = lean_ctor_get_uint8(x_99, 8); -x_112 = lean_ctor_get_uint8(x_99, 9); -x_113 = lean_ctor_get_uint8(x_99, 10); -x_114 = lean_ctor_get_uint8(x_99, 11); -if (lean_is_exclusive(x_99)) { - x_115 = x_99; -} else { - lean_dec_ref(x_99); - x_115 = lean_box(0); +lean_dec(x_93); +x_100 = lean_ctor_get(x_94, 1); +lean_inc(x_100); +lean_dec(x_94); +x_101 = l_Lean_Meta_DiscrTree_getMatch_processRoot___rarg(x_1, x_95, x_100, x_9, x_91, x_5, x_6, x_7, x_99); +x_10 = x_101; +goto block_19; } -x_116 = 2; -if (lean_is_scalar(x_115)) { - x_117 = lean_alloc_ctor(0, 0, 12); -} else { - x_117 = x_115; +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_93, 1); +lean_inc(x_102); +lean_dec(x_93); +x_103 = lean_ctor_get(x_94, 1); +lean_inc(x_103); +lean_dec(x_94); +x_104 = l_Lean_Meta_DiscrTree_getMatch_processRootWithExtra___rarg(x_1, x_95, x_103, x_9, x_91, x_5, x_6, x_7, x_102); +x_10 = x_104; +goto block_19; } -lean_ctor_set_uint8(x_117, 0, x_104); -lean_ctor_set_uint8(x_117, 1, x_105); -lean_ctor_set_uint8(x_117, 2, x_106); -lean_ctor_set_uint8(x_117, 3, x_107); -lean_ctor_set_uint8(x_117, 4, x_108); -lean_ctor_set_uint8(x_117, 5, x_116); -lean_ctor_set_uint8(x_117, 6, x_109); -lean_ctor_set_uint8(x_117, 7, x_110); -lean_ctor_set_uint8(x_117, 8, x_111); -lean_ctor_set_uint8(x_117, 9, x_112); -lean_ctor_set_uint8(x_117, 10, x_113); -lean_ctor_set_uint8(x_117, 11, x_114); -x_118 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_100); -lean_ctor_set(x_118, 2, x_101); -lean_ctor_set(x_118, 3, x_102); -lean_ctor_set(x_118, 4, x_103); -x_119 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_118); -x_120 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs(x_2, x_119, x_119, x_118, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_120) == 0) +} +} +else { -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -if (lean_obj_tag(x_122) == 3) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_121); -lean_dec(x_118); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_91); +lean_dec(x_9); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_1); -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); - x_124 = x_120; +x_105 = lean_ctor_get(x_93, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_93, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_107 = x_93; } else { - lean_dec_ref(x_120); - x_124 = lean_box(0); + lean_dec_ref(x_93); + x_107 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); } else { - x_125 = x_124; + x_108 = x_107; } -lean_ctor_set(x_125, 0, x_8); -lean_ctor_set(x_125, 1, x_123); -return x_125; +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +x_10 = x_108; +goto block_19; +} +} +block_19: +{ +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_126 = lean_ctor_get(x_120, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_127 = x_120; -} else { - lean_dec_ref(x_120); - x_127 = lean_box(0); -} -x_128 = lean_ctor_get(x_121, 1); -lean_inc(x_128); -lean_dec(x_121); -x_129 = l_Lean_Meta_DiscrTree_instBEqKey; -x_130 = l_Lean_Meta_DiscrTree_instHashableKey; -x_131 = l_Std_PersistentHashMap_find_x3f___rarg(x_129, x_130, x_1, x_122); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; -lean_dec(x_128); -lean_dec(x_118); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_127)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_127; -} -lean_ctor_set(x_132, 0, x_8); -lean_ctor_set(x_132, 1, x_126); -return x_132; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_127); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -lean_dec(x_131); -x_134 = l_Lean_Meta_DiscrTree_getMatch_process___rarg(x_128, x_133, x_8, x_118, x_4, x_5, x_6, x_126); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_137 = x_134; -} else { - lean_dec_ref(x_134); - x_137 = lean_box(0); -} -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_137; -} -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_139 = lean_ctor_get(x_134, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_134, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_141 = x_134; -} else { - lean_dec_ref(x_134); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -} +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_118); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_143 = lean_ctor_get(x_120, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_120, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_145 = x_120; -} else { - lean_dec_ref(x_120); - x_145 = lean_box(0); +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); -} else { - x_146 = x_145; +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +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_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; } } } @@ -9981,10 +10290,20 @@ lean_object* l_Lean_Meta_DiscrTree_getMatch(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatch___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_getMatch___rarg___boxed), 8, 0); return x_2; } } +lean_object* l_Lean_Meta_DiscrTree_getMatch___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_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} lean_object* l_Lean_Meta_DiscrTree_getUnify_process_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c b/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c index 6841b9e139..65e268468f 100644 --- a/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c +++ b/stage0/stdlib/Lean/Meta/DiscrTreeTypes.c @@ -19,6 +19,7 @@ lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey_ static lean_object* l_Lean_Meta_DiscrTree_instBEqKey___closed__1; lean_object* l_Lean_Meta_DiscrTree_root___default(lean_object*); static lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_291____closed__11; +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_reprKey____x40_Lean_Meta_DiscrTreeTypes___hyg_291_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1; lean_object* l_Lean_Meta_DiscrTree_instHashableKey; @@ -1317,7 +1318,7 @@ lean_object* x_9; lean_object* x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13 x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); x_11 = 3541; -x_12 = l_Lean_Name_hash(x_9); +x_12 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_9); x_13 = lean_uint64_of_nat(x_10); x_14 = lean_uint64_mix_hash(x_12, x_13); x_15 = lean_uint64_mix_hash(x_11, x_14); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 7d5d321d5a..dec18767a8 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -30,6 +30,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_trySynthPending_match_ lean_object* l_Std_PersistentHashMap_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isCached___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__36(lean_object*, lean_object*, size_t, size_t); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__23(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop___closed__2; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickMVarMVar___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -47,6 +48,7 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__1(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_instMonadCacheExprExprCheckAssignmentM___closed__3; uint8_t l_Lean_MessageData_isNest(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,14 +83,15 @@ lean_object* l_Lean_Meta_CheckAssignment_instMonadCacheExprExprCheckAssignmentM; static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_assignConst___lambda__2___closed__1; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_CheckAssignment_checkMVar___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__12; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqRight___closed__1; lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_checkMVar___spec__25___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,6 +177,7 @@ static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignme static lean_object* l_Lean_Meta_CheckAssignment_check___closed__15; static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__1; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_hasLetDeclsInBetween___spec__1___closed__1; +lean_object* l_List_foldl___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__5(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar_x3f(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqRight___closed__2; lean_object* l_Lean_Meta_isClass_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -186,6 +190,7 @@ lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_M lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_assignConst___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_checkMVar___spec__32___boxed(lean_object*, lean_object*); +uint8_t l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_getConst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__7(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -194,6 +199,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_trySynthPending_match_ lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__47(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__4___closed__5; lean_object* l_Lean_Meta_isDefEqNative(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process___closed__1; lean_object* l_Lean_Meta_CheckAssignment_checkFVar_match__1(lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); @@ -280,6 +286,7 @@ lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__L static lean_object* l_Lean_Meta_CheckAssignment_check___closed__14; uint8_t l_Std_PersistentHashMap_containsAtAux___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isCached___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_trySynthPending(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -314,7 +321,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(lean_objec lean_object* l_Std_PersistentHashMap_containsAux___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isCached___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure___closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processConstApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -422,6 +428,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__40(lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProj_isDefEqSingleton(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_addLetDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs_processOtherArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -435,6 +442,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_ static lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__5; lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__40___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); @@ -454,6 +462,7 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_isEtaUnassignedMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_whenUndefDo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*); @@ -483,7 +492,6 @@ static lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDef static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__21; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_isDefEqBindingDomain_loop_match__1(lean_object*); -lean_object* l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_hints(lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -584,6 +592,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDe lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignmentQuick_check_visit___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__2; +lean_object* l_Std_HashSetImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__2; lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -634,8 +643,8 @@ static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAs lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1(lean_object*); lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__33___boxed(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__11; lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findDecl_x3f(lean_object*, lean_object*); @@ -675,9 +684,12 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDe static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__3; uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_cacheResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isStringLit(lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_check___closed__4; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta_match__1(lean_object*); @@ -743,6 +755,7 @@ static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeftRigh lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); +lean_object* l_Std_mkHashSet___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__4___closed__1; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_consumeLet_match__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux_match__1(lean_object*); @@ -760,7 +773,6 @@ lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_M lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__52(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_mkBVar(lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_checkMVar___spec__18(lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -785,6 +797,7 @@ lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__L lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlM___at_Lean_Meta_CheckAssignment_checkMVar___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqMVarSelf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isSynthetic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__1___closed__2; uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__26(lean_object*, lean_object*); @@ -4992,7 +5005,7 @@ x_15 = lean_ctor_get(x_4, 2); x_16 = lean_expr_instantiate_rev(x_12, x_2); lean_dec(x_12); x_17 = lean_expr_instantiate_rev(x_14, x_2); -x_18 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_9, x_10); +x_18 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_9, x_10); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -5073,7 +5086,7 @@ x_45 = lean_ctor_get(x_4, 2); x_46 = lean_expr_instantiate_rev(x_42, x_2); lean_dec(x_42); x_47 = lean_expr_instantiate_rev(x_44, x_2); -x_48 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_9, x_10); +x_48 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_9, x_10); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -9930,6 +9943,312 @@ lean_dec(x_1); return x_7; } } +uint8_t l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_name_eq(x_1, x_4); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +lean_object* l_List_foldl___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +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; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_array_get_size(x_1); +x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_4); +x_8 = (size_t)x_7; +x_9 = lean_usize_modn(x_8, x_6); +lean_dec(x_6); +x_10 = lean_array_uget(x_1, x_9); +lean_ctor_set(x_2, 1, x_10); +x_11 = lean_array_uset(x_1, x_9, x_2); +x_1 = x_11; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_2); +x_15 = lean_array_get_size(x_1); +x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_13); +x_17 = (size_t)x_16; +x_18 = lean_usize_modn(x_17, x_15); +lean_dec(x_15); +x_19 = lean_array_uget(x_1, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_array_uset(x_1, x_18, x_20); +x_1 = x_21; +x_2 = x_14; +goto _start; +} +} +} +} +lean_object* l_Std_HashSetImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___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_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +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_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_List_foldl___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__5(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +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_Std_HashSetImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__4(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_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_name_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_dec(x_6); +lean_ctor_set(x_1, 0, x_3); +return x_1; +} +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_1); +x_12 = lean_name_eq(x_10, x_2); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +else +{ +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +} +} +} +} +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_array_get_size(x_5); +x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_8 = (size_t)x_7; +x_9 = lean_usize_modn(x_8, x_6); +x_10 = lean_array_uget(x_5, x_9); +x_11 = l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(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; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_10); +x_15 = lean_array_uset(x_5, x_9, x_14); +x_16 = lean_nat_dec_le(x_13, x_6); +lean_dec(x_6); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_1); +x_17 = l_Std_HashSetImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__3(x_13, x_15); +return x_17; +} +else +{ +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_6); +lean_inc(x_2); +x_18 = l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(x_10, x_2, x_2); +lean_dec(x_2); +x_19 = lean_array_uset(x_5, x_9, x_18); +lean_ctor_set(x_1, 1, x_19); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = lean_array_get_size(x_21); +x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_24 = (size_t)x_23; +x_25 = lean_usize_modn(x_24, x_22); +x_26 = lean_array_uget(x_21, x_25); +x_27 = l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(x_2, x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_20, x_28); +lean_dec(x_20); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_2); +lean_ctor_set(x_30, 1, x_26); +x_31 = lean_array_uset(x_21, x_25, x_30); +x_32 = lean_nat_dec_le(x_29, x_22); +lean_dec(x_22); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = l_Std_HashSetImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__3(x_29, x_31); +return x_33; +} +else +{ +lean_object* x_34; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_29); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_22); +lean_inc(x_2); +x_35 = l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(x_26, x_2, x_2); +lean_dec(x_2); +x_36 = lean_array_uset(x_21, x_25, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -10005,7 +10324,7 @@ lean_inc(x_46); lean_dec(x_44); x_47 = l_Lean_LocalDecl_fvarId(x_35); lean_dec(x_35); -x_48 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_45, x_47); +x_48 = l_Std_HashSetImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__1(x_45, x_47); x_49 = lean_st_ref_set(x_4, x_48, x_46); x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); @@ -10826,7 +11145,7 @@ lean_inc(x_263); lean_dec(x_261); x_264 = l_Lean_LocalDecl_fvarId(x_252); lean_dec(x_252); -x_265 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_262, x_264); +x_265 = l_Std_HashSetImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__1(x_262, x_264); x_266 = lean_st_ref_set(x_4, x_265, x_263); x_267 = lean_ctor_get(x_266, 1); lean_inc(x_267); @@ -11592,6 +11911,26 @@ return x_442; } } } +lean_object* l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__6(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -11745,6 +12084,22 @@ lean_dec(x_2); return x_9; } } +uint8_t l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_6 = (size_t)x_5; +x_7 = lean_usize_modn(x_6, x_4); +lean_dec(x_4); +x_8 = lean_array_uget(x_3, x_7); +x_9 = l_List_elem___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__2(x_2, x_8); +lean_dec(x_8); +return x_9; +} +} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux(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: { @@ -11787,7 +12142,7 @@ x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); x_24 = l_Lean_LocalDecl_fvarId(x_18); -x_25 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_22, x_24); +x_25 = l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1(x_22, x_24); lean_dec(x_24); lean_dec(x_22); if (x_25 == 0) @@ -11933,6 +12288,17 @@ return x_47; } } } +lean_object* l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___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___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___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: { @@ -11943,22 +12309,30 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Std_mkHashSet___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashSetImp___rarg(x_1); +return x_2; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; x_5 = x_2 == x_3; if (x_5 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; +lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; x_6 = lean_array_uget(x_1, x_2); x_7 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); -x_8 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_4, x_7); -x_9 = 1; -x_10 = x_2 + x_9; -x_2 = x_10; -x_4 = x_8; +x_8 = 1; +x_9 = x_2 + x_8; +x_10 = l_Std_HashSetImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__1(x_4, x_7); +x_2 = x_9; +x_4 = x_10; goto _start; } else @@ -12048,7 +12422,7 @@ x_47 = 0; x_48 = lean_usize_of_nat(x_16); lean_dec(x_16); x_49 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; -x_50 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(x_1, x_47, x_48, x_49); +x_50 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2(x_1, x_47, x_48, x_49); x_51 = lean_st_mk_ref(x_50, x_46); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); @@ -12125,7 +12499,7 @@ return x_32; } } } -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -12133,7 +12507,7 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -12184,7 +12558,7 @@ x_22 = lean_ctor_get(x_18, 0); lean_inc(x_22); lean_dec(x_18); x_23 = l_Lean_LocalDecl_fvarId(x_22); -x_24 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_2, x_23); +x_24 = l_Std_HashSetImp_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux___spec__1(x_2, x_23); lean_dec(x_23); if (x_24 == 0) { @@ -14778,7 +15152,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__2; -x_3 = lean_unsigned_to_nat(924u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14807,7 +15181,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__5; -x_3 = lean_unsigned_to_nat(929u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14836,7 +15210,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__8; -x_3 = lean_unsigned_to_nat(957u); +x_3 = lean_unsigned_to_nat(976u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__9; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14865,7 +15239,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__11; -x_3 = lean_unsigned_to_nat(943u); +x_3 = lean_unsigned_to_nat(962u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__12; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14894,7 +15268,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__14; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(985u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__15; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33104,9 +33478,18 @@ return x_7; static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashSetImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; -x_2 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; x_3 = lean_box(x_1); x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); @@ -33209,7 +33592,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -33236,7 +33619,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -33277,14 +33660,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -33294,7 +33677,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -33619,7 +34002,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -33646,7 +34029,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -33687,14 +34070,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -33704,7 +34087,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -34023,7 +34406,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -34050,7 +34433,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -34091,14 +34474,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -34108,7 +34491,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -34320,7 +34703,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -34347,7 +34730,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -34388,14 +34771,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -34405,7 +34788,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -34643,7 +35026,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -34670,7 +35053,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -34711,14 +35094,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -34728,7 +35111,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -35027,7 +35410,7 @@ goto _start; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__2(x_7, x_1, x_29, x_33); x_35 = lean_ctor_get(x_34, 0); @@ -35054,7 +35437,7 @@ goto _start; else { lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(x_7, x_1, x_29, x_40); x_42 = lean_ctor_get(x_41, 0); @@ -35095,14 +35478,14 @@ if (x_72 == 0) { lean_object* x_73; lean_dec(x_47); -x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; +x_73 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2; x_49 = x_73; goto block_70; } else { lean_object* x_74; lean_object* x_75; -x_74 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__30(x_7, x_1, x_47, x_74); x_49 = x_75; @@ -35112,7 +35495,7 @@ goto block_70; else { lean_object* x_76; lean_object* x_77; -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___closed__1; +x_76 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1; lean_inc(x_1); x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__37(x_7, x_1, x_47, x_76); x_49 = x_77; @@ -66212,6 +66595,8 @@ l_Lean_Meta_CheckAssignment_checkApp___closed__1 = _init_l_Lean_Meta_CheckAssign lean_mark_persistent(l_Lean_Meta_CheckAssignment_checkApp___closed__1); l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__1); +l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__49___closed__2); l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__46___closed__1 = _init_l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__46___closed__1(); lean_mark_persistent(l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__46___closed__1); l_Lean_Meta_CheckAssignment_checkMVar___closed__1 = _init_l_Lean_Meta_CheckAssignment_checkMVar___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/GeneralizeVars.c b/stage0/stdlib/Lean/Meta/GeneralizeVars.c index 61ac2425e9..43ae425dda 100644 --- a/stage0/stdlib/Lean/Meta/GeneralizeVars.c +++ b/stage0/stdlib/Lean/Meta/GeneralizeVars.c @@ -13,208 +13,210 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarSetToGeneralize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53(lean_object*, size_t, size_t, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34___at_Lean_Meta_getFVarSetToGeneralize___spec__41(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); uint8_t l_USize_decEq(size_t, size_t); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_getFVarsToGeneralize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getFVarSetToGeneralize___closed__1; -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit_match__1(lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__35(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_loop_match__2(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getExprAssignment_x3f(lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarSetToGeneralize_match__1(lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12(lean_object*, lean_object*, size_t, size_t); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_sortFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__44___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at_Lean_Meta_sortFVars___spec__1(lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(lean_object*, lean_object*, size_t, size_t); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__28___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11___at_Lean_Meta_getFVarSetToGeneralize___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__64___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32(lean_object*, lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__2; -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__35___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_loop_match__1(lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_Meta_sortFVars___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet___closed__1; -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(lean_object*, lean_object*, size_t, size_t); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41(lean_object*, lean_object*, size_t, size_t); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25(lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32(lean_object*, lean_object*); -lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__10(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__44(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61(lean_object*, size_t, size_t, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Array_qpartition_loop___at_Lean_Meta_sortFVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarsToGeneralize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17___boxed(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit_match__2___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11___boxed(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48(lean_object*, lean_object*, lean_object*, size_t, size_t); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23(lean_object*, lean_object*, lean_object*, size_t, size_t); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_match__1(lean_object*); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39(lean_object*, lean_object*, lean_object*, size_t, size_t); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25___boxed(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35(lean_object*, lean_object*, size_t, size_t); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20(lean_object*, lean_object*, size_t, size_t); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_getFVarSetToGeneralize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31___boxed(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24___boxed(lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_sortFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Meta_sortFVars___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40(lean_object*, lean_object*, size_t, size_t); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit_match__2(lean_object*); -extern lean_object* l_Lean_instInhabitedName; +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Meta_sortFVars___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__28(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(lean_object*, lean_object*, size_t, size_t); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_getFVarSetToGeneralize_match__1___rarg(lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33(lean_object*, lean_object*, size_t, size_t); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26(lean_object*, lean_object*, size_t, size_t); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__38___boxed(lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__38(lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__64(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25(lean_object*, lean_object*, lean_object*, size_t, size_t); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); +static lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Meta_sortFVars___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkGeneralizationForbiddenSet___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__10___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkGeneralizationForbiddenSet___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_loop_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__12___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43___at_Lean_Meta_getFVarSetToGeneralize___spec__50(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_Array_qsort_sort___at_Lean_Meta_sortFVars___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkGeneralizationForbiddenSet_visit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -341,7 +343,159 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkGeneralizationForbiddenSet_match_ return x_2; } } -lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__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, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +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; uint8_t x_18; +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_2, 3); +lean_inc(x_13); +lean_dec(x_2); +x_14 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +x_21 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_19, x_12); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_inc(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_20); +x_23 = lean_box(0); +x_24 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_19, x_12, x_23); +lean_ctor_set(x_16, 1, x_22); +lean_ctor_set(x_16, 0, x_24); +x_2 = x_13; +x_3 = x_16; +x_8 = x_17; +goto _start; +} +else +{ +lean_dec(x_21); +lean_dec(x_12); +x_2 = x_13; +x_3 = x_16; +x_8 = x_17; +goto _start; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_27, x_12); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_inc(x_12); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_12); +lean_ctor_set(x_30, 1, x_28); +x_31 = lean_box(0); +x_32 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_27, x_12, 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_30); +x_2 = x_13; +x_3 = x_33; +x_8 = x_17; +goto _start; +} +else +{ +lean_object* x_35; +lean_dec(x_29); +lean_dec(x_12); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +x_2 = x_13; +x_3 = x_35; +x_8 = x_17; +goto _start; +} +} +} +} +} +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3(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: { if (lean_obj_tag(x_1) == 0) @@ -364,7 +518,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_1, 3); lean_inc(x_12); lean_dec(x_1); -x_13 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7); +x_13 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3(x_10, x_2, x_3, x_4, x_5, x_6, x_7); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_14, 0); @@ -376,11 +530,11 @@ lean_dec(x_13); x_17 = !lean_is_exclusive(x_15); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_15, 0); x_19 = lean_ctor_get(x_15, 1); -x_20 = l_Lean_NameSet_contains(x_18, x_11); -if (x_20 == 0) +x_20 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_18, x_11); +if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_inc(x_11); @@ -388,7 +542,7 @@ x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_11); lean_ctor_set(x_21, 1, x_19); x_22 = lean_box(0); -x_23 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_18, x_11, x_22); +x_23 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_18, x_11, x_22); lean_ctor_set(x_15, 1, x_21); lean_ctor_set(x_15, 0, x_23); x_1 = x_12; @@ -398,6 +552,7 @@ goto _start; } else { +lean_dec(x_20); lean_dec(x_11); x_1 = x_12; x_2 = x_15; @@ -407,14 +562,14 @@ goto _start; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; +lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_15, 0); x_27 = lean_ctor_get(x_15, 1); lean_inc(x_27); lean_inc(x_26); lean_dec(x_15); -x_28 = l_Lean_NameSet_contains(x_26, x_11); -if (x_28 == 0) +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_26, x_11); +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_inc(x_11); @@ -422,7 +577,7 @@ x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_11); lean_ctor_set(x_29, 1, x_27); x_30 = lean_box(0); -x_31 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_26, x_11, x_30); +x_31 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_26, x_11, x_30); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_29); @@ -434,6 +589,7 @@ goto _start; else { lean_object* x_34; +lean_dec(x_28); lean_dec(x_11); x_34 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_34, 0, x_26); @@ -457,7 +613,7 @@ lean_dec(x_3); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_2); -x_12 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_10, x_11, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3(x_10, x_11, x_5, x_6, x_7, x_8, x_9); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_13, 0); @@ -514,11 +670,11 @@ static lean_object* _init_l_Lean_Meta_mkGeneralizationForbiddenSet_visit___close _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -684,11 +840,34 @@ return x_39; } } } -lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___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: +{ +lean_object* x_9; +x_9 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3___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_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_RBNode_forIn_visit___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__2___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -726,19 +905,19 @@ return x_8; } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; +lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_1, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); lean_dec(x_1); -x_11 = l_Lean_NameSet_contains(x_2, x_9); -if (x_11 == 0) +x_11 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_9); +if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_box(0); lean_inc(x_9); -x_13 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_2, x_9, x_12); +x_13 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_2, x_9, x_12); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); @@ -791,6 +970,7 @@ return x_23; } else { +lean_dec(x_11); lean_dec(x_9); x_1 = x_10; goto _start; @@ -1187,4160 +1367,6273 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getFVarSetToGeneralize_match__1___r return x_2; } } -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { _start: { -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_2, x_7); +if (x_8 == 0) { -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; goto _start; } else { -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ uint8_t x_12; -x_12 = 0; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; return x_12; } } -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} else { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(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_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___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; uint8_t x_7; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11(x_1, x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___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; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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); -lean_inc(x_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9(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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(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; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18(x_1, x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17(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_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16(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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(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; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25(x_1, x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24(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_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23(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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(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; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32(x_1, x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31(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_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30(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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(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; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39(x_1, x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = x_3 + x_8; -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___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; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_4); -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_4, x_4); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_4); -lean_dec(x_3); -x_9 = 0; -return x_9; -} -else -{ -size_t x_10; size_t x_11; uint8_t x_12; -x_10 = 0; -x_11 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_12 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_3, x_10, x_11); -lean_dec(x_3); -return x_12; -} -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_14); -lean_dec(x_13); -x_17 = 0; -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_14, x_14); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_13); -x_19 = 0; -return x_19; -} -else -{ -size_t x_20; size_t x_21; uint8_t x_22; -x_20 = 0; -x_21 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_22 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41(x_1, x_13, x_20, x_21); -lean_dec(x_13); -return x_22; -} -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_6) == 0) -{ -size_t x_7; size_t x_8; -x_7 = 1; -x_8 = x_3 + x_7; -x_3 = x_8; -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_LocalDecl_fvarId(x_10); -lean_dec(x_10); -x_12 = l_Lean_NameSet_contains(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -size_t x_13; size_t x_14; -x_13 = 1; -x_14 = x_3 + x_13; -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = 1; -return x_16; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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); -lean_inc(x_3); -x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_lt(x_7, x_6); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = 0; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = lean_nat_dec_le(x_6, x_6); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -x_11 = 0; -return x_11; -} -else -{ -size_t x_12; size_t x_13; uint8_t x_14; -x_12 = 0; -x_13 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_14 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_5, x_12, x_13); -lean_dec(x_5); -return x_14; -} -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___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; uint8_t x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_NameSet_contains(x_1, x_5); -lean_dec(x_5); -x_7 = lean_box(x_6); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_4); -return x_8; -} -case 2: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_3, 0); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -lean_inc(x_2); -x_10 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_MetavarContext_getDecl(x_2, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__38(x_1, x_13); -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_17, x_4); -return x_18; -} -} -case 5: -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -lean_inc(x_2); -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_20, x_4); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Expr_isApp(x_19); -if (x_25 == 0) -{ -lean_object* x_26; -x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_19, x_24); -return x_26; -} -else -{ -x_3 = x_19; -x_4 = x_24; -goto _start; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_2); -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_32, x_4); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_35); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_33, x_37); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_33); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_34, 0); -lean_dec(x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -lean_inc(x_2); -x_45 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_43, x_4); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_46); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_44, x_48); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_44); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_45); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_45, 0); -lean_dec(x_51); -return x_45; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_45, 1); -lean_inc(x_52); -lean_dec(x_45); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -case 8: -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_3, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 3); -lean_inc(x_56); -lean_dec(x_3); -lean_inc(x_2); -x_57 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_54, x_4); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_unbox(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_58); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -lean_inc(x_2); -x_61 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_55, x_60); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_56, x_64); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_56); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_61, 0); -lean_dec(x_67); -return x_61; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_dec(x_61); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_57); -if (x_70 == 0) -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_57, 0); -lean_dec(x_71); -return x_57; -} -else -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_57, 1); -lean_inc(x_72); -lean_dec(x_57); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_58); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -case 10: -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_3, 1); -lean_inc(x_74); -lean_dec(x_3); -x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_74, x_4); -return x_75; -} -case 11: -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 2); -lean_inc(x_76); -lean_dec(x_3); -x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_76, x_4); -return x_77; -} -default: -{ -uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); -lean_dec(x_2); -x_78 = 0; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -return x_80; -} -} -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(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; -lean_inc(x_3); -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; -lean_dec(x_3); -lean_dec(x_2); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -lean_dec(x_9); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__37(x_1, x_2, x_3, x_16); -return x_17; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ uint8_t x_13; -x_13 = x_6 < x_5; -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_7); -lean_ctor_set(x_14, 1, x_12); -return x_14; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; } else { -lean_object* x_15; uint8_t x_16; -x_15 = lean_array_uget(x_4, x_6); -x_16 = !lean_is_exclusive(x_7); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_7, 1); -x_18 = lean_ctor_get(x_7, 0); -lean_dec(x_18); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_17); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); lean_inc(x_2); lean_inc(x_1); -x_19 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_2, x_15, x_17, x_8, x_9, x_10, x_11, x_12); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else { -uint8_t x_21; -lean_dec(x_10); -lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else { lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_7, 0, x_23); -lean_ctor_set(x_19, 0, x_7); -return x_19; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_22, x_5); +return x_23; } -else +} +case 5: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_7, 0, x_25); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_24, x_29); +return x_31; } else { -lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; -lean_dec(x_17); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_20, 0); -lean_inc(x_28); -lean_dec(x_20); -lean_inc(x_3); -lean_ctor_set(x_7, 1, x_28); -lean_ctor_set(x_7, 0, x_3); -x_29 = 1; -x_30 = x_6 + x_29; -x_6 = x_30; -x_12 = x_27; +x_4 = x_24; +x_5 = x_29; goto _start; } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_7, 1); -lean_inc(x_32); -lean_dec(x_7); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_32); -lean_inc(x_2); -lean_inc(x_1); -x_33 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_2, x_15, x_32, x_8, x_9, x_10, x_11, x_12); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -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_dec(x_10); -lean_dec(x_8); +uint8_t x_33; +lean_dec(x_24); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = lean_ctor_get(x_33, 1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); lean_inc(x_35); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_36 = x_33; -} else { - lean_dec_ref(x_33); - x_36 = lean_box(0); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; } -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -if (lean_is_scalar(x_36)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_36; } -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_35); +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; -lean_dec(x_32); -x_40 = lean_ctor_get(x_33, 1); +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +static lean_object* _init_l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_5); +lean_dec(x_5); +lean_dec(x_1); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +} +case 2: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +lean_inc(x_13); +lean_inc(x_2); +x_14 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, 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; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_MetavarContext_getDecl(x_2, x_13); +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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(x_18, x_1, x_17); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_4); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_22, x_4); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_3, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_25, x_4); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_24, x_29); +return x_31; +} +else +{ +x_3 = x_24; +x_4 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_37, x_4); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_3, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_3, 2); +lean_inc(x_49); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_48, x_4); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_3, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_3, 3); +lean_inc(x_61); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_59, x_4); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_3, 1); +lean_inc(x_79); +lean_dec(x_3); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_79, x_4); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_3, 2); +lean_inc(x_81); +lean_dec(x_3); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_81, x_4); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_4); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(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; +lean_inc(x_3); +x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_unbox(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9(x_1, x_2, x_3, x_16); +return x_17; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__12(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_22, x_5); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_24, x_29); +return x_31; +} +else +{ +x_4 = x_24; +x_5 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10(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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11___at_Lean_Meta_getFVarSetToGeneralize___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_5); +lean_dec(x_5); +lean_dec(x_1); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +} +case 2: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +lean_inc(x_13); +lean_inc(x_2); +x_14 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, 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; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_MetavarContext_getDecl(x_2, x_13); +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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__12(x_18, x_1, x_17); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_4); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_22, x_4); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_3, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_25, x_4); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_24, x_29); +return x_31; +} +else +{ +x_3 = x_24; +x_4 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_37, x_4); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_3, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_3, 2); +lean_inc(x_49); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_48, x_4); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_3, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_3, 3); +lean_inc(x_61); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_59, x_4); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_3, 1); +lean_inc(x_79); +lean_dec(x_3); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_79, x_4); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_3, 2); +lean_inc(x_81); +lean_dec(x_3); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2, x_81, x_4); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_4); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(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; +lean_inc(x_3); +x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_unbox(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__11___at_Lean_Meta_getFVarSetToGeneralize___spec__18(x_1, x_2, x_3, x_16); +return x_17; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__20(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_22, x_5); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_24, x_29); +return x_31; +} +else +{ +x_4 = x_24; +x_5 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__20(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__27(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__28(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_22, x_5); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_24, x_29); +return x_31; +} +else +{ +x_4 = x_24; +x_5 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__27(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__35(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_22, x_5); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_24, x_29); +return x_31; +} +else +{ +x_4 = x_24; +x_5 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33(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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34___at_Lean_Meta_getFVarSetToGeneralize___spec__41(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_5); +lean_dec(x_5); +lean_dec(x_1); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +} +case 2: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +lean_inc(x_13); +lean_inc(x_2); +x_14 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, 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; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_MetavarContext_getDecl(x_2, x_13); +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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__35(x_18, x_1, x_17); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_4); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_22, x_4); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_3, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_25, x_4); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_24, x_29); +return x_31; +} +else +{ +x_3 = x_24; +x_4 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_37, x_4); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_3, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_3, 2); +lean_inc(x_49); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_48, x_4); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_3, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_3, 3); +lean_inc(x_61); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_59, x_4); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_3, 1); +lean_inc(x_79); +lean_dec(x_3); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_79, x_4); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_3, 2); +lean_inc(x_81); +lean_dec(x_3); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_81, x_4); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_4); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(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; +lean_inc(x_3); +x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_unbox(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__34___at_Lean_Meta_getFVarSetToGeneralize___spec__41(x_1, x_2, x_3, x_16); +return x_17; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +lean_dec(x_1); +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46(x_1, x_2, x_4, x_11, x_12); +lean_dec(x_4); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47(x_1, x_2, x_14, x_21, x_22); +lean_dec(x_14); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_array_uget(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = x_4 + x_8; +x_4 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_fvarId(x_11); +lean_dec(x_11); +lean_inc(x_2); +lean_inc(x_1); +x_13 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) +{ +size_t x_14; size_t x_15; +x_14 = 1; +x_15 = x_4 + x_14; +x_4 = x_15; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_17 = 1; +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_2); +lean_dec(x_1); +x_18 = 0; +return x_18; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_ctor_get(x_3, 0); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48(x_1, x_2, x_6, x_13, x_14); +lean_dec(x_6); +return x_15; +} +} +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43(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; +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Std_RBNode_findCore___rarg(x_1, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +x_11 = 1; +x_12 = lean_box(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; +} +} +case 2: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +lean_dec(x_4); +lean_inc(x_14); +lean_inc(x_3); +x_15 = l_Lean_MetavarContext_getExprAssignment_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_MetavarContext_getDecl(x_3, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_2, x_18); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_5); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_14); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_22, x_5); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_25, x_5); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_24, x_29); +return x_31; +} +else +{ +x_4 = x_24; +x_5 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_37, x_5); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_4, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 2); +lean_inc(x_49); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_48, x_5); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_4, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_4, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 3); +lean_inc(x_61); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_59, x_5); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +lean_dec(x_4); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_79, x_5); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_4, 2); +lean_inc(x_81); +lean_dec(x_4); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_3, x_81, x_5); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_5); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42(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; uint8_t x_8; +lean_inc(x_4); +x_6 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_6); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_dec(x_10); +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_6, 0, x_12); +return x_6; +} +else +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_dec(x_6); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +lean_dec(x_6); +x_18 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43(x_1, x_2, x_3, x_4, x_17); +return x_18; +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43___at_Lean_Meta_getFVarSetToGeneralize___spec__50(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_5); +lean_dec(x_5); +lean_dec(x_1); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +} +case 2: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +lean_inc(x_13); +lean_inc(x_2); +x_14 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, 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; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_MetavarContext_getDecl(x_2, x_13); +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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_19 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_18, x_1, x_17); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_4); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +x_23 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_22, x_4); +return x_23; +} +} +case 5: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_3, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 1); +lean_inc(x_25); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_26 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_25, x_4); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_27); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = l_Lean_Expr_isApp(x_24); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_24, x_29); +return x_31; +} +else +{ +x_3 = x_24; +x_4 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; +lean_dec(x_24); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_37, x_4); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_38, x_42); +return x_43; +} +else +{ +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_45); +return x_39; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +case 7: +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_3, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_3, 2); +lean_inc(x_49); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_50 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_48, x_4); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_51); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_49, x_53); +return x_54; +} +else +{ +uint8_t x_55; +lean_dec(x_49); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 0); +lean_dec(x_56); +return x_50; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_dec(x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +case 8: +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_3, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_3, 3); +lean_inc(x_61); +lean_dec(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_59, x_4); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_unbox(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +lean_inc(x_2); +lean_inc(x_1); +x_66 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_60, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_unbox(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_67); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_61, x_69); +return x_70; +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_66); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_72); +return x_66; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_dec(x_66); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_62); +if (x_75 == 0) +{ +lean_object* x_76; +x_76 = lean_ctor_get(x_62, 0); +lean_dec(x_76); +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec(x_62); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +case 10: +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_3, 1); +lean_inc(x_79); +lean_dec(x_3); +x_80 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_79, x_4); +return x_80; +} +case 11: +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_3, 2); +lean_inc(x_81); +lean_dec(x_3); +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_81, x_4); +return x_82; +} +default: +{ +uint8_t x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = 0; +x_84 = lean_box(x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_4); +return x_85; +} +} +} +} +lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(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; +lean_inc(x_3); +x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_unbox(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +x_17 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__43___at_Lean_Meta_getFVarSetToGeneralize___spec__50(x_1, x_2, x_3, x_16); +return x_17; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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) { +_start: +{ +uint8_t x_14; +x_14 = x_7 < x_6; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_uget(x_5, x_7); +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_8, 1); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +lean_inc(x_10); +lean_inc(x_18); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_2, x_3, x_16, x_18, x_9, x_10, x_11, x_12, x_13); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_8, 0, x_24); +lean_ctor_set(x_20, 0, x_8); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_8, 0, x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; +lean_dec(x_18); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +lean_inc(x_4); +lean_ctor_set(x_8, 1, x_29); +lean_ctor_set(x_8, 0, x_4); +x_30 = 1; +x_31 = x_7 + x_30; +x_7 = x_31; +x_13 = x_28; +goto _start; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_8, 1); +lean_inc(x_33); +lean_dec(x_8); +lean_inc(x_10); +lean_inc(x_33); +lean_inc(x_2); +lean_inc(x_1); +x_34 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_2, x_3, x_16, x_33, x_9, x_10, x_11, x_12, x_13); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +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_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_36 = lean_ctor_get(x_34, 1); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +if (lean_is_scalar(x_37)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_37; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_36); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; size_t x_44; size_t x_45; lean_dec(x_33); -x_41 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); lean_inc(x_41); lean_dec(x_34); -lean_inc(x_3); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_41); -x_43 = 1; -x_44 = x_6 + x_43; -x_6 = x_44; -x_7 = x_42; -x_12 = x_40; +x_42 = lean_ctor_get(x_35, 0); +lean_inc(x_42); +lean_dec(x_35); +lean_inc(x_4); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_42); +x_44 = 1; +x_45 = x_7 + x_44; +x_7 = x_45; +x_8 = x_43; +x_13 = x_41; goto _start; } } } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -5353,595 +7646,605 @@ lean_ctor_set(x_4, 1, x_2); return x_4; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) +uint8_t x_13; +x_13 = x_6 < x_5; +if (x_13 == 0) { -lean_object* x_13; +lean_object* x_14; +lean_dec(x_3); lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +return x_14; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_15 = lean_array_uget(x_4, x_6); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; } else { - lean_dec_ref(x_6); - x_24 = lean_box(0); + lean_dec_ref(x_7); + x_25 = lean_box(0); } -if (lean_obj_tag(x_14) == 0) +if (lean_obj_tag(x_15) == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; +lean_object* x_43; lean_object* x_44; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); +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_15, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; } else { - lean_dec_ref(x_23); - x_47 = lean_box(0); + lean_dec_ref(x_24); + x_48 = lean_box(0); } -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) { -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) { -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; } else { - lean_dec_ref(x_53); - x_55 = lean_box(0); + lean_dec_ref(x_54); + x_56 = lean_box(0); } -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; } else { - lean_dec_ref(x_56); - x_59 = lean_box(0); + lean_dec_ref(x_57); + x_60 = lean_box(0); } -if (lean_obj_tag(x_44) == 0) +if (lean_obj_tag(x_45) == 0) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); lean_dec(x_77); -if (x_78 == 0) +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_89 = x_55; + x_82 = x_56; } +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; } else { -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); if (x_120 == 0) { -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; } else { -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; } } else { -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; } -block_118: +block_119: { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); +x_99 = l_Lean_Expr_hasFVar(x_94); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; } else { -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); lean_dec(x_104); -if (x_105 == 0) +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_55; + x_109 = x_56; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; } else { -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; } } } else { +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); +lean_dec(x_56); x_117 = lean_box(0); -x_60 = x_117; -goto block_67; +x_61 = x_117; +goto block_68; } } } -block_67: +else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); } else { - x_126 = x_47; + x_127 = x_48; } -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_47; + x_130 = x_48; } -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_47; + x_133 = x_48; } -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_11); -x_25 = x_134; -goto block_41; +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; } } -block_22: +block_23: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; goto _start; } -block_41: +block_42: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); } else { - x_30 = x_24; + x_31 = x_25; } -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); } else { - x_32 = x_24; + x_33 = x_25; } -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; } } 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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(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; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; } else { - lean_dec_ref(x_34); - x_37 = lean_box(0); + lean_dec_ref(x_35); + x_38 = lean_box(0); } -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); } else { - x_38 = x_24; + x_39 = x_25; } -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); } else { - x_39 = x_37; + x_40 = x_38; } -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_36); +x_16 = x_41; +goto block_23; } } } } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; @@ -5953,742 +8256,746 @@ lean_ctor_set(x_9, 1, x_7); return x_9; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(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* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -if (lean_obj_tag(x_3) == 0) +if (lean_obj_tag(x_4) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -x_13 = lean_array_get_size(x_10); -x_14 = lean_usize_of_nat(x_13); -lean_dec(x_13); -x_15 = 0; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +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_5); +x_14 = lean_array_get_size(x_11); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; lean_inc(x_7); -lean_inc(x_5); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45(x_1, x_2, x_11, x_10, x_14, x_15, x_12, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_10); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53(x_1, x_2, x_3, x_12, x_11, x_15, x_16, x_13, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_11); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -if (lean_obj_tag(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, 1); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_16); +if (lean_obj_tag(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, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = lean_box(0); -x_22 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_20, x_21, x_5, x_6, x_7, x_8, x_19); -lean_dec(x_7); -lean_dec(x_5); -return x_22; -} -else -{ -uint8_t x_23; -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_5); -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); lean_dec(x_18); -lean_ctor_set(x_16, 0, x_25); -return x_16; +x_22 = lean_box(0); +x_23 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_21, x_22, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_7); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 1); +uint8_t x_24; +lean_dec(x_18); +lean_dec(x_7); +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_ctor_get(x_18, 0); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); lean_inc(x_27); -lean_dec(x_18); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_2); -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -lean_dec(x_3); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_4); -x_32 = lean_array_get_size(x_29); -x_33 = lean_usize_of_nat(x_32); -lean_dec(x_32); -x_34 = 0; -x_35 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46(x_1, x_30, x_29, x_33, x_34, x_31, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_29); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_30 = lean_ctor_get(x_4, 0); +lean_inc(x_30); +lean_dec(x_4); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_get_size(x_30); +x_34 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_35 = 0; +x_36 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54(x_1, x_2, x_31, x_30, x_34, x_35, x_32, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_30); lean_dec(x_1); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_35, 1); +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_35); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); lean_dec(x_36); -x_40 = lean_box(0); -x_41 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_39, x_40, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_7); -lean_dec(x_5); -return x_41; -} -else -{ -uint8_t x_42; -lean_dec(x_36); -lean_dec(x_7); -lean_dec(x_5); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_35, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_37, 0); -lean_inc(x_44); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); lean_dec(x_37); -lean_ctor_set(x_35, 0, x_44); -return x_35; +x_41 = lean_box(0); +x_42 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_40, x_41, x_6, x_7, x_8, x_9, x_39); +lean_dec(x_7); +return x_42; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_35, 1); +uint8_t x_43; +lean_dec(x_37); +lean_dec(x_7); +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_36, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_38, 0); lean_inc(x_45); -lean_dec(x_35); -x_46 = lean_ctor_get(x_37, 0); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_36, 1); lean_inc(x_46); -lean_dec(x_37); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; +lean_dec(x_36); +x_47 = lean_ctor_get(x_38, 0); +lean_inc(x_47); +lean_dec(x_38); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) +uint8_t x_13; +x_13 = x_6 < x_5; +if (x_13 == 0) { -lean_object* x_13; +lean_object* x_14; +lean_dec(x_3); lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +return x_14; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_15 = lean_array_uget(x_4, x_6); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; } else { - lean_dec_ref(x_6); - x_24 = lean_box(0); + lean_dec_ref(x_7); + x_25 = lean_box(0); } -if (lean_obj_tag(x_14) == 0) +if (lean_obj_tag(x_15) == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; +lean_object* x_43; lean_object* x_44; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); +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_15, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; } else { - lean_dec_ref(x_23); - x_47 = lean_box(0); + lean_dec_ref(x_24); + x_48 = lean_box(0); } -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) { -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) { -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; } else { - lean_dec_ref(x_53); - x_55 = lean_box(0); + lean_dec_ref(x_54); + x_56 = lean_box(0); } -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; } else { - lean_dec_ref(x_56); - x_59 = lean_box(0); + lean_dec_ref(x_57); + x_60 = lean_box(0); } -if (lean_obj_tag(x_44) == 0) +if (lean_obj_tag(x_45) == 0) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); lean_dec(x_77); -if (x_78 == 0) +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_89 = x_55; + x_82 = x_56; } +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; } else { -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); if (x_120 == 0) { -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; } else { -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; } } else { -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; } -block_118: +block_119: { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); +x_99 = l_Lean_Expr_hasFVar(x_94); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; } else { -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); lean_dec(x_104); -if (x_105 == 0) +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_55; + x_109 = x_56; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; } else { -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; } } } else { +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); +lean_dec(x_56); x_117 = lean_box(0); -x_60 = x_117; -goto block_67; +x_61 = x_117; +goto block_68; } } } -block_67: +else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); } else { - x_126 = x_47; + x_127 = x_48; } -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_47; + x_130 = x_48; } -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_47; + x_133 = x_48; } -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_11); -x_25 = x_134; -goto block_41; +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; } } -block_22: +block_23: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; goto _start; } -block_41: +block_42: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); } else { - x_30 = x_24; + x_31 = x_25; } -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); } else { - x_32 = x_24; + x_33 = x_25; } -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; } } 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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(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; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; } else { - lean_dec_ref(x_34); - x_37 = lean_box(0); + lean_dec_ref(x_35); + x_38 = lean_box(0); } -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); } else { - x_38 = x_24; + x_39 = x_25; } -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); } else { - x_39 = x_37; + x_40 = x_38; } -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_36); +x_16 = x_41; +goto block_23; } } } } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; @@ -6698,147 +9005,305 @@ lean_ctor_set(x_8, 1, x_7); return x_8; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); lean_inc(x_6); lean_inc(x_4); -lean_inc(x_3); +lean_inc(x_2); lean_inc(x_1); -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_3, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_6); +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_2, x_4, x_10, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_6); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_14); -lean_dec(x_11); -lean_ctor_set(x_10, 0, x_14); -return x_10; +lean_dec(x_14); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_15); +return x_11; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_ctor_get(x_11, 0); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); lean_inc(x_16); lean_dec(x_11); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +lean_dec(x_12); +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_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_11, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_19 = lean_ctor_get(x_11, 1); lean_inc(x_19); lean_dec(x_11); -x_20 = lean_ctor_get(x_2, 1); +x_20 = lean_ctor_get(x_12, 0); lean_inc(x_20); -lean_dec(x_2); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -x_23 = lean_array_get_size(x_20); -x_24 = lean_usize_of_nat(x_23); -lean_dec(x_23); -x_25 = 0; -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47(x_1, x_21, x_20, x_24, x_25, x_22, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_12); +x_21 = lean_ctor_get(x_3, 1); +lean_inc(x_21); +lean_dec(x_3); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = lean_array_get_size(x_21); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_2, x_22, x_21, x_25, x_26, x_23, x_5, x_6, x_7, x_8, x_19); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_20); +lean_dec(x_21); lean_dec(x_1); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_26); -if (x_29 == 0) +uint8_t x_30; +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -lean_ctor_set(x_26, 0, x_31); -return x_26; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +lean_ctor_set(x_27, 0, x_32); +return x_27; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_dec(x_26); +lean_object* x_33; lean_object* x_34; lean_object* x_35; x_33 = lean_ctor_get(x_27, 1); lean_inc(x_33); lean_dec(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_27); -x_35 = !lean_is_exclusive(x_26); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_26, 0); -lean_dec(x_36); -x_37 = lean_ctor_get(x_28, 0); -lean_inc(x_37); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_37); -return x_26; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 1); +uint8_t x_36; +lean_dec(x_28); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 0); lean_inc(x_38); -lean_dec(x_26); -x_39 = lean_ctor_get(x_28, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_38); +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 1); lean_inc(x_39); -lean_dec(x_28); -x_40 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_27); +x_40 = lean_ctor_get(x_29, 0); +lean_inc(x_40); +lean_dec(x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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) { +_start: +{ +uint8_t x_14; +x_14 = x_7 < x_6; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_uget(x_5, x_7); +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_8, 1); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +lean_inc(x_10); +lean_inc(x_18); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_2, x_3, x_16, x_18, x_9, x_10, x_11, x_12, x_13); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_8, 0, x_24); +lean_ctor_set(x_20, 0, x_8); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_8, 0, x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; +lean_dec(x_18); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +lean_inc(x_4); +lean_ctor_set(x_8, 1, x_29); +lean_ctor_set(x_8, 0, x_4); +x_30 = 1; +x_31 = x_7 + x_30; +x_7 = x_31; +x_13 = x_28; +goto _start; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_8, 1); +lean_inc(x_33); +lean_dec(x_8); +lean_inc(x_10); +lean_inc(x_33); +lean_inc(x_2); +lean_inc(x_1); +x_34 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_2, x_3, x_16, x_33, x_9, x_10, x_11, x_12, x_13); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +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_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_36 = lean_ctor_get(x_34, 1); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +if (lean_is_scalar(x_37)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_37; +} lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 1, x_36); return x_40; } +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; size_t x_44; size_t x_45; +lean_dec(x_33); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_dec(x_34); +x_42 = lean_ctor_get(x_35, 0); +lean_inc(x_42); +lean_dec(x_35); +lean_inc(x_4); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_42); +x_44 = 1; +x_45 = x_7 + x_44; +x_7 = x_45; +x_8 = x_43; +x_13 = x_41; +goto _start; } } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -6846,11 +9311,8 @@ x_13 = x_6 < x_5; if (x_13 == 0) { lean_object* x_14; -lean_dec(x_10); -lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_7); lean_ctor_set(x_14, 1, x_12); @@ -6858,1613 +9320,1467 @@ return x_14; } else { -lean_object* x_15; uint8_t x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_15 = lean_array_uget(x_4, x_6); -x_16 = !lean_is_exclusive(x_7); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_7, 1); -x_18 = lean_ctor_get(x_7, 0); -lean_dec(x_18); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_17); -lean_inc(x_2); -lean_inc(x_1); -x_19 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_15, x_17, x_8, x_9, x_10, x_11, x_12); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_7, 0, x_23); -lean_ctor_set(x_19, 0, x_7); -return x_19; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); +x_24 = lean_ctor_get(x_7, 1); lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_7, 0, x_25); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; -lean_dec(x_17); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_20, 0); -lean_inc(x_28); -lean_dec(x_20); -lean_inc(x_3); -lean_ctor_set(x_7, 1, x_28); -lean_ctor_set(x_7, 0, x_3); -x_29 = 1; -x_30 = x_6 + x_29; -x_6 = x_30; -x_12 = x_27; -goto _start; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_7, 1); -lean_inc(x_32); -lean_dec(x_7); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_32); -lean_inc(x_2); -lean_inc(x_1); -x_33 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_15, x_32, x_8, x_9, x_10, x_11, x_12); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -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_dec(x_10); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_36 = x_33; +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; } else { - lean_dec_ref(x_33); - x_36 = lean_box(0); + lean_dec_ref(x_7); + x_25 = lean_box(0); } -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -if (lean_is_scalar(x_36)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_36; -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_35); -return x_39; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; -lean_dec(x_32); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_dec(x_33); -x_41 = lean_ctor_get(x_34, 0); -lean_inc(x_41); -lean_dec(x_34); -lean_inc(x_3); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_41); -x_43 = 1; -x_44 = x_6 + x_43; -x_6 = x_44; -x_7 = x_42; -x_12 = x_40; -goto _start; -} -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; -} else { - lean_dec_ref(x_6); - x_24 = lean_box(0); -} -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; -} else { - lean_dec_ref(x_23); - x_47 = lean_box(0); -} -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) -{ -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) -{ -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; -} else { - lean_dec_ref(x_56); - x_59 = lean_box(0); -} -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); -lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); -lean_dec(x_77); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); -} else { - x_89 = x_55; -} -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; -} -else -{ -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; -} -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); -lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); -lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); -if (x_120 == 0) -{ -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; -} -else -{ -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; -} -} -else -{ -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; -} -block_118: -{ -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); -lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; -} -else -{ -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); -lean_dec(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_55; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; -} -else -{ -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; -} -} -} -else -{ -lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); -x_117 = lean_box(0); -x_60 = x_117; -goto block_67; -} -} -} -block_67: -{ -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_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; -} -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_47; -} -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_47; -} -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; -} -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_47; -} -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, 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_11); -x_25 = x_134; -goto block_41; -} -} -block_22: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; -goto _start; -} -block_41: -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_24; -} -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_24; -} -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; -} -} -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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; -} else { - lean_dec_ref(x_34); - x_37 = lean_box(0); -} -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_24; -} -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_37; -} -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; -} -} -} -} -} -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -x_13 = lean_array_get_size(x_10); -x_14 = lean_usize_of_nat(x_13); -lean_dec(x_13); -x_15 = 0; -lean_inc(x_7); -lean_inc(x_5); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50(x_1, x_2, x_11, x_10, x_14, x_15, x_12, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_10); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(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, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_box(0); -x_22 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_20, x_21, x_5, x_6, x_7, x_8, x_19); -lean_dec(x_7); -lean_dec(x_5); -return x_22; -} -else -{ -uint8_t x_23; -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_5); -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_25); -return x_16; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -lean_dec(x_18); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_2); -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -lean_dec(x_3); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_4); -x_32 = lean_array_get_size(x_29); -x_33 = lean_usize_of_nat(x_32); -lean_dec(x_32); -x_34 = 0; -x_35 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51(x_1, x_30, x_29, x_33, x_34, x_31, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_29); -lean_dec(x_1); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_box(0); -x_41 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_39, x_40, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_7); -lean_dec(x_5); -return x_41; -} -else -{ -uint8_t x_42; -lean_dec(x_36); -lean_dec(x_7); -lean_dec(x_5); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) +if (lean_obj_tag(x_15) == 0) { lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_35, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_37, 0); -lean_inc(x_44); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_44); -return x_35; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_35, 1); +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_15, 0); lean_inc(x_45); -lean_dec(x_35); -x_46 = lean_ctor_get(x_37, 0); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); lean_inc(x_46); -lean_dec(x_37); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; } else { - lean_dec_ref(x_6); - x_24 = lean_box(0); + lean_dec_ref(x_24); + x_48 = lean_box(0); } -if (lean_obj_tag(x_14) == 0) +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; -} -else +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; } else { - lean_dec_ref(x_23); - x_47 = lean_box(0); + lean_dec_ref(x_54); + x_56 = lean_box(0); } -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) -{ -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) -{ -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; } else { - lean_dec_ref(x_56); - x_59 = lean_box(0); + lean_dec_ref(x_57); + x_60 = lean_box(0); } -if (lean_obj_tag(x_44) == 0) +if (lean_obj_tag(x_45) == 0) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); lean_dec(x_77); -if (x_78 == 0) +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_89 = x_55; + x_82 = x_56; } +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; } else { -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); if (x_120 == 0) { -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; } else { -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; } } else { -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; } -block_118: +block_119: { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); +x_99 = l_Lean_Expr_hasFVar(x_94); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; } else { -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); lean_dec(x_104); -if (x_105 == 0) +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_55; + x_109 = x_56; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; } else { -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; } } } else { +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); +lean_dec(x_56); x_117 = lean_box(0); -x_60 = x_117; -goto block_67; +x_61 = x_117; +goto block_68; } } } -block_67: +else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); } else { - x_126 = x_47; + x_127 = x_48; } -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_47; + x_130 = x_48; } -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_47; + x_133 = x_48; } -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_11); -x_25 = x_134; -goto block_41; +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; } } -block_22: +block_23: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; goto _start; } -block_41: +block_42: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_24; -} -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_24; -} -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; -} -} -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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; -} else { - lean_dec_ref(x_34); - x_37 = lean_box(0); -} -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_24; -} -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_37; -} -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; -} -} -} -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48(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: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_3, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_14); -lean_dec(x_11); -lean_ctor_set(x_10, 0, x_14); -return x_10; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_ctor_get(x_11, 0); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_11, 0); -lean_inc(x_19); -lean_dec(x_11); -x_20 = lean_ctor_get(x_2, 1); -lean_inc(x_20); -lean_dec(x_2); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -x_23 = lean_array_get_size(x_20); -x_24 = lean_usize_of_nat(x_23); -lean_dec(x_23); -x_25 = 0; -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_21, x_20, x_24, x_25, x_22, x_4, x_5, x_6, x_7, x_18); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_20); -lean_dec(x_1); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_26); +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -lean_ctor_set(x_26, 0, x_31); -return x_26; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_25; +} +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; } else { lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 1); +x_32 = lean_ctor_get(x_28, 0); lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_25; +} +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_25; +} +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, 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_36); +x_16 = x_41; +goto block_23; +} +} +} +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +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_5); +x_14 = lean_array_get_size(x_11); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; +lean_inc(x_7); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(x_1, x_2, x_3, x_12, x_11, x_15, x_16, x_13, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_11); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(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, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +x_23 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_21, x_22, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_7); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_18); +lean_dec(x_7); +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_30 = lean_ctor_get(x_4, 0); +lean_inc(x_30); +lean_dec(x_4); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_get_size(x_30); +x_34 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_35 = 0; +x_36 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59(x_1, x_2, x_31, x_30, x_34, x_35, x_32, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_30); +lean_dec(x_1); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_box(0); +x_42 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_40, x_41, x_6, x_7, x_8, x_9, x_39); +lean_dec(x_7); +return x_42; +} +else +{ +uint8_t x_43; +lean_dec(x_37); +lean_dec(x_7); +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_36, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_38, 0); +lean_inc(x_45); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_dec(x_36); +x_47 = lean_ctor_get(x_38, 0); +lean_inc(x_47); +lean_dec(x_38); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = x_6 < x_5; +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_3); +lean_dec(x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_15 = lean_array_uget(x_4, x_6); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; +} else { + lean_dec_ref(x_7); + x_25 = lean_box(0); +} +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; +} +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_15, 0); +lean_inc(x_45); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; +} else { + lean_dec_ref(x_24); + x_48 = lean_box(0); +} +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) +{ +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; +} else { + lean_dec_ref(x_57); + x_60 = lean_box(0); +} +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); +lean_inc(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); +if (x_71 == 0) +{ +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_56; +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_89, 0, x_88); +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; +} +else +{ +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; +} +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); +lean_inc(x_92); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); +lean_inc(x_93); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; +} +else +{ +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; +} +} +else +{ +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; +} +block_119: +{ +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); +lean_dec(x_95); +x_99 = l_Lean_Expr_hasFVar(x_94); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; +} +else +{ +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +lean_dec(x_104); +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_56; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; +} +else +{ +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; +} +} +} +else +{ +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ +lean_object* x_117; +lean_dec(x_56); +x_117 = lean_box(0); +x_61 = x_117; +goto block_68; +} +} +} +else +{ +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_48; +} +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_127); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; +} +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); +} else { + x_130 = x_48; +} +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_48; +} +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_134, 0, x_133); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; +} +} +block_23: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; +goto _start; +} +block_42: +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_25; +} +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_25; +} +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_25; +} +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, 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_36); +x_16 = x_41; +goto block_23; +} +} +} +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_2, x_4, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +lean_dec(x_12); +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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_3, 1); +lean_inc(x_21); +lean_dec(x_3); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = lean_array_get_size(x_21); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60(x_1, x_2, x_22, x_21, x_25, x_26, x_23, x_5, x_6, x_7, x_8, x_19); +lean_dec(x_6); +lean_dec(x_21); +lean_dec(x_1); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +lean_ctor_set(x_27, 0, x_32); +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; x_33 = lean_ctor_get(x_27, 1); lean_inc(x_33); lean_dec(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_27); -x_35 = !lean_is_exclusive(x_26); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_26, 0); -lean_dec(x_36); -x_37 = lean_ctor_get(x_28, 0); -lean_inc(x_37); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_37); -return x_26; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 1); +uint8_t x_36; +lean_dec(x_28); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 0); lean_inc(x_38); -lean_dec(x_26); -x_39 = lean_ctor_get(x_28, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_38); +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 1); lean_inc(x_39); -lean_dec(x_28); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_27); +x_40 = lean_ctor_get(x_29, 0); +lean_inc(x_40); +lean_dec(x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } } } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -8488,7 +10804,7 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); x_12 = lean_box(0); -x_13 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_11, x_12); +x_13 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_4, x_11, x_12); x_2 = x_9; x_4 = x_13; goto _start; @@ -8500,7 +10816,165 @@ return x_4; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__64(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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) { +_start: +{ +uint8_t x_14; +x_14 = x_7 < x_6; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_uget(x_5, x_7); +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_8, 1); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +lean_inc(x_10); +lean_inc(x_18); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(x_1, x_2, x_3, x_16, x_18, x_9, x_10, x_11, x_12, x_13); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_8, 0, x_24); +lean_ctor_set(x_20, 0, x_8); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_8, 0, x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; +lean_dec(x_18); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +lean_inc(x_4); +lean_ctor_set(x_8, 1, x_29); +lean_ctor_set(x_8, 0, x_4); +x_30 = 1; +x_31 = x_7 + x_30; +x_7 = x_31; +x_13 = x_28; +goto _start; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_8, 1); +lean_inc(x_33); +lean_dec(x_8); +lean_inc(x_10); +lean_inc(x_33); +lean_inc(x_2); +lean_inc(x_1); +x_34 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(x_1, x_2, x_3, x_16, x_33, x_9, x_10, x_11, x_12, x_13); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +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_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_36 = lean_ctor_get(x_34, 1); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +if (lean_is_scalar(x_37)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_37; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_36); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; size_t x_44; size_t x_45; +lean_dec(x_33); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_dec(x_34); +x_42 = lean_ctor_get(x_35, 0); +lean_inc(x_42); +lean_dec(x_35); +lean_inc(x_4); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_42); +x_44 = 1; +x_45 = x_7 + x_44; +x_7 = x_45; +x_8 = x_43; +x_13 = x_41; +goto _start; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -8508,11 +10982,8 @@ x_13 = x_6 < x_5; if (x_13 == 0) { lean_object* x_14; -lean_dec(x_10); -lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_7); lean_ctor_set(x_14, 1, x_12); @@ -8520,1607 +10991,1461 @@ return x_14; } else { -lean_object* x_15; uint8_t x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_15 = lean_array_uget(x_4, x_6); -x_16 = !lean_is_exclusive(x_7); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_7, 1); -x_18 = lean_ctor_get(x_7, 0); -lean_dec(x_18); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_17); -lean_inc(x_2); -lean_inc(x_1); -x_19 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_2, x_15, x_17, x_8, x_9, x_10, x_11, x_12); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_21; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_7, 0, x_23); -lean_ctor_set(x_19, 0, x_7); -return x_19; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 1); +x_24 = lean_ctor_get(x_7, 1); lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_7, 0, x_25); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; -lean_dec(x_17); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_20, 0); -lean_inc(x_28); -lean_dec(x_20); -lean_inc(x_3); -lean_ctor_set(x_7, 1, x_28); -lean_ctor_set(x_7, 0, x_3); -x_29 = 1; -x_30 = x_6 + x_29; -x_6 = x_30; -x_12 = x_27; -goto _start; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_7, 1); -lean_inc(x_32); -lean_dec(x_7); -lean_inc(x_10); -lean_inc(x_8); -lean_inc(x_32); -lean_inc(x_2); -lean_inc(x_1); -x_33 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_2, x_15, x_32, x_8, x_9, x_10, x_11, x_12); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -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_dec(x_10); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_36 = x_33; +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; } else { - lean_dec_ref(x_33); - x_36 = lean_box(0); + lean_dec_ref(x_7); + x_25 = lean_box(0); } -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -if (lean_is_scalar(x_36)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_36; -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_35); -return x_39; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; -lean_dec(x_32); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_dec(x_33); -x_41 = lean_ctor_get(x_34, 0); -lean_inc(x_41); -lean_dec(x_34); -lean_inc(x_3); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_41); -x_43 = 1; -x_44 = x_6 + x_43; -x_6 = x_44; -x_7 = x_42; -x_12 = x_40; -goto _start; -} -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; -} else { - lean_dec_ref(x_6); - x_24 = lean_box(0); -} -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; -} else { - lean_dec_ref(x_23); - x_47 = lean_box(0); -} -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) -{ -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) -{ -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; -} else { - lean_dec_ref(x_56); - x_59 = lean_box(0); -} -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); -lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); -lean_dec(x_77); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); -} else { - x_89 = x_55; -} -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; -} -else -{ -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; -} -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); -lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); -lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); -if (x_120 == 0) -{ -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; -} -else -{ -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; -} -} -else -{ -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; -} -block_118: -{ -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); -lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; -} -else -{ -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); -lean_dec(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_55; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; -} -else -{ -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; -} -} -} -else -{ -lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); -x_117 = lean_box(0); -x_60 = x_117; -goto block_67; -} -} -} -block_67: -{ -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_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; -} -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_47; -} -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_47; -} -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; -} -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_47; -} -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, 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_11); -x_25 = x_134; -goto block_41; -} -} -block_22: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; -goto _start; -} -block_41: -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_24; -} -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_24; -} -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; -} -} -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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; -} else { - lean_dec_ref(x_34); - x_37 = lean_box(0); -} -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_24; -} -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_37; -} -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; -} -} -} -} -} -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -x_13 = lean_array_get_size(x_10); -x_14 = lean_usize_of_nat(x_13); -lean_dec(x_13); -x_15 = 0; -lean_inc(x_7); -lean_inc(x_5); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56(x_1, x_2, x_11, x_10, x_14, x_15, x_12, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_10); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(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, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_box(0); -x_22 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_20, x_21, x_5, x_6, x_7, x_8, x_19); -lean_dec(x_7); -lean_dec(x_5); -return x_22; -} -else -{ -uint8_t x_23; -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_5); -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_25); -return x_16; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -lean_dec(x_18); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_2); -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -lean_dec(x_3); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_4); -x_32 = lean_array_get_size(x_29); -x_33 = lean_usize_of_nat(x_32); -lean_dec(x_32); -x_34 = 0; -x_35 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_30, x_29, x_33, x_34, x_31, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_29); -lean_dec(x_1); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_box(0); -x_41 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_39, x_40, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_7); -lean_dec(x_5); -return x_41; -} -else -{ -uint8_t x_42; -lean_dec(x_36); -lean_dec(x_7); -lean_dec(x_5); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) +if (lean_obj_tag(x_15) == 0) { lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_35, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_37, 0); -lean_inc(x_44); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_44); -return x_35; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_35, 1); +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_15, 0); lean_inc(x_45); -lean_dec(x_35); -x_46 = lean_ctor_get(x_37, 0); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); lean_inc(x_46); -lean_dec(x_37); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = x_5 < x_4; -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_14 = lean_array_uget(x_3, x_5); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_24 = x_6; +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; } else { - lean_dec_ref(x_6); - x_24 = lean_box(0); + lean_dec_ref(x_24); + x_48 = lean_box(0); } -if (lean_obj_tag(x_14) == 0) +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_23); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_11); -x_25 = x_43; -goto block_41; -} -else +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_14, 0); -lean_inc(x_44); -lean_dec(x_14); -x_45 = lean_ctor_get(x_23, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_47 = x_23; +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; } else { - lean_dec_ref(x_23); - x_47 = lean_box(0); + lean_dec_ref(x_54); + x_56 = lean_box(0); } -x_48 = l_Lean_LocalDecl_fvarId(x_44); -x_49 = l_Lean_NameSet_contains(x_1, x_48); -if (x_49 == 0) -{ -uint8_t x_50; -x_50 = l_Lean_LocalDecl_isAuxDecl(x_44); -if (x_50 == 0) -{ -uint8_t x_51; uint8_t x_52; -x_51 = l_Lean_LocalDecl_binderInfo(x_44); -x_52 = l_Lean_BinderInfo_isInstImplicit(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = lean_st_ref_get(x_10, x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -x_56 = lean_st_ref_get(x_8, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; } else { - lean_dec_ref(x_56); - x_59 = lean_box(0); + lean_dec_ref(x_57); + x_60 = lean_box(0); } -if (lean_obj_tag(x_44) == 0) +if (lean_obj_tag(x_45) == 0) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_57, 0); -lean_inc(x_68); -lean_dec(x_57); -x_69 = lean_ctor_get(x_44, 3); +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_Expr_hasFVar(x_69); -if (x_70 == 0) -{ -uint8_t x_71; -x_71 = l_Lean_Expr_hasMVar(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_59); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_46); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -if (lean_is_scalar(x_55)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_55; -} +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_58); -x_25 = x_74; -goto block_41; +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_45, x_68, x_69, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_unbox(x_77); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); lean_dec(x_77); -if (x_78 == 0) +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_46); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -if (lean_is_scalar(x_55)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_55; -} +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_58); -x_25 = x_81; -goto block_41; -} -else -{ -lean_object* x_82; -lean_dec(x_55); -x_82 = lean_box(0); -x_60 = x_82; -goto block_67; -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -x_84 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_45, x_68, x_69, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_unbox(x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_45); -lean_ctor_set(x_87, 1, x_46); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_55)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_89 = x_55; + x_82 = x_56; } +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_58); -x_25 = x_89; -goto block_41; +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; } else { -lean_object* x_90; -lean_dec(x_55); -x_90 = lean_box(0); -x_60 = x_90; -goto block_67; +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_119; -x_91 = lean_ctor_get(x_57, 0); -lean_inc(x_91); -lean_dec(x_57); -x_92 = lean_ctor_get(x_44, 3); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_44, 4); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); lean_inc(x_93); -lean_dec(x_44); -x_119 = l_Lean_Expr_hasFVar(x_92); -if (x_119 == 0) -{ -uint8_t x_120; -x_120 = l_Lean_Expr_hasMVar(x_92); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); if (x_120 == 0) { -lean_object* x_121; -lean_dec(x_92); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1; -x_94 = x_121; -goto block_118; +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; } else { -lean_object* x_122; lean_object* x_123; -x_122 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_123 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_45, x_91, x_92, x_122); -x_94 = x_123; -goto block_118; +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; } } else { -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; -lean_inc(x_91); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_45, x_91, x_92, x_124); -x_94 = x_125; -goto block_118; +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; } -block_118: +block_119: { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); lean_dec(x_95); -if (x_96 == 0) -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_Expr_hasFVar(x_93); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = l_Lean_Expr_hasMVar(x_93); +x_99 = l_Lean_Expr_hasFVar(x_94); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_59); +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_45); -lean_ctor_set(x_100, 1, x_46); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_100); -if (lean_is_scalar(x_55)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_55; -} +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_58); -x_25 = x_102; -goto block_41; +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; } else { -lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_45, x_91, x_93, x_97); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_unbox(x_104); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); lean_dec(x_104); -if (x_105 == 0) +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_59); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_45); -lean_ctor_set(x_106, 1, x_46); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -if (lean_is_scalar(x_55)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_55; -} +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_58); -x_25 = x_108; -goto block_41; -} -else -{ -lean_object* x_109; -lean_dec(x_55); -x_109 = lean_box(0); -x_60 = x_109; -goto block_67; -} -} -} -else -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_45, x_91, x_93, x_97); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_48); -lean_dec(x_47); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_45); -lean_ctor_set(x_113, 1, x_46); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_113); -if (lean_is_scalar(x_55)) { - x_115 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_55; + x_109 = x_56; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_58); -x_25 = x_115; -goto block_41; +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; } else { -lean_object* x_116; -lean_dec(x_55); -x_116 = lean_box(0); -x_60 = x_116; -goto block_67; +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; } } } else { +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ lean_object* x_117; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_55); +lean_dec(x_56); x_117 = lean_box(0); -x_60 = x_117; -goto block_67; +x_61 = x_117; +goto block_68; } } } -block_67: +else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_60); -x_61 = lean_box(0); -lean_inc(x_48); -x_62 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_46, x_48, x_61); -x_63 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_45, x_48, x_61); -if (lean_is_scalar(x_47)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_47; +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_65, 0, x_64); -if (lean_is_scalar(x_59)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_59; -} +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_58); -x_25 = x_66; -goto block_41; +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_126 = lean_alloc_ctor(0, 2, 0); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); } else { - x_126 = x_47; + x_127 = x_48; } -lean_ctor_set(x_126, 0, x_45); -lean_ctor_set(x_126, 1, x_46); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_11); -x_25 = x_128; -goto block_41; +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_129 = lean_alloc_ctor(0, 2, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_47; + x_130 = x_48; } -lean_ctor_set(x_129, 0, x_45); -lean_ctor_set(x_129, 1, x_46); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_11); -x_25 = x_131; -goto block_41; +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_48); -lean_dec(x_44); -if (lean_is_scalar(x_47)) { - x_132 = lean_alloc_ctor(0, 2, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_47; + x_133 = x_48; } -lean_ctor_set(x_132, 0, x_45); -lean_ctor_set(x_132, 1, x_46); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_11); -x_25 = x_134; -goto block_41; +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; } } -block_22: +block_23: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = 1; -x_20 = x_5 + x_19; -x_5 = x_20; -x_6 = x_18; -x_11 = x_17; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; goto _start; } -block_41: +block_42: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_24; -} -lean_ctor_set(x_30, 0, x_2); -lean_ctor_set(x_30, 1, x_29); -lean_ctor_set(x_27, 0, x_30); -x_15 = x_25; -goto block_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_24; -} -lean_ctor_set(x_32, 0, x_2); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_25, 0, x_33); -x_15 = x_25; -goto block_22; -} -} -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; lean_object* x_40; -x_34 = lean_ctor_get(x_25, 0); -x_35 = lean_ctor_get(x_25, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_25); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - x_37 = x_34; -} else { - lean_dec_ref(x_34); - x_37 = lean_box(0); -} -lean_inc(x_2); -if (lean_is_scalar(x_24)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_24; -} -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_37; -} -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_35); -x_15 = x_40; -goto block_22; -} -} -} -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54(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: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_3, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_14); -lean_dec(x_11); -lean_ctor_set(x_10, 0, x_14); -return x_10; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_ctor_get(x_11, 0); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_11, 0); -lean_inc(x_19); -lean_dec(x_11); -x_20 = lean_ctor_get(x_2, 1); -lean_inc(x_20); -lean_dec(x_2); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -x_23 = lean_array_get_size(x_20); -x_24 = lean_usize_of_nat(x_23); -lean_dec(x_23); -x_25 = 0; -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(x_1, x_21, x_20, x_24, x_25, x_22, x_4, x_5, x_6, x_7, x_18); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_20); -lean_dec(x_1); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_26); +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -lean_ctor_set(x_26, 0, x_31); -return x_26; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_25; +} +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; } else { lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 1); +x_32 = lean_ctor_get(x_28, 0); lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_25; +} +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_25; +} +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, 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_36); +x_16 = x_41; +goto block_23; +} +} +} +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +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_5); +x_14 = lean_array_get_size(x_11); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; +lean_inc(x_7); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__64(x_1, x_2, x_3, x_12, x_11, x_15, x_16, x_13, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_11); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(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, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +x_23 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_21, x_22, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_7); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_18); +lean_dec(x_7); +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_30 = lean_ctor_get(x_4, 0); +lean_inc(x_30); +lean_dec(x_4); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_get_size(x_30); +x_34 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_35 = 0; +x_36 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65(x_1, x_2, x_31, x_30, x_34, x_35, x_32, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_30); +lean_dec(x_1); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_box(0); +x_42 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_40, x_41, x_6, x_7, x_8, x_9, x_39); +lean_dec(x_7); +return x_42; +} +else +{ +uint8_t x_43; +lean_dec(x_37); +lean_dec(x_7); +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_36, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_38, 0); +lean_inc(x_45); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_dec(x_36); +x_47 = lean_ctor_get(x_38, 0); +lean_inc(x_47); +lean_dec(x_38); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = x_6 < x_5; +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_3); +lean_dec(x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_15 = lean_array_uget(x_4, x_6); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_25 = x_7; +} else { + lean_dec_ref(x_7); + x_25 = lean_box(0); +} +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_24); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +x_26 = x_44; +goto block_42; +} +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_15, 0); +lean_inc(x_45); +lean_dec(x_15); +x_46 = lean_ctor_get(x_24, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_48 = x_24; +} else { + lean_dec_ref(x_24); + x_48 = lean_box(0); +} +x_49 = l_Lean_LocalDecl_fvarId(x_45); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_49); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +x_51 = l_Lean_LocalDecl_isAuxDecl(x_45); +if (x_51 == 0) +{ +uint8_t x_52; uint8_t x_53; +x_52 = l_Lean_LocalDecl_binderInfo(x_45); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = lean_st_ref_get(x_11, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = lean_st_ref_get(x_9, x_55); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; +} else { + lean_dec_ref(x_57); + x_60 = lean_box(0); +} +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_58, 0); +lean_inc(x_69); +lean_dec(x_58); +x_70 = lean_ctor_get(x_45, 3); +lean_inc(x_70); +lean_dec(x_45); +x_71 = l_Lean_Expr_hasFVar(x_70); +if (x_71 == 0) +{ +uint8_t x_72; +x_72 = l_Lean_Expr_hasMVar(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_46); +lean_ctor_set(x_73, 1, x_47); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +if (lean_is_scalar(x_56)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_56; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_59); +x_26 = x_75; +goto block_42; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_46, x_69, x_70, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_47); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (lean_is_scalar(x_56)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_56; +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_59); +x_26 = x_82; +goto block_42; +} +else +{ +lean_object* x_83; +lean_dec(x_56); +x_83 = lean_box(0); +x_61 = x_83; +goto block_68; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_46); +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__10___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_46, x_69, x_70, x_84); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_46); +lean_ctor_set(x_88, 1, x_47); +x_89 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_89, 0, x_88); +if (lean_is_scalar(x_56)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_56; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_59); +x_26 = x_90; +goto block_42; +} +else +{ +lean_object* x_91; +lean_dec(x_56); +x_91 = lean_box(0); +x_61 = x_91; +goto block_68; +} +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_120; +x_92 = lean_ctor_get(x_58, 0); +lean_inc(x_92); +lean_dec(x_58); +x_93 = lean_ctor_get(x_45, 3); +lean_inc(x_93); +x_94 = lean_ctor_get(x_45, 4); +lean_inc(x_94); +lean_dec(x_45); +x_120 = l_Lean_Expr_hasFVar(x_93); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = l_Lean_Expr_hasMVar(x_93); +if (x_121 == 0) +{ +lean_object* x_122; +lean_dec(x_93); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1; +x_95 = x_122; +goto block_119; +} +else +{ +lean_object* x_123; lean_object* x_124; +x_123 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_124 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__33___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_46, x_92, x_93, x_123); +x_95 = x_124; +goto block_119; +} +} +else +{ +lean_object* x_125; lean_object* x_126; +x_125 = l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__1; +lean_inc(x_92); +lean_inc(x_46); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__42___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_46, x_92, x_93, x_125); +x_95 = x_126; +goto block_119; +} +block_119: +{ +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); +lean_dec(x_95); +x_99 = l_Lean_Expr_hasFVar(x_94); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Expr_hasMVar(x_94); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_98); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_46); +lean_ctor_set(x_101, 1, x_47); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +if (lean_is_scalar(x_56)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_56; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_59); +x_26 = x_103; +goto block_42; +} +else +{ +lean_object* x_104; lean_object* x_105; uint8_t x_106; +lean_inc(x_46); +lean_inc(x_2); +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_2, x_46, x_92, x_94, x_98); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +lean_dec(x_104); +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_46); +lean_ctor_set(x_107, 1, x_47); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +if (lean_is_scalar(x_56)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_56; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_59); +x_26 = x_109; +goto block_42; +} +else +{ +lean_object* x_110; +lean_dec(x_56); +x_110 = lean_box(0); +x_61 = x_110; +goto block_68; +} +} +} +else +{ +lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_inc(x_46); +lean_inc(x_2); +x_111 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_2, x_46, x_92, x_94, x_98); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_60); +lean_dec(x_49); +lean_dec(x_48); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_46); +lean_ctor_set(x_114, 1, x_47); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +if (lean_is_scalar(x_56)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_56; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_59); +x_26 = x_116; +goto block_42; +} +else +{ +lean_object* x_117; +lean_dec(x_56); +x_117 = lean_box(0); +x_61 = x_117; +goto block_68; +} +} +} +else +{ +lean_object* x_118; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_56); +x_118 = lean_box(0); +x_61 = x_118; +goto block_68; +} +} +} +block_68: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_61); +x_62 = lean_box(0); +lean_inc(x_49); +x_63 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_47, x_49, x_62); +x_64 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_46, x_49, x_62); +if (lean_is_scalar(x_48)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_48; +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +if (lean_is_scalar(x_60)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_60; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_59); +x_26 = x_67; +goto block_42; +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_48; +} +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_127); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_12); +x_26 = x_129; +goto block_42; +} +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_130 = lean_alloc_ctor(0, 2, 0); +} else { + x_130 = x_48; +} +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_47); +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_12); +x_26 = x_132; +goto block_42; +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_45); +if (lean_is_scalar(x_48)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_48; +} +lean_ctor_set(x_133, 0, x_46); +lean_ctor_set(x_133, 1, x_47); +x_134 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_134, 0, x_133); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_12); +x_26 = x_135; +goto block_42; +} +} +block_23: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = x_6 + x_20; +x_6 = x_21; +x_7 = x_19; +x_12 = x_18; +goto _start; +} +block_42: +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_25; +} +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_28, 0, x_31); +x_16 = x_26; +goto block_23; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +lean_dec(x_28); +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_25; +} +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +x_16 = x_26; +goto block_23; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +lean_inc(x_3); +if (lean_is_scalar(x_25)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_25; +} +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, 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_36); +x_16 = x_41; +goto block_23; +} +} +} +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(x_1, x_2, x_4, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +lean_dec(x_12); +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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_3, 1); +lean_inc(x_21); +lean_dec(x_3); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = lean_array_get_size(x_21); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66(x_1, x_2, x_22, x_21, x_25, x_26, x_23, x_5, x_6, x_7, x_8, x_19); +lean_dec(x_6); +lean_dec(x_21); +lean_dec(x_1); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +lean_ctor_set(x_27, 0, x_32); +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; x_33 = lean_ctor_get(x_27, 1); lean_inc(x_33); lean_dec(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_27); -x_35 = !lean_is_exclusive(x_26); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_26, 0); -lean_dec(x_36); -x_37 = lean_ctor_get(x_28, 0); -lean_inc(x_37); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); lean_dec(x_28); -lean_ctor_set(x_26, 0, x_37); -return x_26; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 1); +uint8_t x_36; +lean_dec(x_28); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 0); lean_inc(x_38); -lean_dec(x_26); -x_39 = lean_ctor_get(x_28, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_38); +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 1); lean_inc(x_39); -lean_dec(x_28); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_27); +x_40 = lean_ctor_get(x_29, 0); +lean_inc(x_40); +lean_dec(x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } } @@ -10130,7 +12455,7 @@ static lean_object* _init_l_Lean_Meta_getFVarSetToGeneralize___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -10140,634 +12465,519 @@ return x_2; lean_object* l_Lean_Meta_getFVarSetToGeneralize(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; uint8_t x_10; -x_8 = lean_array_get_size(x_1); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_lt(x_9, x_8); -if (x_10 == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_box(0); +x_9 = lean_array_get_size(x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_lt(x_10, x_9); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_8); -x_11 = lean_ctor_get(x_3, 1); -lean_inc(x_11); -x_12 = lean_ctor_get(x_11, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_dec(x_9); +x_12 = lean_ctor_get(x_3, 1); lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Meta_getFVarSetToGeneralize___closed__1; -x_14 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43(x_2, x_12, x_13, x_3, x_4, x_5, x_6, x_7); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_15 = l_Lean_Meta_getFVarSetToGeneralize___closed__1; +x_16 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51(x_2, x_14, x_13, x_15, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_17); -return x_14; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_14, 0); -x_19 = lean_ctor_get(x_14, 1); +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_14); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); lean_dec(x_18); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; -} +lean_ctor_set(x_16, 0, x_19); +return x_16; } else { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_3, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_nat_dec_le(x_8, x_8); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; -lean_dec(x_8); -x_25 = l_Lean_Meta_getFVarSetToGeneralize___closed__1; -x_26 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48(x_2, x_23, x_25, x_3, x_4, x_5, x_6, x_7); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_29); -return x_26; +lean_dec(x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_26, 0); -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_26); -x_32 = lean_ctor_get(x_30, 1); +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_3, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_nat_dec_le(x_9, x_9); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_9); +x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_28 = l_Lean_Meta_getFVarSetToGeneralize___closed__1; +x_29 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56(x_2, x_27, x_25, x_28, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_29); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; } } else { -size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_34 = 0; -x_35 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_36 = l_Lean_NameSet_empty; -x_37 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53(x_1, x_34, x_35, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54(x_2, x_23, x_38, x_3, x_4, x_5, x_6, x_7); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +size_t x_37; size_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_37 = 0; +x_38 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_39 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61(x_1, x_37, x_38, x_8); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_8); +x_41 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1; +x_42 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62(x_2, x_41, x_25, x_40, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -lean_ctor_set(x_39, 0, x_42); -return x_39; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_39, 0); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_39); -x_45 = lean_ctor_get(x_43, 1); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_dec(x_44); +lean_ctor_set(x_42, 0, x_45); +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_42, 0); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_42); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +return x_49; } } } } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__5(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__6(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__4(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__7(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__3(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__12(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__13(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__11(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__14(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__10___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__10(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9___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_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__9(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__13(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__8(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__16(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__12(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__19(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__23(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__20(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__18(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__24(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__21(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__17(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16___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_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__16(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__15(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__25(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__21(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__26(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__30(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__27(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__25(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__31(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__28(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__24(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23___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_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__23(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__22(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__32(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__28(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__33(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__37(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__34(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__32(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__38(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__35(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__31(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30___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_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__30(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__29(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__39(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__35(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__40(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__46(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47___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_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__41(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__39(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__47(x_1, x_2, x_3, x_6, x_7); lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__42(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_9 = lean_box(x_8); +return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__38___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__38(x_1, x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___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___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__37(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_PersistentArray_anyMAux___at_Lean_Meta_getFVarSetToGeneralize___spec__45(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48___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_5; -x_5 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_getFVarSetToGeneralize___spec__36(x_1, x_2, x_3, x_4); -lean_dec(x_1); +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Meta_getFVarSetToGeneralize___spec__48(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___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_Std_PersistentArray_anyM___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_2, x_3); +x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__53(x_1, x_2, x_3, x_4, x_5, x_14, x_15, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +return x_16; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { size_t x_13; size_t x_14; lean_object* x_15; @@ -10775,36 +12985,21 @@ x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = lean_unbox_usize(x_6); lean_dec(x_6); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__45(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); lean_dec(x_4); +lean_dec(x_1); return x_15; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_14; -} -} -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___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) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___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: { lean_object* x_8; -x_8 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10813,58 +13008,19 @@ lean_dec(x_2); return x_8; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__44(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -return x_10; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__47(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); +lean_object* x_11; +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_14; -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___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: -{ -lean_object* x_8; -x_8 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -return x_8; +return x_11; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43___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: -{ -lean_object* x_9; -x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__43(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_9; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { size_t x_13; size_t x_14; lean_object* x_15; @@ -10872,70 +13028,117 @@ x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = lean_unbox_usize(x_6); lean_dec(x_6); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__50(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); lean_dec(x_4); +lean_dec(x_1); return x_15; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___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: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); +lean_object* x_8; +x_8 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__51(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -return x_14; +lean_dec(x_2); +return x_8; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__49(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__51(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(x_1, x_2, x_3, x_4, x_5, x_14, x_15, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +return x_16; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; x_13 = lean_unbox_usize(x_5); lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__52(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__59(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_1); -return x_14; +return x_15; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_9; -x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__48(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_11; +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__60(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_1); +return x_15; +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__56(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_9; +return x_10; } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -10943,12 +13146,29 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__53(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_getFVarSetToGeneralize___spec__61(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__64(x_1, x_2, x_3, x_4, x_5, x_14, x_15, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +return x_16; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { size_t x_13; size_t x_14; lean_object* x_15; @@ -10956,76 +13176,64 @@ x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = lean_unbox_usize(x_6); lean_dec(x_6); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__56(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__65(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); lean_dec(x_4); +lean_dec(x_1); return x_15; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); +lean_object* x_11; +x_11 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__63(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; x_13 = lean_unbox_usize(x_5); lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__57(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__66(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_1); -return x_14; +return x_15; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getFVarSetToGeneralize___spec__55(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__62(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__58(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_14; -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54___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: -{ -lean_object* x_9; -x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getFVarSetToGeneralize___spec__54(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_9; -} -} lean_object* l_Lean_Meta_getFVarSetToGeneralize___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_Meta_getFVarSetToGeneralize(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_5); lean_dec(x_1); return x_8; } @@ -11075,7 +13283,7 @@ return x_9; else { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Lean_instInhabitedName; +x_10 = l_Lean_instInhabitedFVarId; x_11 = lean_array_get(x_10, x_4, x_6); lean_inc(x_1); lean_inc(x_3); @@ -11147,7 +13355,7 @@ x_16 = lean_nat_add(x_3, x_4); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_div(x_16, x_17); lean_dec(x_16); -x_49 = l_Lean_instInhabitedName; +x_49 = l_Lean_instInhabitedFVarId; x_50 = lean_array_get(x_49, x_2, x_18); x_51 = lean_array_get(x_49, x_2, x_3); lean_inc(x_1); @@ -11176,7 +13384,7 @@ goto block_48; block_48: { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_20 = l_Lean_instInhabitedName; +x_20 = l_Lean_instInhabitedFVarId; x_21 = lean_array_get(x_20, x_19, x_4); x_22 = lean_array_get(x_20, x_19, x_3); lean_inc(x_21); @@ -11375,7 +13583,7 @@ lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -lean_inc(x_5); +lean_inc(x_4); lean_inc(x_3); x_11 = l_Lean_Meta_getFVarSetToGeneralize(x_1, x_9, x_3, x_4, x_5, x_6, x_10); x_12 = lean_ctor_get(x_11, 0); @@ -11449,8 +13657,10 @@ l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__2 = _init_l_Lean_Meta_m lean_mark_persistent(l_Lean_Meta_mkGeneralizationForbiddenSet_visit___closed__2); l_Lean_Meta_mkGeneralizationForbiddenSet___closed__1 = _init_l_Lean_Meta_mkGeneralizationForbiddenSet___closed__1(); lean_mark_persistent(l_Lean_Meta_mkGeneralizationForbiddenSet___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__46___closed__1); +l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1 = _init_l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1(); +lean_mark_persistent(l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_getFVarSetToGeneralize___spec__2___at_Lean_Meta_getFVarSetToGeneralize___spec__9___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_getFVarSetToGeneralize___spec__54___closed__1); l_Lean_Meta_getFVarSetToGeneralize___closed__1 = _init_l_Lean_Meta_getFVarSetToGeneralize___closed__1(); lean_mark_persistent(l_Lean_Meta_getFVarSetToGeneralize___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index 40abb34372..ca433db42e 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_introNPRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -26,7 +25,6 @@ lean_object* l_Lean_Meta_IndPredBelow_mkContext___boxed__const__1; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow_match__2(lean_object*); lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__13___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Meta_IndPredBelow_getBelowIndices_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,6 +71,7 @@ lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_match__2___rarg(lean_object lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkContext_mkHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___lambda__2___closed__2; @@ -154,7 +153,6 @@ lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkContext_motiveName___closed__2; lean_object* l_Lean_Meta_IndPredBelow_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_newMotive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___spec__1___closed__3; @@ -235,6 +233,7 @@ lean_object* l_List_zip___rarg___lambda__1(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkMotiveBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelow___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkCtorType_addHeaderVars___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -308,6 +307,7 @@ static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___rarg___clos lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_match__1(lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_toInaccessible_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecls___at_Lean_Meta_IndPredBelow_mkCtorType_addMotives___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -542,7 +542,6 @@ lean_object* l_Lean_Meta_IndPredBelow_mkBrecOnDecl_mkIH___lambda__1(lean_object* lean_object* l_Lean_Meta_IndPredBelow_mkBrecOnDecl_mkType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount_match__3(lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_rebuild___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_IndPredBelow_mkBelow___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -13903,7 +13902,7 @@ x_33 = lean_ctor_get(x_27, 1); lean_inc(x_33); lean_dec(x_27); lean_inc(x_4); -x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_4, x_5, x_6, x_7, x_8, x_33); +x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_4, x_5, x_6, x_7, x_8, x_33); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -13950,7 +13949,7 @@ lean_ctor_set(x_20, 1, x_19); x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_15); -x_22 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_4, x_21, x_5, x_6, x_7, x_8, x_11); +x_22 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_4, x_21, x_5, x_6, x_7, x_8, x_11); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -15397,7 +15396,7 @@ lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint x_46 = lean_ctor_get(x_41, 1); lean_inc(x_46); lean_dec(x_41); -x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_26, x_5, x_6, x_7, x_8, x_46); +x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_26, x_5, x_6, x_7, x_8, x_46); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -15439,7 +15438,7 @@ x_33 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBind x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_26, x_34, x_5, x_6, x_7, x_8, x_28); +x_35 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_26, x_34, x_5, x_6, x_7, x_8, x_28); lean_dec(x_5); x_36 = !lean_is_exclusive(x_35); if (x_36 == 0) @@ -15932,7 +15931,7 @@ x_58 = lean_ctor_get(x_53, 1); lean_inc(x_58); lean_dec(x_53); lean_inc(x_8); -x_59 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_8, x_10, x_11, x_12, x_13, x_58); +x_59 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_8, x_10, x_11, x_12, x_13, x_58); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -15998,7 +15997,7 @@ x_45 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBind x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_8, x_46, x_10, x_11, x_12, x_13, x_30); +x_47 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_8, x_46, x_10, x_11, x_12, x_13, x_30); lean_dec(x_10); x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) @@ -16209,7 +16208,7 @@ lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint x_94 = lean_ctor_get(x_31, 1); lean_inc(x_94); lean_dec(x_31); -x_95 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_30, x_7, x_8, x_9, x_10, x_94); +x_95 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_30, x_7, x_8, x_9, x_10, x_94); x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); @@ -16308,7 +16307,7 @@ x_82 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBind x_83 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_83, 0, x_81); lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_30, x_83, x_7, x_8, x_9, x_10, x_37); +x_84 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_30, x_83, x_7, x_8, x_9, x_10, x_37); x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); x_86 = lean_ctor_get(x_84, 1); @@ -16593,7 +16592,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint x_37 = lean_ctor_get(x_31, 1); lean_inc(x_37); lean_dec(x_31); -x_38 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_11, x_3, x_4, x_5, x_6, x_37); +x_38 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_11, x_3, x_4, x_5, x_6, x_37); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -16640,7 +16639,7 @@ lean_ctor_set(x_24, 1, x_22); x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_11, x_25, x_3, x_4, x_5, x_6, x_19); +x_26 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_11, x_25, x_3, x_4, x_5, x_6, x_19); x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); @@ -18501,7 +18500,7 @@ x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); lean_inc(x_3); -x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_3, x_7, x_8, x_9, x_10, x_35); +x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_3, x_7, x_8, x_9, x_10, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -18537,7 +18536,7 @@ else lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_dec(x_18); x_22 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__2___closed__2; -x_23 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_3, x_22, x_7, x_8, x_9, x_10, x_20); +x_23 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_3, x_22, x_7, x_8, x_9, x_10, x_20); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18597,7 +18596,7 @@ x_61 = lean_ctor_get(x_55, 1); lean_inc(x_61); lean_dec(x_55); lean_inc(x_3); -x_62 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_3, x_7, x_8, x_9, x_10, x_61); +x_62 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_3, x_7, x_8, x_9, x_10, x_61); x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); x_64 = lean_ctor_get(x_62, 1); @@ -18634,7 +18633,7 @@ x_48 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBind x_49 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_3, x_49, x_7, x_8, x_9, x_10, x_42); +x_50 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_3, x_49, x_7, x_8, x_9, x_10, x_42); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -18829,7 +18828,7 @@ lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint x_72 = lean_ctor_get(x_66, 1); lean_inc(x_72); lean_dec(x_66); -x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_36, x_8, x_9, x_10, x_11, x_72); +x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_36, x_8, x_9, x_10, x_11, x_72); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); @@ -18906,7 +18905,7 @@ lean_ctor_set(x_51, 1, x_49); x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_51); lean_ctor_set(x_52, 1, x_50); -x_53 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_36, x_52, x_8, x_9, x_10, x_11, x_48); +x_53 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_36, x_52, x_8, x_9, x_10, x_11, x_48); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); @@ -19157,7 +19156,7 @@ lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; x_140 = lean_ctor_get(x_134, 1); lean_inc(x_140); lean_dec(x_134); -x_141 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_104, x_8, x_9, x_10, x_11, x_140); +x_141 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_104, x_8, x_9, x_10, x_11, x_140); x_142 = lean_ctor_get(x_141, 0); lean_inc(x_142); x_143 = lean_ctor_get(x_141, 1); @@ -19234,7 +19233,7 @@ lean_ctor_set(x_119, 1, x_117); x_120 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_120, 0, x_119); lean_ctor_set(x_120, 1, x_118); -x_121 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_104, x_120, x_8, x_9, x_10, x_11, x_116); +x_121 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_104, x_120, x_8, x_9, x_10, x_11, x_116); x_122 = lean_ctor_get(x_121, 0); lean_inc(x_122); x_123 = lean_ctor_get(x_121, 1); @@ -19485,7 +19484,7 @@ lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; x_208 = lean_ctor_get(x_202, 1); lean_inc(x_208); lean_dec(x_202); -x_209 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_172, x_8, x_9, x_10, x_11, x_208); +x_209 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_172, x_8, x_9, x_10, x_11, x_208); x_210 = lean_ctor_get(x_209, 0); lean_inc(x_210); x_211 = lean_ctor_get(x_209, 1); @@ -19562,7 +19561,7 @@ lean_ctor_set(x_187, 1, x_185); x_188 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_188, 0, x_187); lean_ctor_set(x_188, 1, x_186); -x_189 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_172, x_188, x_8, x_9, x_10, x_11, x_184); +x_189 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_172, x_188, x_8, x_9, x_10, x_11, x_184); x_190 = lean_ctor_get(x_189, 0); lean_inc(x_190); x_191 = lean_ctor_get(x_189, 1); @@ -19813,7 +19812,7 @@ lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; x_276 = lean_ctor_get(x_270, 1); lean_inc(x_276); lean_dec(x_270); -x_277 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_240, x_8, x_9, x_10, x_11, x_276); +x_277 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_240, x_8, x_9, x_10, x_11, x_276); x_278 = lean_ctor_get(x_277, 0); lean_inc(x_278); x_279 = lean_ctor_get(x_277, 1); @@ -19890,7 +19889,7 @@ lean_ctor_set(x_255, 1, x_253); x_256 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_256, 0, x_255); lean_ctor_set(x_256, 1, x_254); -x_257 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_240, x_256, x_8, x_9, x_10, x_11, x_252); +x_257 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_240, x_256, x_8, x_9, x_10, x_11, x_252); x_258 = lean_ctor_get(x_257, 0); lean_inc(x_258); x_259 = lean_ctor_get(x_257, 1); @@ -20141,7 +20140,7 @@ lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; x_344 = lean_ctor_get(x_338, 1); lean_inc(x_344); lean_dec(x_338); -x_345 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_308, x_8, x_9, x_10, x_11, x_344); +x_345 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_308, x_8, x_9, x_10, x_11, x_344); x_346 = lean_ctor_get(x_345, 0); lean_inc(x_346); x_347 = lean_ctor_get(x_345, 1); @@ -20218,7 +20217,7 @@ lean_ctor_set(x_323, 1, x_321); x_324 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_324, 0, x_323); lean_ctor_set(x_324, 1, x_322); -x_325 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_308, x_324, x_8, x_9, x_10, x_11, x_320); +x_325 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_308, x_324, x_8, x_9, x_10, x_11, x_320); x_326 = lean_ctor_get(x_325, 0); lean_inc(x_326); x_327 = lean_ctor_get(x_325, 1); @@ -20486,7 +20485,7 @@ lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; x_418 = lean_ctor_get(x_412, 1); lean_inc(x_418); lean_dec(x_412); -x_419 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_382, x_8, x_9, x_10, x_11, x_418); +x_419 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_382, x_8, x_9, x_10, x_11, x_418); x_420 = lean_ctor_get(x_419, 0); lean_inc(x_420); x_421 = lean_ctor_get(x_419, 1); @@ -20563,7 +20562,7 @@ lean_ctor_set(x_397, 1, x_395); x_398 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_398, 0, x_397); lean_ctor_set(x_398, 1, x_396); -x_399 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_382, x_398, x_8, x_9, x_10, x_11, x_394); +x_399 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_382, x_398, x_8, x_9, x_10, x_11, x_394); x_400 = lean_ctor_get(x_399, 0); lean_inc(x_400); x_401 = lean_ctor_get(x_399, 1); @@ -20814,7 +20813,7 @@ lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; x_486 = lean_ctor_get(x_480, 1); lean_inc(x_486); lean_dec(x_480); -x_487 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_450, x_8, x_9, x_10, x_11, x_486); +x_487 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_450, x_8, x_9, x_10, x_11, x_486); x_488 = lean_ctor_get(x_487, 0); lean_inc(x_488); x_489 = lean_ctor_get(x_487, 1); @@ -20891,7 +20890,7 @@ lean_ctor_set(x_465, 1, x_463); x_466 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_466, 0, x_465); lean_ctor_set(x_466, 1, x_464); -x_467 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_450, x_466, x_8, x_9, x_10, x_11, x_462); +x_467 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_450, x_466, x_8, x_9, x_10, x_11, x_462); x_468 = lean_ctor_get(x_467, 0); lean_inc(x_468); x_469 = lean_ctor_get(x_467, 1); @@ -21142,7 +21141,7 @@ lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; x_554 = lean_ctor_get(x_548, 1); lean_inc(x_554); lean_dec(x_548); -x_555 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_518, x_8, x_9, x_10, x_11, x_554); +x_555 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_518, x_8, x_9, x_10, x_11, x_554); x_556 = lean_ctor_get(x_555, 0); lean_inc(x_556); x_557 = lean_ctor_get(x_555, 1); @@ -21219,7 +21218,7 @@ lean_ctor_set(x_533, 1, x_531); x_534 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_534, 0, x_533); lean_ctor_set(x_534, 1, x_532); -x_535 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_518, x_534, x_8, x_9, x_10, x_11, x_530); +x_535 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_518, x_534, x_8, x_9, x_10, x_11, x_530); x_536 = lean_ctor_get(x_535, 0); lean_inc(x_536); x_537 = lean_ctor_get(x_535, 1); @@ -21470,7 +21469,7 @@ lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; x_622 = lean_ctor_get(x_616, 1); lean_inc(x_622); lean_dec(x_616); -x_623 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_586, x_8, x_9, x_10, x_11, x_622); +x_623 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_586, x_8, x_9, x_10, x_11, x_622); x_624 = lean_ctor_get(x_623, 0); lean_inc(x_624); x_625 = lean_ctor_get(x_623, 1); @@ -21547,7 +21546,7 @@ lean_ctor_set(x_601, 1, x_599); x_602 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_602, 0, x_601); lean_ctor_set(x_602, 1, x_600); -x_603 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_586, x_602, x_8, x_9, x_10, x_11, x_598); +x_603 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_586, x_602, x_8, x_9, x_10, x_11, x_598); x_604 = lean_ctor_get(x_603, 0); lean_inc(x_604); x_605 = lean_ctor_get(x_603, 1); @@ -21798,7 +21797,7 @@ lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; x_690 = lean_ctor_get(x_684, 1); lean_inc(x_690); lean_dec(x_684); -x_691 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_654, x_8, x_9, x_10, x_11, x_690); +x_691 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_654, x_8, x_9, x_10, x_11, x_690); x_692 = lean_ctor_get(x_691, 0); lean_inc(x_692); x_693 = lean_ctor_get(x_691, 1); @@ -21875,7 +21874,7 @@ lean_ctor_set(x_669, 1, x_667); x_670 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_670, 0, x_669); lean_ctor_set(x_670, 1, x_668); -x_671 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_654, x_670, x_8, x_9, x_10, x_11, x_666); +x_671 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_654, x_670, x_8, x_9, x_10, x_11, x_666); x_672 = lean_ctor_get(x_671, 0); lean_inc(x_672); x_673 = lean_ctor_get(x_671, 1); @@ -22126,7 +22125,7 @@ lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; x_758 = lean_ctor_get(x_752, 1); lean_inc(x_758); lean_dec(x_752); -x_759 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_722, x_8, x_9, x_10, x_11, x_758); +x_759 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_722, x_8, x_9, x_10, x_11, x_758); x_760 = lean_ctor_get(x_759, 0); lean_inc(x_760); x_761 = lean_ctor_get(x_759, 1); @@ -22203,7 +22202,7 @@ lean_ctor_set(x_737, 1, x_735); x_738 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_738, 0, x_737); lean_ctor_set(x_738, 1, x_736); -x_739 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_722, x_738, x_8, x_9, x_10, x_11, x_734); +x_739 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_722, x_738, x_8, x_9, x_10, x_11, x_734); x_740 = lean_ctor_get(x_739, 0); lean_inc(x_740); x_741 = lean_ctor_get(x_739, 1); @@ -22961,7 +22960,7 @@ x_51 = lean_ctor_get(x_45, 1); lean_inc(x_51); lean_dec(x_45); lean_inc(x_2); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_2, x_8, x_9, x_10, x_11, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_2, x_8, x_9, x_10, x_11, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -23013,7 +23012,7 @@ x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); lean_inc(x_2); -x_38 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_2, x_37, x_8, x_9, x_10, x_11, x_22); +x_38 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_2, x_37, x_8, x_9, x_10, x_11, x_22); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); lean_dec(x_38); @@ -23128,56 +23127,6 @@ return x_22; } } } -lean_object* l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} lean_object* l_Lean_Meta_IndPredBelow_mkBelow___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -23393,7 +23342,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint x_26 = lean_ctor_get(x_20, 1); lean_inc(x_26); lean_dec(x_20); -x_27 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_12, x_2, x_3, x_4, x_5, x_26); +x_27 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_12, x_2, x_3, x_4, x_5, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -23429,7 +23378,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_11); x_17 = l_Lean_Meta_IndPredBelow_mkBelow___closed__2; -x_18 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_12, x_17, x_2, x_3, x_4, x_5, x_14); +x_18 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_12, x_17, x_2, x_3, x_4, x_5, x_14); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -23505,7 +23454,7 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; x_47 = lean_ctor_get(x_37, 1); lean_inc(x_47); lean_dec(x_37); -x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_36, x_2, x_3, x_4, x_5, x_47); +x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_36, x_2, x_3, x_4, x_5, x_47); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_unbox(x_49); @@ -23547,7 +23496,7 @@ x_57 = lean_ctor_get(x_48, 1); lean_inc(x_57); lean_dec(x_48); x_58 = l_Lean_Meta_IndPredBelow_mkBelow___closed__4; -x_59 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_36, x_58, x_2, x_3, x_4, x_5, x_57); +x_59 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_36, x_58, x_2, x_3, x_4, x_5, x_57); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -23623,7 +23572,7 @@ lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint x_94 = lean_ctor_get(x_88, 1); lean_inc(x_94); lean_dec(x_88); -x_95 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_69, x_2, x_3, x_4, x_5, x_94); +x_95 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_69, x_2, x_3, x_4, x_5, x_94); x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); @@ -23651,7 +23600,7 @@ x_74 = lean_ctor_get(x_62, 2); lean_inc(x_74); x_75 = lean_array_to_list(lean_box(0), x_74); x_76 = lean_box(0); -x_77 = l_List_mapTRAux___at_Lean_Meta_IndPredBelow_mkBelow___spec__4(x_75, x_76); +x_77 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_75, x_76); x_78 = l_Lean_MessageData_ofList(x_77); lean_dec(x_77); x_79 = l_Lean_Meta_IndPredBelow_mkBelow___closed__6; @@ -23662,7 +23611,7 @@ x_81 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBind x_82 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_82, 0, x_80); lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_69, x_82, x_2, x_3, x_4, x_5, x_71); +x_83 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_69, x_82, x_2, x_3, x_4, x_5, x_71); x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); x_85 = lean_ctor_get(x_83, 1); diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index 3cc2d0944c..27836fc8ad 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -21,6 +21,7 @@ size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1___closed__2; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_throwTypeExcepted___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -212,6 +213,7 @@ lean_object* l_Lean_Meta_throwUnknownMVar___rarg(lean_object*, lean_object*, lea uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Meta_inferTypeImp_infer_match__1(lean_object*); lean_object* l_StateT_instMonadStateT___rarg(lean_object*); +lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___closed__1; static lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__15; @@ -230,7 +232,6 @@ static lean_object* l_Lean_Meta_throwUnknownMVar___rarg___closed__1; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_instantiateBetaRevRange_visit___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_inferTypeImp___closed__1; lean_object* l_Lean_Meta_isProp_match__2(lean_object*); lean_object* l_Lean_Meta_throwUnknownMVar___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -257,7 +258,6 @@ static lean_object* l_Lean_Meta_throwUnknownMVar___rarg___closed__4; lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_mkBVar(lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferAppType_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isArrowProp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -3983,7 +3983,7 @@ lean_dec(x_1); x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); lean_dec(x_14); -x_18 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_17); +x_18 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -4744,7 +4744,7 @@ lean_dec(x_22); x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); -x_26 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_8, x_24); +x_26 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_8, x_24); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -14134,7 +14134,7 @@ lean_dec(x_35); x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec(x_36); -x_39 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_5, x_37); +x_39 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___spec__1___rarg(x_5, x_37); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index 2dda7f4fa4..d5e714f6aa 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -190,6 +190,7 @@ extern lean_object* l_Lean_Meta_DiscrTree_instBEqKey; static uint64_t l_Lean_Meta_instInhabitedInstanceEntry___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__14; extern lean_object* l_Lean_Expr_instHashableExpr; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__15; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____spec__3___closed__4; lean_object* l_Lean_Meta_addDefaultInstance_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -240,7 +241,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_initFn____x40_Lean_Meta_In size_t lean_usize_of_nat(lean_object*); static lean_object* l_Array_back___at_Lean_Meta_addInstanceEntry___spec__7___closed__2; static lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_addInstanceEntry___spec__8___closed__1; -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,6 +329,7 @@ lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____spec__3(lean_object*, lean_object*); static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_684____spec__4___closed__1; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__9; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17; extern lean_object* l_Lean_Expr_instBEqExpr; lean_object* l_Lean_ScopedEnvExtension_instInhabitedStateStack(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addDefaultInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2919,29 +2920,41 @@ return x_4; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__5() { +_start: +{ size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__3; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__3; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -2952,25 +2965,25 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__5; 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; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__1; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__5; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__6; x_4 = l_Lean_Meta_instInhabitedInstanceEntry___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 5, 0); @@ -2982,23 +2995,6 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__3; -x_3 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_2); -lean_ctor_set(x_3, 3, x_2); -lean_ctor_set(x_3, 4, x_2); -lean_ctor_set(x_3, 5, x_2); -lean_ctor_set(x_3, 6, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__8() { _start: { @@ -3014,9 +3010,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__8; +x_3 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +lean_ctor_set(x_3, 3, x_2); +lean_ctor_set(x_3, 4, x_2); +lean_ctor_set(x_3, 5, x_2); +lean_ctor_set(x_3, 6, x_2); +return x_3; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__10() { @@ -3034,6 +3039,14 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__11() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__2; x_2 = lean_unsigned_to_nat(0u); @@ -3043,7 +3056,19 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -3054,7 +3079,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -3065,7 +3090,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3077,14 +3102,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__10; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__11; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__14; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__12; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__13; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -3096,18 +3121,18 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__15; -x_3 = l_Lean_NameSet_empty; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__4; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__9; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -3133,14 +3158,14 @@ x_12 = lean_st_ref_get(x_5, x_11); x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16; +x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18; x_15 = lean_st_mk_ref(x_14, x_13); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__6; +x_18 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__7; lean_inc(x_5); lean_inc(x_16); x_19 = l_Lean_Meta_addInstance(x_1, x_3, x_10, x_18, x_16, x_4, x_5, x_17); @@ -7541,14 +7566,14 @@ x_7 = lean_st_ref_get(x_5, x_6); x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); -x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16; +x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18; x_10 = lean_st_mk_ref(x_9, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__6; +x_13 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__7; lean_inc(x_5); lean_inc(x_11); x_14 = l_Lean_Meta_addDefaultInstance(x_1, x_2, x_13, x_11, x_4, x_5, x_12); @@ -8251,6 +8276,10 @@ l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__1 lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__15); l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__16); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__17); +l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____lambda__1___closed__18); l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____closed__1(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____closed__1); l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_405____closed__2(); diff --git a/stage0/stdlib/Lean/Meta/LevelDefEq.c b/stage0/stdlib/Lean/Meta/LevelDefEq.c index 940f64cbe0..ea375670aa 100644 --- a/stage0/stdlib/Lean/Meta/LevelDefEq.c +++ b/stage0/stdlib/Lean/Meta/LevelDefEq.c @@ -25,6 +25,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_exposeRelevantUnivers lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isExprDefEq___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isListLevelDefEqAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Level_collectMVars(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -96,6 +97,7 @@ lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_exposeRelevantUnivers static lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__2; lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___lambda__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -105,7 +107,6 @@ lean_object* l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_po static lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___closed__3; lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax_visit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isExprDefEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_isListLevelDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f_match__1(lean_object*); @@ -137,6 +138,7 @@ static lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMes lean_object* l_Lean_Meta_throwIsDefEqStuck___rarg(lean_object*); lean_object* l_Lean_Meta_mkLevelErrorMessage(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getNumPostponed___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,6 +146,7 @@ uint8_t l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax_visit(lean static lean_object* l_Lean_Meta_isLevelDefEqAux___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__11(uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___closed__5; lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_isLevelDefEqAux___closed__1; @@ -151,7 +154,6 @@ lean_object* l_Lean_Meta_checkpointDefEq_match__1(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getNumPostponed___boxed(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(lean_object*); uint8_t l_Std_PersistentArray_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -166,7 +168,7 @@ uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Meta_mkLevelStuckErrorMessage___closed__1; -extern lean_object* l_Lean_NameSet_empty; +lean_object* l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -194,6 +196,7 @@ lean_object* l_Lean_throwError___at_Lean_Meta_decLevel___spec__1___boxed(lean_ob lean_object* l_Lean_Meta_processPostponed_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_decAux_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solve_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEqAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -259,8 +262,6 @@ lean_object* l_Lean_indentD(lean_object*); uint8_t l_Lean_Level_occurs(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore_match__1(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1___closed__6; static lean_object* l_Lean_Meta_decLevel___closed__3; static lean_object* l_Lean_Meta_isLevelDefEq___closed__2; @@ -937,7 +938,7 @@ lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; x_105 = lean_ctor_get(x_102, 1); lean_inc(x_105); lean_dec(x_102); -x_106 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_105); +x_106 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_105); x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); x_108 = lean_ctor_get(x_106, 1); @@ -1807,7 +1808,7 @@ return x_12; else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_4, x_5, x_6, x_7); +x_13 = l_Lean_Meta_mkFreshLevelMVar(x_3, x_4, x_5, x_6, x_7); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -8028,7 +8029,51 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_m return x_2; } } -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___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, lean_object* x_8) { +lean_object* l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___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, lean_object* x_8) { _start: { lean_object* x_9; @@ -8079,11 +8124,11 @@ return x_17; } } } -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(lean_object* x_1) { +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg), 8, 0); return x_2; } } @@ -8092,17 +8137,29 @@ _start: { if (lean_obj_tag(x_2) == 5) { -lean_object* x_3; uint8_t x_4; +lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Lean_NameSet_contains(x_1, x_3); -return x_4; -} -else +x_4 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_3); +if (lean_obj_tag(x_4) == 0) { uint8_t x_5; x_5 = 0; return x_5; } +else +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 1; +return x_6; +} +} +else +{ +uint8_t x_7; +x_7 = 0; +return x_7; +} } } uint8_t l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___lambda__2(lean_object* x_1, lean_object* x_2) { @@ -8535,7 +8592,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_2, 2); lean_inc(x_30); lean_dec(x_2); -x_31 = l_Lean_NameSet_empty; +x_31 = lean_box(0); lean_inc(x_30); x_32 = l_Lean_Level_collectMVars(x_30, x_31); lean_inc(x_29); @@ -8551,11 +8608,21 @@ lean_closure_set(x_36, 2, x_26); lean_closure_set(x_36, 3, x_1); lean_closure_set(x_36, 4, x_29); lean_closure_set(x_36, 5, x_30); -x_37 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(x_27, x_28, x_36, x_3, x_4, x_5, x_6, x_7); +x_37 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(x_27, x_28, x_36, x_3, x_4, x_5, x_6, x_7); return x_37; } } } +lean_object* l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_findCore___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c index 90f52c45ab..c5a21300a8 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c @@ -85,6 +85,7 @@ lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___closed__2; +extern lean_object* l_Lean_instInhabitedFVarId; static lean_object* l_Lean_Meta_caseArraySizes___lambda__1___closed__5; lean_object* l_Lean_Meta_assertExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_caseArraySizes___lambda__1___closed__10; @@ -99,7 +100,6 @@ static lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_intr lean_object* l_Lean_Meta_caseArraySizes_match__3(lean_object*); lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_caseArraySizes___lambda__1___closed__3; lean_object* l_Lean_Meta_caseArraySizes___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1684,7 +1684,7 @@ x_51 = lean_array_fget(x_1, x_11); x_52 = lean_ctor_get(x_23, 1); lean_inc(x_52); lean_dec(x_23); -x_53 = l_Lean_instInhabitedName; +x_53 = l_Lean_instInhabitedFVarId; x_54 = lean_array_get(x_53, x_52, x_19); lean_dec(x_52); lean_inc(x_17); diff --git a/stage0/stdlib/Lean/Meta/Match/CaseValues.c b/stage0/stdlib/Lean/Meta/Match/CaseValues.c index 3a3379b682..e75b64e851 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseValues.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseValues.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Meta_caseValues_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CaseValuesSubgoal_newHs___default___closed__1; lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux_match__2___rarg(lean_object*, lean_object*); @@ -72,6 +73,7 @@ static lean_object* l_Lean_Meta_caseValue___closed__6; lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux_match__1(lean_object*); static lean_object* l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1; static lean_object* l_Lean_Meta_caseValues_loop___closed__3; +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); static lean_object* l_Lean_Meta_caseValues_loop___closed__5; lean_object* l_Lean_Meta_caseValues_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_caseValue___closed__5; @@ -97,7 +99,6 @@ static lean_object* l_Lean_Meta_caseValues_loop___closed__6; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3___closed__3; static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__2___closed__1; static lean_object* l_Lean_Meta_caseValues_loop___closed__1; @@ -114,6 +115,7 @@ lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux_ma lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_caseValues_loop___closed__7; +lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__3; static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__5; @@ -191,6 +193,50 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_ return x_2; } } +lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_5; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_2); +x_1 = x_8; +x_2 = x_9; +goto _start; +} +} +} +} static lean_object* _init_l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__1___closed__1() { _start: { @@ -453,46 +499,46 @@ return x_2; lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_10; lean_object* x_11; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_26 = lean_st_ref_get(x_8, x_9); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 3); +uint8_t x_10; lean_object* x_11; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_st_ref_get(x_8, x_9); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_ctor_get_uint8(x_28, sizeof(void*)*1); +x_29 = lean_ctor_get(x_28, 3); +lean_inc(x_29); lean_dec(x_28); -if (x_29 == 0) +x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*1); +lean_dec(x_29); +if (x_30 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = 0; -x_10 = x_31; -x_11 = x_30; -goto block_25; +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_27, 1); +lean_inc(x_31); +lean_dec(x_27); +x_32 = 0; +x_10 = x_32; +x_11 = x_31; +goto block_26; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_dec(x_26); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); lean_inc(x_3); -x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_3, x_5, x_6, x_7, x_8, x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_3, x_5, x_6, x_7, x_8, x_33); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unbox(x_34); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -x_10 = x_36; -x_11 = x_35; -goto block_25; +x_37 = lean_unbox(x_35); +lean_dec(x_35); +x_10 = x_37; +x_11 = x_36; +goto block_26; } -block_25: +block_26: { if (x_10 == 0) { @@ -504,29 +550,31 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_inc(x_1); x_14 = l_Lean_Meta_FVarSubst_domain(x_1); -x_15 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__5(x_14, x_4); -x_16 = l_Lean_MessageData_ofList(x_15); -lean_dec(x_15); -x_17 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3___closed__2; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3___closed__4; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); +lean_inc(x_4); +x_15 = l_List_mapTRAux___at___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___spec__1(x_14, x_4); +x_16 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_15, x_4); +x_17 = l_Lean_MessageData_ofList(x_16); +lean_dec(x_16); +x_18 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3___closed__2; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3___closed__4; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); lean_inc(x_3); -x_21 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_3, x_20, x_5, x_6, x_7, x_8, x_11); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_22 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_3, x_21, x_5, x_6, x_7, x_8, x_11); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__2(x_1, x_2, x_3, x_22, x_5, x_6, x_7, x_8, x_23); -return x_24; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__2(x_1, x_2, x_3, x_23, x_5, x_6, x_7, x_8, x_24); +return x_25; } } } diff --git a/stage0/stdlib/Lean/Meta/Match/MVarRenaming.c b/stage0/stdlib/Lean/Meta/Match/MVarRenaming.c index df4252669d..ab1b1c758a 100644 --- a/stage0/stdlib/Lean/Meta/Match/MVarRenaming.c +++ b/stage0/stdlib/Lean/Meta/Match/MVarRenaming.c @@ -22,19 +22,21 @@ lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_MVarRenaming_find_x3f(lean_object*, lean_object*); lean_object* l_Lean_Meta_MVarRenaming_apply(lean_object*, lean_object*); lean_object* l_Lean_Meta_MVarRenaming_insert(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Meta_MVarRenaming_insert___spec__1(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_MVarRenaming_isEmpty(lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_Meta_MVarRenaming_apply_match__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_MVarRenaming_find_x21___closed__2; lean_object* l_Lean_Meta_MVarRenaming_map___default; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_Meta_MVarRenaming_apply_match__1(lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Meta_MVarRenaming_apply___spec__1(lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_MVarRenaming_find_x21___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_MVarRenaming_find_x21___closed__1; lean_object* l_Lean_Meta_MVarRenaming_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MVarRenaming_find_x3f___boxed(lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* lean_expr_update_proj(lean_object*, lean_object*); @@ -44,13 +46,14 @@ size_t l_USize_mod(size_t, size_t); lean_object* l_Std_RBNode_find___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_MVarRenaming_find_x21___closed__3; size_t lean_ptr_addr(lean_object*); +extern lean_object* l_Lean_instInhabitedMVarId; lean_object* l_Lean_Meta_MVarRenaming_find_x21(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Meta_MVarRenaming_apply___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_MVarRenaming_find_x21___closed__4; lean_object* l_Lean_Meta_MVarRenaming_apply_match__2(lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Meta_MVarRenaming_find_x3f___spec__1___boxed(lean_object*, lean_object*); @@ -203,7 +206,7 @@ x_3 = l_Std_RBNode_find___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_2) if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = l_Lean_instInhabitedName; +x_4 = l_Lean_instInhabitedMVarId; x_5 = l_Lean_Meta_MVarRenaming_find_x21___closed__4; x_6 = lean_panic_fn(x_4, x_5); return x_6; @@ -228,11 +231,2481 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_Meta_MVarRenaming_insert___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_Meta_MVarRenaming_insert___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l_Lean_Meta_MVarRenaming_insert(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_1, x_2, x_3); +x_4 = l_Std_RBNode_insert___at_Lean_Meta_MVarRenaming_insert___spec__1(x_1, x_2, x_3); return x_4; } } diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index d25fa73a7f..68bcf1e08b 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -37,6 +37,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor_match__2(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); @@ -790,7 +791,6 @@ lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_M static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___closed__2; lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_getMkMatcherInputInContext___lambda__3___closed__1; lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -26480,7 +26480,7 @@ x_17 = lean_level_eq(x_14, x_16); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_7, x_8, x_9, x_15); +x_18 = l_Lean_Meta_mkFreshLevelMVar(x_6, x_7, x_8, x_9, x_15); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); diff --git a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c index f336351367..e1453c6858 100644 --- a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c +++ b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1(lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -20,7 +21,6 @@ lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterP lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__2; lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____closed__13; lean_object* l_Array_filterMapM___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -54,11 +54,13 @@ lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquations uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEqs___spec__2___closed__3; +lean_object* l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___closed__4; lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_trySubst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__6; lean_object* l_Std_RBNode_find___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_ExprStructEq_instHashableExprStructEq; @@ -75,6 +77,7 @@ static lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Match_MatchEq lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Match_proveCondEqThm___closed__5; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -112,6 +115,7 @@ lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_addExtraParams_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__11; lean_object* lean_array_push(lean_object*, lean_object*); @@ -137,7 +141,6 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Match_M uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs___spec__5___lambda__1___closed__3; -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___lambda__1___closed__2; static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_toFVarsRHSArgs___closed__6; static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____closed__22; @@ -154,8 +157,10 @@ static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__4; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__10___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___closed__1; lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEq_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____closed__19; +lean_object* l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); @@ -175,6 +180,7 @@ lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquations static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__4___closed__2; lean_object* l_List_mapTRAux___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___lambda__3___closed__3; +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts(lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___lambda__1___closed__4; @@ -188,7 +194,6 @@ static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___closed__1; static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__5; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__10(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___closed__2; static lean_object* l_repr___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____spec__1___closed__2; static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkBaseNameFor_go___closed__3; @@ -210,6 +215,7 @@ lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_casesOnStuc lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___spec__1(size_t, size_t, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___closed__2; lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny_match__1(lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEqs___spec__2___closed__1; @@ -248,7 +254,6 @@ static lean_object* l_Lean_Meta_Match_instInhabitedMatchEqns___closed__1; lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_casesOnStuckLHS_failed___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___closed__7; lean_object* l_Lean_Meta_toCtorIfLit(lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkBaseNameFor_go(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -365,6 +370,7 @@ lean_object* l_Lean_Meta_Match_proveCondEqThm___lambda__3(lean_object*, lean_obj lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_addExtraParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_addExtraParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEqs___spec__2___closed__6; @@ -385,6 +391,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_casesOnStuckLHS___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_match__1___rarg(lean_object*, lean_object*); @@ -535,7 +542,6 @@ lean_object* lean_nat_to_int(lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_casesOnStuckLHS_failed(lean_object*); lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal_match__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__10; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_matchEqnsExt___closed__2; lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor_match__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7510,7 +7516,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint x_38 = lean_ctor_get(x_32, 1); lean_inc(x_38); lean_dec(x_32); -x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_18, x_4, x_5, x_6, x_7, x_38); +x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_18, x_4, x_5, x_6, x_7, x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -7544,7 +7550,7 @@ lean_ctor_set(x_25, 1, x_23); x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_18, x_26, x_4, x_5, x_6, x_7, x_20); +x_27 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_18, x_26, x_4, x_5, x_6, x_7, x_20); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -7589,29 +7595,41 @@ return x_46; static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Match_MatchEqnsExtState_map___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; } } static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Match_proveCondEqThm___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Match_proveCondEqThm___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__4() { +_start: +{ size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_Meta_Match_proveCondEqThm___closed__2; -x_3 = l_Lean_Meta_Match_proveCondEqThm___closed__1; +x_2 = l_Lean_Meta_Match_proveCondEqThm___closed__3; +x_3 = l_Lean_Meta_Match_proveCondEqThm___closed__2; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -7622,12 +7640,12 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__4() { +static lean_object* _init_l_Lean_Meta_Match_proveCondEqThm___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Match_MatchEqnsExtState_map___default___closed__3; -x_2 = l_Lean_Meta_Match_proveCondEqThm___closed__3; +x_1 = l_Lean_Meta_Match_proveCondEqThm___closed__1; +x_2 = l_Lean_Meta_Match_proveCondEqThm___closed__4; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -7656,7 +7674,7 @@ lean_closure_set(x_11, 0, x_1); x_12 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg), 7, 2); lean_closure_set(x_12, 0, x_9); lean_closure_set(x_12, 1, x_11); -x_13 = l_Lean_Meta_Match_proveCondEqThm___closed__4; +x_13 = l_Lean_Meta_Match_proveCondEqThm___closed__5; x_14 = l_Lean_Meta_Match_instInhabitedMatchEqns___closed__1; x_15 = l_Lean_Meta_withLCtx___at_Lean_Meta_ppGoal___spec__15___rarg(x_13, x_14, x_12, x_3, x_4, x_5, x_6, x_10); return x_15; @@ -10908,7 +10926,2629 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_MatchEqs_0__Lean_Me return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 < x_3; +if (x_6 == 0) +{ +return x_5; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_2, x_4); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_9 = lean_ctor_get(x_5, 1); +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 2); +lean_inc(x_13); +x_14 = lean_nat_dec_lt(x_12, x_13); +if (x_14 == 0) +{ +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +return x_5; +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_9); +if (x_15 == 0) +{ +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; size_t x_24; size_t x_25; +x_16 = lean_ctor_get(x_9, 2); +lean_dec(x_16); +x_17 = lean_ctor_get(x_9, 1); +lean_dec(x_17); +x_18 = lean_ctor_get(x_9, 0); +lean_dec(x_18); +x_19 = lean_array_fget(x_11, x_12); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_12, x_20); +lean_dec(x_12); +lean_ctor_set(x_9, 1, x_21); +x_22 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_23 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_10, x_22, x_19); +lean_ctor_set(x_5, 0, x_23); +x_24 = 1; +x_25 = x_4 + x_24; +x_4 = x_25; +goto _start; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; +lean_dec(x_9); +x_27 = lean_array_fget(x_11, x_12); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_12, x_28); +lean_dec(x_12); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_11); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_30, 2, x_13); +x_31 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_32 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_10, x_31, x_27); +lean_ctor_set(x_5, 1, x_30); +lean_ctor_set(x_5, 0, x_32); +x_33 = 1; +x_34 = x_4 + x_33; +x_4 = x_34; +goto _start; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_36 = lean_ctor_get(x_5, 1); +x_37 = lean_ctor_get(x_5, 0); +lean_inc(x_36); +lean_inc(x_37); +lean_dec(x_5); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_36, 2); +lean_inc(x_40); +x_41 = lean_nat_dec_lt(x_39, x_40); +if (x_41 == 0) +{ +lean_object* x_42; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_7); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_37); +lean_ctor_set(x_42, 1, x_36); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; size_t x_51; size_t x_52; +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_43 = x_36; +} else { + lean_dec_ref(x_36); + x_43 = lean_box(0); +} +x_44 = lean_array_fget(x_38, x_39); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_add(x_39, x_45); +lean_dec(x_39); +if (lean_is_scalar(x_43)) { + x_47 = lean_alloc_ctor(0, 3, 0); +} else { + x_47 = x_43; +} +lean_ctor_set(x_47, 0, x_38); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_40); +x_48 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_49 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_37, x_48, x_44); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +x_51 = 1; +x_52 = x_4 + x_51; +x_4 = x_52; +x_5 = x_50; +goto _start; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -10962,7 +13602,7 @@ lean_dec(x_11); lean_ctor_set(x_8, 1, x_20); x_21 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); -x_22 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_9, x_21, x_18); +x_22 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_9, x_21, x_18); lean_ctor_set(x_4, 0, x_22); x_23 = 1; x_24 = x_3 + x_23; @@ -10983,7 +13623,7 @@ lean_ctor_set(x_29, 1, x_28); lean_ctor_set(x_29, 2, x_12); x_30 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); -x_31 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_9, x_30, x_26); +x_31 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_9, x_30, x_26); lean_ctor_set(x_4, 1, x_29); lean_ctor_set(x_4, 0, x_31); x_32 = 1; @@ -11046,7 +13686,7 @@ lean_ctor_set(x_46, 1, x_45); lean_ctor_set(x_46, 2, x_39); x_47 = l_Lean_Expr_fvarId_x21(x_6); lean_dec(x_6); -x_48 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_36, x_47, x_43); +x_48 = l_Std_RBNode_insert___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_36, x_47, x_43); x_49 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_46); @@ -11075,14 +13715,28 @@ x_8 = lean_array_get_size(x_1); x_9 = lean_usize_of_nat(x_8); lean_dec(x_8); x_10 = 0; -x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_1, x_9, x_10, x_7); +x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4(x_1, x_9, x_10, x_7); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___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_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -11090,7 +13744,7 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__1(x_1, x_5, x_6, x_4); +x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___spec__4(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -15317,7 +17971,7 @@ lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint x_67 = lean_ctor_get(x_61, 1); lean_inc(x_67); lean_dec(x_61); -x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_9, x_4, x_5, x_6, x_7, x_67); +x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_9, x_4, x_5, x_6, x_7, x_67); x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); x_70 = lean_ctor_get(x_68, 1); @@ -15405,7 +18059,7 @@ x_39 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_9, x_40, x_4, x_5, x_6, x_7, x_19); +x_41 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_9, x_40, x_4, x_5, x_6, x_7, x_19); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -15433,7 +18087,7 @@ x_50 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_9, x_51, x_4, x_5, x_6, x_7, x_19); +x_52 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_9, x_51, x_4, x_5, x_6, x_7, x_19); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -15710,7 +18364,7 @@ x_46 = lean_ctor_get(x_40, 1); lean_inc(x_46); lean_dec(x_40); lean_inc(x_5); -x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_5, x_7, x_8, x_9, x_10, x_46); +x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_5, x_7, x_8, x_9, x_10, x_46); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -15747,7 +18401,7 @@ x_33 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_5, x_34, x_7, x_8, x_9, x_10, x_27); +x_35 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_5, x_34, x_7, x_8, x_9, x_10, x_27); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); @@ -15840,7 +18494,7 @@ lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint x_32 = lean_ctor_get(x_26, 1); lean_inc(x_32); lean_dec(x_26); -x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_11, x_5, x_6, x_7, x_8, x_32); +x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_11, x_5, x_6, x_7, x_8, x_32); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -15875,7 +18529,7 @@ x_19 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_11, x_20, x_5, x_6, x_7, x_8, x_13); +x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_11, x_20, x_5, x_6, x_7, x_8, x_13); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -17056,7 +19710,7 @@ lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint x_67 = lean_ctor_get(x_61, 1); lean_inc(x_67); lean_dec(x_61); -x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_43, x_16, x_17, x_18, x_19, x_67); +x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_43, x_16, x_17, x_18, x_19, x_67); x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); x_70 = lean_ctor_get(x_68, 1); @@ -17096,7 +19750,7 @@ x_54 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_54); -x_56 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_43, x_55, x_16, x_17, x_18, x_19, x_45); +x_56 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_43, x_55, x_16, x_17, x_18, x_19, x_45); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); @@ -17447,7 +20101,7 @@ lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint x_83 = lean_ctor_get(x_77, 1); lean_inc(x_83); lean_dec(x_77); -x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_58, x_16, x_17, x_18, x_19, x_83); +x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_58, x_16, x_17, x_18, x_19, x_83); x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); x_86 = lean_ctor_get(x_84, 1); @@ -17490,7 +20144,7 @@ x_68 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_69 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_69, 0, x_67); lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_58, x_69, x_16, x_17, x_18, x_19, x_60); +x_70 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_58, x_69, x_16, x_17, x_18, x_19, x_60); x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); @@ -17910,7 +20564,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint x_51 = lean_ctor_get(x_46, 1); lean_inc(x_51); lean_dec(x_46); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_31, x_14, x_15, x_16, x_17, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_31, x_14, x_15, x_16, x_17, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -17947,7 +20601,7 @@ x_39 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatchEqs_0__Lean x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_31, x_40, x_14, x_15, x_16, x_17, x_33); +x_41 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_31, x_40, x_14, x_15, x_16, x_17, x_33); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -18931,6 +21585,8 @@ l_Lean_Meta_Match_proveCondEqThm___closed__3 = _init_l_Lean_Meta_Match_proveCond lean_mark_persistent(l_Lean_Meta_Match_proveCondEqThm___closed__3); l_Lean_Meta_Match_proveCondEqThm___closed__4 = _init_l_Lean_Meta_Match_proveCondEqThm___closed__4(); lean_mark_persistent(l_Lean_Meta_Match_proveCondEqThm___closed__4); +l_Lean_Meta_Match_proveCondEqThm___closed__5 = _init_l_Lean_Meta_Match_proveCondEqThm___closed__5(); +lean_mark_persistent(l_Lean_Meta_Match_proveCondEqThm___closed__5); l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__1 = _init_l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__1); l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__2 = _init_l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/PPGoal.c b/stage0/stdlib/Lean/Meta/PPGoal.c index 41737c3a3e..ca1a836373 100644 --- a/stage0/stdlib/Lean/Meta/PPGoal.c +++ b/stage0/stdlib/Lean/Meta/PPGoal.c @@ -32,7 +32,6 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Meta_ppGoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__32(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasVisibleDep___spec__40(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; lean_object* l_Lean_Meta_ppGoal_pushPending_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); @@ -62,6 +61,7 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l_Lean_Meta_ToHide_isMarked___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_pp_auxDecls; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_PPGoal___hyg_28____closed__4; +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppGoal___lambda__1___closed__3; lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasVisibleDep___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,6 +145,7 @@ static lean_object* l_Lean_Meta_ppGoal_pushPending___closed__1; uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasVisibleDep___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_PPGoal___hyg_4____closed__3; lean_object* l_Lean_Meta_ppGoal_pushPending___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppGoal___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_ToHide_hasVisibleDep___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,6 +189,7 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de static lean_object* l_Lean_Meta_ppGoal___lambda__1___closed__2; lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_ToHide_hasVisibleDep___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_ppGoal___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_ppGoal___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -229,7 +231,6 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasVisibleDep___spec__19(le uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasVisibleDep___spec__34(lean_object*, lean_object*, size_t, size_t); size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_ToHide_hasVisibleDep___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_ToHide_hasVisibleDep___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -273,8 +274,10 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_ToHide_fixpointStep___spec lean_object* l_Lean_Meta_ToHide_unmark(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_ToHide_hasVisibleDep___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_ToHide_hasVisibleDep___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Meta_withPPInaccessibleNamesImp(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_ppGoal___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasVisibleDep___spec__38___boxed(lean_object*, lean_object*); @@ -342,7 +345,6 @@ uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_ToHide_hasVisibleDep___spec uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasVisibleDep___spec__10(lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppGoal___closed__2; lean_object* l_Lean_Meta_ToHide_fixpointStep_match__1___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasVisibleDep___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_del___at_Lean_Meta_ToHide_unmark___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_ToHide_collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -724,7 +726,7 @@ static lean_object* _init_l_Lean_Meta_ToHide_State_hiddenInaccessibleProp___defa _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -732,7 +734,7 @@ static lean_object* _init_l_Lean_Meta_ToHide_State_hiddenInaccessible___default( _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -744,6 +746,50 @@ x_1 = 0; return x_1; } } +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} lean_object* l_Lean_Meta_ToHide_isMarked(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: { @@ -756,72 +802,114 @@ x_11 = lean_st_ref_get(x_3, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); -x_15 = l_Lean_NameSet_contains(x_14, x_1); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_1); lean_dec(x_14); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; uint8_t x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_13, 0); lean_inc(x_16); lean_dec(x_13); -x_17 = l_Lean_NameSet_contains(x_16, x_1); +x_17 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_16, x_1); lean_dec(x_16); -x_18 = lean_box(x_17); -lean_ctor_set(x_11, 0, x_18); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; lean_object* x_19; +x_18 = 0; +x_19 = lean_box(x_18); +lean_ctor_set(x_11, 0, x_19); return x_11; } else { -uint8_t x_19; lean_object* x_20; +uint8_t x_20; lean_object* x_21; +lean_dec(x_17); +x_20 = 1; +x_21 = lean_box(x_20); +lean_ctor_set(x_11, 0, x_21); +return x_11; +} +} +else +{ +uint8_t x_22; lean_object* x_23; +lean_dec(x_15); lean_dec(x_13); -x_19 = 1; -x_20 = lean_box(x_19); -lean_ctor_set(x_11, 0, x_20); +x_22 = 1; +x_23 = lean_box(x_22); +lean_ctor_set(x_11, 0, x_23); return x_11; } } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_11); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -x_24 = l_Lean_NameSet_contains(x_23, x_1); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); lean_inc(x_25); -lean_dec(x_21); -x_26 = l_Lean_NameSet_contains(x_25, x_1); -lean_dec(x_25); -x_27 = lean_box(x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_22); -return x_28; +lean_inc(x_24); +lean_dec(x_11); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +x_27 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_26, x_1); +lean_dec(x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_24, 0); +lean_inc(x_28); +lean_dec(x_24); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_28, x_1); +lean_dec(x_28); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_25); +return x_32; } else { -uint8_t x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_21); -x_29 = 1; -x_30 = lean_box(x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_22); -return x_31; +uint8_t x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_29); +x_33 = 1; +x_34 = lean_box(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_25); +return x_35; } } +else +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_27); +lean_dec(x_24); +x_36 = 1; +x_37 = lean_box(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_25); +return x_38; +} +} +} +} +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; } } lean_object* l_Lean_Meta_ToHide_isMarked___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) { @@ -1086,6 +1174,2476 @@ lean_dec(x_1); return x_9; } } +lean_object* l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_Meta_ToHide_moveToHiddeProp___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l_Lean_Meta_ToHide_moveToHiddeProp(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: { @@ -1102,17 +3660,17 @@ lean_inc(x_13); lean_dec(x_11); x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); -x_15 = lean_box(0); -lean_inc(x_1); -x_16 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_14, x_1, x_15); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); lean_dec(x_12); -x_18 = l_Std_RBNode_erase___at_Lean_Meta_ToHide_unmark___spec__1(x_1, x_17); +x_16 = lean_box(0); +lean_inc(x_1); +x_17 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_14, x_1, x_16); +x_18 = l_Std_RBNode_erase___at_Lean_Meta_ToHide_unmark___spec__1(x_1, x_15); lean_dec(x_1); x_19 = 1; x_20 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_18); lean_ctor_set_uint8(x_20, sizeof(void*)*2, x_19); x_21 = lean_st_ref_set(x_3, x_20, x_13); @@ -1122,7 +3680,7 @@ if (x_22 == 0) lean_object* x_23; x_23 = lean_ctor_get(x_21, 0); lean_dec(x_23); -lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 0, x_16); return x_21; } else @@ -1132,7 +3690,7 @@ x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); lean_dec(x_21); x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); +lean_ctor_set(x_25, 0, x_16); lean_ctor_set(x_25, 1, x_24); return x_25; } @@ -1204,16 +3762,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -1222,6 +3780,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -1343,16 +3902,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -1361,6 +3920,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -1437,15 +3997,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -1458,6 +4018,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -1887,16 +4448,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -1905,6 +4466,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -2026,16 +4588,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -2044,6 +4606,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -2120,15 +4683,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -2141,6 +4704,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -2570,16 +5134,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -2588,6 +5152,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -2709,16 +5274,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -2727,6 +5292,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -2803,15 +5369,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -2824,6 +5390,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -3253,16 +5820,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -3271,6 +5838,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -3392,16 +5960,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -3410,6 +5978,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -3486,15 +6055,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -3507,6 +6076,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -3936,16 +6506,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -3954,6 +6524,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -4075,16 +6646,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -4093,6 +6664,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -4169,15 +6741,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -4190,6 +6762,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -4619,16 +7192,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -4637,6 +7210,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -4758,16 +7332,16 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); lean_dec(x_11); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { uint8_t x_14; x_14 = 1; @@ -4776,6 +7350,7 @@ return x_14; else { size_t x_15; size_t x_16; +lean_dec(x_13); x_15 = 1; x_16 = x_3 + x_15; x_3 = x_16; @@ -4852,15 +7427,15 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); lean_dec(x_5); -if (x_7 == 0) +if (lean_obj_tag(x_7) == 0) { uint8_t x_8; lean_object* x_9; lean_object* x_10; x_8 = 1; @@ -4873,6 +7448,7 @@ return x_10; else { uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -6121,21 +8697,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -6146,6 +8722,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -6153,6 +8730,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -6273,21 +8851,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -6298,6 +8876,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -6305,6 +8884,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -6380,351 +8960,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__3(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__3(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__1(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -6832,21 +9429,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -6857,6 +9454,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -6864,6 +9462,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -6984,21 +9583,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -7009,6 +9608,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -7016,6 +9616,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -7091,351 +9692,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__10(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__10(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__8(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -7543,21 +10161,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -7568,6 +10186,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -7575,6 +10194,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -7695,21 +10315,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -7720,6 +10340,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -7727,6 +10348,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -7802,351 +10424,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__17(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__17(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__15(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -8254,21 +10893,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -8279,6 +10918,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -8286,6 +10926,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -8406,21 +11047,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -8431,6 +11072,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -8438,6 +11080,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -8513,351 +11156,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__24(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__24(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__22(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -8965,21 +11625,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -8990,6 +11650,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -8997,6 +11658,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -9117,21 +11779,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -9142,6 +11804,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -9149,6 +11812,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -9224,351 +11888,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__31(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__31(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__29(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -9676,21 +12357,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -9701,6 +12382,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -9708,6 +12390,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -9828,21 +12511,21 @@ goto _start; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); lean_dec(x_6); x_11 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_NameSet_contains(x_12, x_11); -if (x_13 == 0) +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_12, x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; uint8_t x_15; +lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_1, 0); -x_15 = l_Lean_NameSet_contains(x_14, x_11); +x_15 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_14, x_11); lean_dec(x_11); -if (x_15 == 0) +if (lean_obj_tag(x_15) == 0) { size_t x_16; size_t x_17; x_16 = 1; @@ -9853,6 +12536,7 @@ goto _start; else { uint8_t x_19; +lean_dec(x_15); x_19 = 1; return x_19; } @@ -9860,6 +12544,7 @@ return x_19; else { uint8_t x_20; +lean_dec(x_13); lean_dec(x_11); x_20 = 1; return x_20; @@ -9935,351 +12620,368 @@ _start: switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_2); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_NameSet_contains(x_6, x_5); -if (x_7 == 0) +x_7 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_6, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_NameSet_contains(x_8, x_5); +x_9 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_8, x_5); lean_dec(x_5); -x_10 = lean_box(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_4); -return x_11; +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_10 = 0; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -uint8_t x_12; lean_object* x_13; lean_object* x_14; +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_9); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); lean_dec(x_5); -x_12 = 1; -x_13 = lean_box(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_4); -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_4); +return x_18; } } case 2: { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_15); -lean_inc(x_2); -x_16 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = l_Lean_MetavarContext_getDecl(x_2, x_15); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_18, 1); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__38(x_1, x_19); -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_4); -return x_22; +lean_dec(x_3); +lean_inc(x_19); +lean_inc(x_2); +x_20 = l_Lean_MetavarContext_getExprAssignment_x3f(x_2, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_21 = l_Lean_MetavarContext_getDecl(x_2, x_19); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Std_PersistentArray_anyM___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__38(x_1, x_23); +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; } else { -lean_object* x_23; lean_object* x_24; -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_23, x_4); -return x_24; +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +x_27 = lean_ctor_get(x_20, 0); +lean_inc(x_27); +lean_dec(x_20); +x_28 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_27, x_4); +return x_28; } } case 5: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_3, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_3, 1); +lean_inc(x_30); lean_dec(x_3); lean_inc(x_2); -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_26, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -if (x_29 == 0) +x_31 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_30, x_4); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +if (x_33 == 0) { -lean_object* x_30; uint8_t x_31; -lean_dec(x_28); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = l_Lean_Expr_isApp(x_25); -if (x_31 == 0) +lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Expr_isApp(x_29); +if (x_35 == 0) { -lean_object* x_32; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_25, x_30); -return x_32; +lean_object* x_36; +x_36 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_29, x_34); +return x_36; } else { -x_3 = x_25; -x_4 = x_30; +x_3 = x_29; +x_4 = x_34; goto _start; } } else { -uint8_t x_34; -lean_dec(x_25); +uint8_t x_38; +lean_dec(x_29); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_27); -if (x_34 == 0) +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_27, 0); -lean_dec(x_35); -return x_27; +lean_object* x_39; +x_39 = lean_ctor_get(x_31, 0); +lean_dec(x_39); +return x_31; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } case 6: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_3, 2); -lean_inc(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_3, 2); +lean_inc(x_43); lean_dec(x_3); lean_inc(x_2); -x_40 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_38, x_4); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -if (x_42 == 0) +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_42, x_4); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +if (x_46 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_41); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_39, x_43); +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_43, x_47); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_43); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_44, 0); +lean_dec(x_50); return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 7: { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_3, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); lean_dec(x_3); lean_inc(x_2); -x_51 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_49, x_4); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -if (x_53 == 0) +x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_53, x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +if (x_57 == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_52); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_50, x_54); +lean_object* x_58; lean_object* x_59; +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_54, x_58); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_54); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_55); +if (x_60 == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_55, 0); +lean_dec(x_61); return x_55; } else { -uint8_t x_56; -lean_dec(x_50); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_51); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_51, 0); -lean_dec(x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 1); -lean_inc(x_58); -lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } case 8: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_3, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_3, 3); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); lean_dec(x_3); lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_60, x_4); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_64); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -lean_inc(x_2); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_61, x_66); +x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_64, x_4); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_unbox(x_68); if (x_69 == 0) { -lean_object* x_70; lean_object* x_71; +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_68); x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); -x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_62, x_70); -return x_71; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_ctor_get(x_67, 0); -lean_dec(x_73); -return x_67; -} -else +lean_inc(x_2); +x_71 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_65, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_67, 1); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_dec(x_67); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_68); -lean_ctor_set(x_75, 1, x_74); +lean_dec(x_71); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_66, x_74); return x_75; } -} -} else { uint8_t x_76; -lean_dec(x_62); -lean_dec(x_61); +lean_dec(x_66); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_63); +x_76 = !lean_is_exclusive(x_71); if (x_76 == 0) { lean_object* x_77; -x_77 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_71, 0); lean_dec(x_77); -return x_63; +return x_71; } else { lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_71, 1); lean_inc(x_78); -lean_dec(x_63); +lean_dec(x_71); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_64); +lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_78); return x_79; } } } +else +{ +uint8_t x_80; +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_67); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_67, 0); +lean_dec(x_81); +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_67, 1); +lean_inc(x_82); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_68); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} case 10: { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_3, 1); -lean_inc(x_80); +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_3, 1); +lean_inc(x_84); lean_dec(x_3); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_80, x_4); -return x_81; +x_85 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_84, x_4); +return x_85; } case 11: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_3, 2); -lean_inc(x_82); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_3, 2); +lean_inc(x_86); lean_dec(x_3); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_82, x_4); -return x_83; +x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_ToHide_hasInaccessibleNameDep___spec__36(x_1, x_2, x_86, x_4); +return x_87; } default: { -uint8_t x_84; lean_object* x_85; lean_object* x_86; +uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_dec(x_3); lean_dec(x_2); -x_84 = 0; -x_85 = lean_box(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_4); -return x_86; +x_88 = 0; +x_89 = lean_box(x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +return x_90; } } } @@ -12700,7 +15402,7 @@ goto block_19; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_21 = lean_ctor_get(x_13, 0); lean_inc(x_21); lean_dec(x_13); @@ -12718,9 +15420,9 @@ lean_dec(x_25); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Lean_NameSet_contains(x_28, x_22); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_28, x_22); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_dec(x_22); @@ -12828,6 +15530,7 @@ return x_46; else { lean_object* x_47; lean_object* x_48; uint8_t x_49; +lean_dec(x_29); lean_inc(x_21); x_47 = l_Lean_Meta_ToHide_hasVisibleDep(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_27); x_48 = lean_ctor_get(x_47, 0); @@ -13680,7 +16383,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = l_Lean_LocalDecl_fvarId(x_10); lean_dec(x_10); x_15 = lean_box(0); -x_16 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_14, x_15); +x_16 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_4, x_14, x_15); x_2 = x_8; x_4 = x_16; goto _start; @@ -14025,7 +16728,7 @@ static lean_object* _init_l_Lean_Meta_ToHide_collect___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -14046,7 +16749,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_10 = lean_ctor_get(x_2, 1); lean_inc(x_10); -x_11 = l_Lean_NameSet_empty; +x_11 = lean_box(0); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Lean_LocalContext_foldlM___at_Lean_Meta_ToHide_collect___spec__1(x_10, x_11, x_12); x_14 = 0; @@ -14720,11 +17423,11 @@ return x_2; lean_object* l_Lean_Meta_ppGoal_ppVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; uint8_t x_13; +lean_object* x_12; lean_object* x_13; x_12 = l_Lean_LocalDecl_fvarId(x_6); -x_13 = l_Lean_NameSet_contains(x_2, x_12); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_2, x_12); lean_dec(x_12); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { if (lean_obj_tag(x_6) == 0) { @@ -15372,6 +18075,7 @@ return x_162; else { lean_object* x_163; +lean_dec(x_13); x_163 = l_Lean_Meta_ppGoal_pushPending(x_1, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_163) == 0) { @@ -15676,11 +18380,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -15737,6 +18441,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -15765,11 +18470,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -15827,6 +18532,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -15874,11 +18580,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -15936,6 +18642,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -15992,13 +18699,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -16055,6 +18762,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -16064,16 +18772,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -16131,6 +18839,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -16145,7 +18854,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -16162,9 +18871,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -16222,6 +18931,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); @@ -16490,11 +19200,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -16551,6 +19261,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -16579,11 +19290,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -16641,6 +19352,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -16688,11 +19400,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -16750,6 +19462,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -16806,13 +19519,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -16869,6 +19582,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -16878,16 +19592,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -16945,6 +19659,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -16959,7 +19674,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -16976,9 +19691,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -17036,6 +19751,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); @@ -17337,11 +20053,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -17398,6 +20114,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -17426,11 +20143,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -17488,6 +20205,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -17535,11 +20253,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -17597,6 +20315,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -17653,13 +20372,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -17716,6 +20435,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -17725,16 +20445,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -17792,6 +20512,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -17806,7 +20527,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -17823,9 +20544,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -17883,6 +20604,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); @@ -17963,11 +20685,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -18024,6 +20746,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -18052,11 +20775,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -18114,6 +20837,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -18161,11 +20885,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -18223,6 +20947,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -18279,13 +21004,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -18342,6 +21067,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -18351,16 +21077,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -18418,6 +21144,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -18432,7 +21159,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -18449,9 +21176,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -18509,6 +21236,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); @@ -18662,11 +21390,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -18723,6 +21451,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -18751,11 +21480,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -18813,6 +21542,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -18860,11 +21590,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -18922,6 +21652,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -18978,13 +21709,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -19041,6 +21772,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -19050,16 +21782,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -19117,6 +21849,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -19131,7 +21864,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -19148,9 +21881,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -19208,6 +21941,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); @@ -19403,11 +22137,11 @@ x_26 = lean_ctor_get(x_19, 1); x_27 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_27 == 0) { -lean_object* x_28; uint8_t x_29; +lean_object* x_28; lean_object* x_29; x_28 = l_Lean_LocalDecl_fvarId(x_20); -x_29 = l_Lean_NameSet_contains(x_3, x_28); +x_29 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_28); lean_dec(x_28); -if (x_29 == 0) +if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_free_object(x_19); @@ -19464,6 +22198,7 @@ return x_39; else { size_t x_40; size_t x_41; +lean_dec(x_29); lean_dec(x_20); x_40 = 1; x_41 = x_6 + x_40; @@ -19492,11 +22227,11 @@ lean_dec(x_19); x_48 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_48 == 0) { -lean_object* x_49; uint8_t x_50; +lean_object* x_49; lean_object* x_50; x_49 = l_Lean_LocalDecl_fvarId(x_20); -x_50 = l_Lean_NameSet_contains(x_3, x_49); +x_50 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_49); lean_dec(x_49); -if (x_50 == 0) +if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_free_object(x_8); @@ -19554,6 +22289,7 @@ return x_60; else { lean_object* x_61; size_t x_62; size_t x_63; +lean_dec(x_50); lean_dec(x_20); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_46); @@ -19601,11 +22337,11 @@ if (lean_is_exclusive(x_19)) { x_73 = l_Lean_LocalDecl_isAuxDecl(x_20); if (x_73 == 0) { -lean_object* x_74; uint8_t x_75; +lean_object* x_74; lean_object* x_75; x_74 = l_Lean_LocalDecl_fvarId(x_20); -x_75 = l_Lean_NameSet_contains(x_3, x_74); +x_75 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_74); lean_dec(x_74); -if (x_75 == 0) +if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_dec(x_72); @@ -19663,6 +22399,7 @@ return x_85; else { lean_object* x_86; lean_object* x_87; size_t x_88; size_t x_89; +lean_dec(x_75); lean_dec(x_20); if (lean_is_scalar(x_72)) { x_86 = lean_alloc_ctor(0, 2, 0); @@ -19719,13 +22456,13 @@ lean_dec(x_99); x_100 = !lean_is_exclusive(x_19); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_101 = lean_ctor_get(x_19, 0); x_102 = lean_ctor_get(x_19, 1); x_103 = l_Lean_LocalDecl_fvarId(x_96); -x_104 = l_Lean_NameSet_contains(x_3, x_103); +x_104 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_103); lean_dec(x_103); -if (x_104 == 0) +if (lean_obj_tag(x_104) == 0) { lean_object* x_105; lean_free_object(x_19); @@ -19782,6 +22519,7 @@ return x_114; else { size_t x_115; size_t x_116; +lean_dec(x_104); lean_dec(x_96); x_115 = 1; x_116 = x_6 + x_115; @@ -19791,16 +22529,16 @@ goto _start; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; x_118 = lean_ctor_get(x_19, 0); x_119 = lean_ctor_get(x_19, 1); lean_inc(x_119); lean_inc(x_118); lean_dec(x_19); x_120 = l_Lean_LocalDecl_fvarId(x_96); -x_121 = l_Lean_NameSet_contains(x_3, x_120); +x_121 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_120); lean_dec(x_120); -if (x_121 == 0) +if (lean_obj_tag(x_121) == 0) { lean_object* x_122; lean_free_object(x_8); @@ -19858,6 +22596,7 @@ return x_131; else { lean_object* x_132; size_t x_133; size_t x_134; +lean_dec(x_121); lean_dec(x_96); x_132 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_132, 0, x_118); @@ -19872,7 +22611,7 @@ goto _start; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; x_136 = lean_ctor_get(x_8, 0); lean_inc(x_136); lean_dec(x_8); @@ -19889,9 +22628,9 @@ if (lean_is_exclusive(x_19)) { x_139 = lean_box(0); } x_140 = l_Lean_LocalDecl_fvarId(x_96); -x_141 = l_Lean_NameSet_contains(x_3, x_140); +x_141 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_3, x_140); lean_dec(x_140); -if (x_141 == 0) +if (lean_obj_tag(x_141) == 0) { lean_object* x_142; lean_dec(x_139); @@ -19949,6 +22688,7 @@ return x_151; else { lean_object* x_152; lean_object* x_153; size_t x_154; size_t x_155; +lean_dec(x_141); lean_dec(x_96); if (lean_is_scalar(x_139)) { x_152 = lean_alloc_ctor(0, 2, 0); diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index 3b4c0496da..6498558c24 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -180,6 +180,7 @@ lean_object* l_Std_RBNode_fold___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorIn static lean_object* l_Lean_Meta_Attribute_Recursor_getMajorPos___closed__9; static lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_instToStringRecursorInfo___spec__1___closed__1; lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20; lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211_(lean_object*); static lean_object* l_Lean_Meta_RecursorInfo_instToStringRecursorInfo___closed__9; @@ -285,7 +286,6 @@ lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux__ lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_mkRecursorInfoAux_match__3(lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__5; -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____spec__5___lambda__1(lean_object*, lean_object*); @@ -11132,8 +11132,20 @@ static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__10; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -11145,7 +11157,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11157,24 +11169,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__12() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__3; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__14() { @@ -11192,6 +11192,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__15() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__16() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -11200,7 +11212,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -11211,7 +11223,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__17() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11223,14 +11235,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__18() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__11; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__13; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__14; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__17; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__12; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__14; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__15; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__18; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -11242,18 +11254,18 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__10; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__18; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__11; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19; x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__7; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -11268,7 +11280,7 @@ x_7 = lean_st_ref_get(x_4, x_5); x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); -x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19; +x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20; x_10 = lean_st_mk_ref(x_9, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -12565,6 +12577,8 @@ l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___close lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__18); l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__19); +l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____lambda__2___closed__20); l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__1(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__1); l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2211____closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Reduce.c b/stage0/stdlib/Lean/Meta/Reduce.c index bd8478ac12..90336048f8 100644 --- a/stage0/stdlib/Lean/Meta/Reduce.c +++ b/stage0/stdlib/Lean/Meta/Reduce.c @@ -1106,61 +1106,61 @@ if (x_4 == 0) { x_12 = x_4; x_13 = x_11; -goto block_83; +goto block_90; } else { -lean_object* x_84; +lean_object* x_91; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_84 = l_Lean_Meta_isProof(x_1, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_84) == 0) +x_91 = l_Lean_Meta_isProof(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = lean_unbox(x_85); -lean_dec(x_85); -x_12 = x_87; -x_13 = x_86; -goto block_83; +lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_unbox(x_92); +lean_dec(x_92); +x_12 = x_94; +x_13 = x_93; +goto block_90; } else { -uint8_t x_88; +uint8_t x_95; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_84); -if (x_88 == 0) +x_95 = !lean_is_exclusive(x_91); +if (x_95 == 0) { -return x_84; +return x_91; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_84, 0); -x_90 = lean_ctor_get(x_84, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_84); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_91, 0); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_91); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } -block_83: +block_90: { if (x_12 == 0) { @@ -1178,309 +1178,352 @@ lean_inc(x_15); switch (lean_obj_tag(x_15)) { case 5: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); x_17 = l_Lean_Expr_getAppFn(x_15); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Lean_Expr_getAppNumArgsAux(x_15, x_18); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_19); -lean_inc(x_17); -x_20 = l_Lean_Meta_getFunInfoNArgs(x_17, x_19, x_7, x_8, x_9, x_10, x_16); -if (lean_obj_tag(x_20) == 0) +lean_inc(x_6); +x_18 = l_Lean_Meta_reduce_visit(x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_16); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_Expr_getAppNumArgsAux(x_15, x_21); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Meta_reduce_visit___lambda__4___closed__1; lean_inc(x_19); -x_24 = lean_mk_array(x_19, x_23); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_sub(x_19, x_25); +x_23 = l_Lean_Meta_getFunInfoNArgs(x_19, x_22, x_7, x_8, x_9, x_10, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_reduce_visit___lambda__4___closed__1; +lean_inc(x_22); +x_27 = lean_mk_array(x_22, x_26); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_sub(x_22, x_28); +lean_dec(x_22); +x_30 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_15, x_27, x_29); +x_31 = lean_array_get_size(x_30); +lean_inc(x_31); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_28); +x_33 = l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__5(x_2, x_3, x_4, x_24, x_32, x_31, x_21, x_30, x_6, x_7, x_8, x_9, x_10, x_25); +lean_dec(x_32); +lean_dec(x_24); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_33, 0); +x_36 = l_Lean_mkAppN(x_19, x_35); +lean_ctor_set(x_33, 0, x_36); +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +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 = l_Lean_mkAppN(x_19, x_37); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +else +{ +uint8_t x_41; lean_dec(x_19); -x_27 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_15, x_24, x_26); -x_28 = lean_array_get_size(x_27); -lean_inc(x_28); -x_29 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_29, 0, x_18); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_29, 2, x_25); -x_30 = l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___spec__5(x_2, x_3, x_4, x_21, x_29, x_28, x_18, x_27, x_6, x_7, x_8, x_9, x_10, x_22); -lean_dec(x_29); -lean_dec(x_21); -if (lean_obj_tag(x_30) == 0) +x_41 = !lean_is_exclusive(x_33); +if (x_41 == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_30, 0); -x_33 = l_Lean_mkAppN(x_17, x_32); -lean_ctor_set(x_30, 0, x_33); -return x_30; +return x_33; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_30, 0); -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_30); -x_36 = l_Lean_mkAppN(x_17, x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -else -{ -uint8_t x_38; -lean_dec(x_17); -x_38 = !lean_is_exclusive(x_30); -if (x_38 == 0) -{ -return x_30; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_30, 0); -x_40 = lean_ctor_get(x_30, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_30); -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; +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 { -uint8_t x_42; +uint8_t x_45; +lean_dec(x_22); lean_dec(x_19); -lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_42 = !lean_is_exclusive(x_20); -if (x_42 == 0) +x_45 = !lean_is_exclusive(x_23); +if (x_45 == 0) { -return x_20; +return x_23; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_20, 0); -x_44 = lean_ctor_get(x_20, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_20); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_23, 0); +x_47 = lean_ctor_get(x_23, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_23); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_49 = !lean_is_exclusive(x_18); +if (x_49 == 0) +{ +return x_18; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_18, 0); +x_51 = lean_ctor_get(x_18, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_18); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 6: { -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_14, 1); -lean_inc(x_46); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_53 = lean_ctor_get(x_14, 1); +lean_inc(x_53); lean_dec(x_14); -x_47 = lean_box(x_2); -x_48 = lean_box(x_3); -x_49 = lean_box(x_4); -x_50 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__2___boxed), 11, 3); -lean_closure_set(x_50, 0, x_47); -lean_closure_set(x_50, 1, x_48); -lean_closure_set(x_50, 2, x_49); -x_51 = l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg(x_15, x_50, x_6, x_7, x_8, x_9, x_10, x_46); -return x_51; +x_54 = lean_box(x_2); +x_55 = lean_box(x_3); +x_56 = lean_box(x_4); +x_57 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__2___boxed), 11, 3); +lean_closure_set(x_57, 0, x_54); +lean_closure_set(x_57, 1, x_55); +lean_closure_set(x_57, 2, x_56); +x_58 = l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__6___rarg(x_15, x_57, x_6, x_7, x_8, x_9, x_10, x_53); +return x_58; } case 7: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_52 = lean_ctor_get(x_14, 1); -lean_inc(x_52); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_59 = lean_ctor_get(x_14, 1); +lean_inc(x_59); lean_dec(x_14); -x_53 = lean_box(x_2); -x_54 = lean_box(x_3); -x_55 = lean_box(x_4); -x_56 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__3___boxed), 11, 3); -lean_closure_set(x_56, 0, x_53); -lean_closure_set(x_56, 1, x_54); -lean_closure_set(x_56, 2, x_55); -x_57 = l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__7___rarg(x_15, x_56, x_6, x_7, x_8, x_9, x_10, x_52); -return x_57; +x_60 = lean_box(x_2); +x_61 = lean_box(x_3); +x_62 = lean_box(x_4); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_reduce_visit___lambda__3___boxed), 11, 3); +lean_closure_set(x_63, 0, x_60); +lean_closure_set(x_63, 1, x_61); +lean_closure_set(x_63, 2, x_62); +x_64 = l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__7___rarg(x_15, x_63, x_6, x_7, x_8, x_9, x_10, x_59); +return x_64; } case 11: { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_58 = lean_ctor_get(x_14, 1); -lean_inc(x_58); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_ctor_get(x_14, 1); +lean_inc(x_65); lean_dec(x_14); -x_59 = lean_ctor_get(x_15, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_15, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_15, 2); -lean_inc(x_61); -lean_dec(x_15); -x_62 = l_Lean_Meta_reduce_visit(x_2, x_3, x_4, x_61, x_6, x_7, x_8, x_9, x_10, x_58); -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_mkProj(x_59, x_60, 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); +x_66 = lean_ctor_get(x_15, 0); lean_inc(x_66); -lean_dec(x_62); -x_68 = l_Lean_mkProj(x_59, x_60, 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 +x_67 = lean_ctor_get(x_15, 1); +lean_inc(x_67); +x_68 = lean_ctor_get(x_15, 2); +lean_inc(x_68); +lean_dec(x_15); +x_69 = l_Lean_Meta_reduce_visit(x_2, x_3, x_4, x_68, x_6, x_7, x_8, x_9, x_10, x_65); +if (lean_obj_tag(x_69) == 0) { uint8_t x_70; -lean_dec(x_60); -lean_dec(x_59); -x_70 = !lean_is_exclusive(x_62); +x_70 = !lean_is_exclusive(x_69); if (x_70 == 0) { -return x_62; +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_69, 0); +x_72 = l_Lean_mkProj(x_66, x_67, x_71); +lean_ctor_set(x_69, 0, x_72); +return x_69; } 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; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_69, 0); +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_69); +x_75 = l_Lean_mkProj(x_66, x_67, x_73); +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 +{ +uint8_t x_77; +lean_dec(x_67); +lean_dec(x_66); +x_77 = !lean_is_exclusive(x_69); +if (x_77 == 0) +{ +return x_69; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_69, 0); +x_79 = lean_ctor_get(x_69, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_69); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } default: { -uint8_t x_74; +uint8_t x_81; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_74 = !lean_is_exclusive(x_14); -if (x_74 == 0) -{ -lean_object* x_75; -x_75 = lean_ctor_get(x_14, 0); -lean_dec(x_75); -return x_14; -} -else -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_14, 1); -lean_inc(x_76); -lean_dec(x_14); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_15); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_78 = !lean_is_exclusive(x_14); -if (x_78 == 0) -{ -return x_14; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_14, 0); -x_80 = lean_ctor_get(x_14, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_14); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -} -else +x_81 = !lean_is_exclusive(x_14); +if (x_81 == 0) { lean_object* x_82; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_1); -lean_ctor_set(x_82, 1, x_13); -return x_82; +x_82 = lean_ctor_get(x_14, 0); +lean_dec(x_82); +return x_14; +} +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_14, 1); +lean_inc(x_83); +lean_dec(x_14); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_15); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} } } } else { -lean_object* x_92; +uint8_t x_85; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_1); -lean_ctor_set(x_92, 1, x_11); -return x_92; +x_85 = !lean_is_exclusive(x_14); +if (x_85 == 0) +{ +return x_14; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_14, 0); +x_87 = lean_ctor_get(x_14, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_14); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +lean_object* x_89; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_1); +lean_ctor_set(x_89, 1, x_13); +return x_89; +} +} +} +else +{ +lean_object* x_99; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_1); +lean_ctor_set(x_99, 1, x_11); +return x_99; } } } diff --git a/stage0/stdlib/Lean/Meta/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 6b00795807..4e1ef607bb 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -29,16 +29,17 @@ lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp_ma lean_object* l_Lean_Meta_SynthInstance_addAnswer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessArgs_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_findEntry_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_resume_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Meta_SynthInstance_getTop(lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); @@ -91,10 +92,8 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_instHashableName; static uint64_t l_Lean_Meta_SynthInstance_instInhabitedGeneratorNode___closed__1; static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__7; -static lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1; lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -103,7 +102,6 @@ lean_object* l_Lean_Meta_SynthInstance_resume_match__1(lean_object*); static lean_object* l_Lean_Meta_SynthInstance_mkTableKey___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_findEntry_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1(lean_object*); lean_object* l_Lean_Meta_SynthInstance_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_resume_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_synthInstance_x3f___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,7 +132,6 @@ lean_object* l_Lean_Meta_synthInstance_x3f___lambda__2(lean_object*, lean_object lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_SynthInstance_newSubgoal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_findEntry_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_SynthInstance_mkTableKey___closed__2; lean_object* l_Lean_Meta_SynthInstance_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_wakeUp_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -151,6 +148,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_getInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__5; static lean_object* l_Lean_Meta_synthInstance_x3f___lambda__4___closed__1; +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_AbstractMVars_abstractExprMVars___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertionSort_traverse___at_Lean_Meta_SynthInstance_getInstances___spec__2(lean_object*, lean_object*, lean_object*); @@ -226,7 +224,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_generate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_withCurrHeartbeatsImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__9; lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessLevels___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -237,10 +234,10 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__3___closed__4; lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_59____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_modifyTop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_59____closed__1; lean_object* l_Lean_Meta_SynthInstance_newSubgoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_getNextToResume___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_TableEntry_answers___default; lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_getInstances___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__10; @@ -248,7 +245,6 @@ static lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessA lean_object* l_Lean_Meta_SynthInstance_newSubgoal_match__1(lean_object*); static lean_object* l_Lean_Meta_synthInstance_x3f___lambda__5___closed__2; lean_object* l_Array_filterMapM___at_Lean_Meta_SynthInstance_getInstances___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Meta_SynthInstance_getEntry_match__1(lean_object*); lean_object* l_Lean_Meta_SynthInstance_initFn____x40_Lean_Meta_SynthInstance___hyg_59____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -306,6 +302,7 @@ lean_object* l_Lean_Meta_SynthInstance_newSubgoal(lean_object*, lean_object*, le lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_4____closed__6; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__6___closed__4; +extern lean_object* l_Lean_instHashableMVarId; lean_object* l_Lean_Meta_SynthInstance_getInstances_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_preprocessOutParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_synthInstance_maxHeartbeats___closed__1; @@ -317,7 +314,6 @@ lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, l lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_instInhabitedGeneratorNode___closed__6; static lean_object* l_Lean_Meta_SynthInstance_resume___closed__3; -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__6___boxed(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); @@ -382,6 +378,7 @@ lean_object* l_Array_back___at_Lean_Meta_SynthInstance_getTop___spec__1___boxed( lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMCtxImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__6___closed__1; +extern lean_object* l_Lean_instBEqMVarId; lean_object* l_Lean_Meta_SynthInstance_wakeUp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_getTop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default; @@ -445,10 +442,8 @@ lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__1___boxed(le static lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__3___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_4____closed__3; lean_object* l_Lean_Meta_SynthInstance_mkTableKey(lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___spec__1___boxed(lean_object*); lean_object* l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__1(lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___spec__1(lean_object*); lean_object* l_Lean_Meta_SynthInstance_getNextToResume(lean_object*); lean_object* l_Lean_Meta_SynthInstance_isNewAnswer___boxed(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_consume___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -478,7 +473,6 @@ lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__ lean_object* l_Lean_Meta_SynthInstance_modifyTop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_4____closed__7; -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1___boxed(lean_object*); lean_object* l_Lean_Meta_SynthInstance_resume___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Meta_SynthInstance_getNextToResume___spec__1(lean_object*); static lean_object* l_Lean_Meta_SynthInstance_generate___closed__2; @@ -511,7 +505,6 @@ uint8_t l_Lean_MetavarContext_isExprAssignable(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_instInhabitedGeneratorNode___closed__2; static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__12; static lean_object* l_Lean_Meta_SynthInstance_State_tableEntries___default___closed__1; -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_wakeUp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -528,7 +521,6 @@ lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1(lean_object*, le lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Lean_Meta_SynthInstance_Waiter_isRoot_match__1(lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__2; lean_object* l_Lean_Meta_SynthInstance_tryResolveCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -566,16 +558,13 @@ static lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__3; static lean_object* l_Lean_Meta_SynthInstance_resume___closed__1; lean_object* l_Lean_Meta_SynthInstance_checkMaxHeartbeats___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterMapM___at_Lean_Meta_SynthInstance_getInstances___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_wakeUp___closed__3; static lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___closed__4; static lean_object* l_Lean_Meta_SynthInstance_checkMaxHeartbeats___closed__1; static lean_object* l_Lean_Meta_SynthInstance_synth___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; static lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__8; lean_object* l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr; -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2___boxed(lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_4____closed__1() { _start: { @@ -1305,14 +1294,6 @@ x_1 = lean_unsigned_to_nat(0u); return x_1; } } -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1() { _start: { @@ -1330,49 +1311,14 @@ x_1 = l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1; return x_1; } } -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___spec__1(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1; +x_1 = l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1; return x_1; } } -lean_object* l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___spec__1___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMap___at_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___spec__1(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normLevel_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1493,58 +1439,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_MkTableKey_normLevel_ return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_name_eq(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Name_hash(x_2); -x_6 = (size_t)x_5; -x_7 = lean_usize_modn(x_6, x_4); -lean_dec(x_4); -x_8 = lean_array_uget(x_3, x_7); -lean_dec(x_3); -x_9 = l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2(x_2, x_8); -lean_dec(x_8); -lean_dec(x_2); -return x_9; -} -} static lean_object* _init_l_Lean_Meta_SynthInstance_MkTableKey_normLevel___closed__1() { _start: { @@ -1855,7 +1749,7 @@ x_84 = lean_ctor_get(x_3, 2); lean_inc(x_84); lean_inc(x_79); lean_inc(x_83); -x_85 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1(x_83, x_79); +x_85 = l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(x_83, x_79); if (lean_obj_tag(x_85) == 0) { uint8_t x_86; @@ -1876,8 +1770,8 @@ x_92 = l_Lean_mkLevelParam(x_91); x_93 = lean_unsigned_to_nat(1u); x_94 = lean_nat_add(x_82, x_93); lean_dec(x_82); -x_95 = l_Lean_Name_instBEqName; -x_96 = l_Lean_instHashableName; +x_95 = l_Lean_instBEqMVarId; +x_96 = l_Lean_instHashableMVarId; lean_inc(x_92); x_97 = l_Std_HashMap_insert___rarg(x_95, x_96, x_83, x_79, x_92); lean_ctor_set(x_3, 1, x_97); @@ -1898,8 +1792,8 @@ x_101 = l_Lean_mkLevelParam(x_100); x_102 = lean_unsigned_to_nat(1u); x_103 = lean_nat_add(x_82, x_102); lean_dec(x_82); -x_104 = l_Lean_Name_instBEqName; -x_105 = l_Lean_instHashableName; +x_104 = l_Lean_instBEqMVarId; +x_105 = l_Lean_instHashableMVarId; lean_inc(x_101); x_106 = l_Std_HashMap_insert___rarg(x_104, x_105, x_83, x_79, x_101); x_107 = lean_alloc_ctor(0, 3, 0); @@ -1942,16 +1836,6 @@ return x_111; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} lean_object* l_Lean_Meta_SynthInstance_MkTableKey_normExpr_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2217,59 +2101,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_SynthInstance_MkTableKey_normExpr_m return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_name_eq(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Name_hash(x_2); -x_6 = (size_t)x_5; -x_7 = lean_usize_modn(x_6, x_4); -lean_dec(x_4); -x_8 = lean_array_uget(x_3, x_7); -lean_dec(x_3); -x_9 = l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2(x_2, x_8); -lean_dec(x_8); -lean_dec(x_2); -return x_9; -} -} -lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2298,7 +2130,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(x_8, x_2, x_11); +x_12 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -2340,7 +2172,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(x_19, x_2, x_22); +x_23 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -2413,7 +2245,7 @@ x_11 = lean_ctor_get(x_3, 2); lean_inc(x_11); lean_inc(x_6); lean_inc(x_11); -x_12 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(x_11, x_6); +x_12 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_AbstractMVars_abstractExprMVars___spec__1(x_11, x_6); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -2434,8 +2266,8 @@ x_19 = l_Lean_mkFVar(x_18); x_20 = lean_unsigned_to_nat(1u); x_21 = lean_nat_add(x_9, x_20); lean_dec(x_9); -x_22 = l_Lean_Name_instBEqName; -x_23 = l_Lean_instHashableName; +x_22 = l_Lean_instBEqMVarId; +x_23 = l_Lean_instHashableMVarId; lean_inc(x_19); x_24 = l_Std_HashMap_insert___rarg(x_22, x_23, x_11, x_6, x_19); lean_ctor_set(x_3, 2, x_24); @@ -2456,8 +2288,8 @@ x_28 = l_Lean_mkFVar(x_27); x_29 = lean_unsigned_to_nat(1u); x_30 = lean_nat_add(x_9, x_29); lean_dec(x_9); -x_31 = l_Lean_Name_instBEqName; -x_32 = l_Lean_instHashableName; +x_31 = l_Lean_instBEqMVarId; +x_32 = l_Lean_instHashableMVarId; lean_inc(x_28); x_33 = l_Std_HashMap_insert___rarg(x_31, x_32, x_11, x_6, x_28); x_34 = lean_alloc_ctor(0, 3, 0); @@ -2565,7 +2397,7 @@ if (x_57 == 0) lean_object* x_58; lean_object* x_59; uint8_t x_60; x_58 = lean_ctor_get(x_1, 1); lean_inc(x_58); -x_59 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(x_58, x_2, x_3); +x_59 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(x_58, x_2, x_3); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) { @@ -2600,7 +2432,7 @@ lean_inc(x_68); lean_inc(x_67); lean_dec(x_1); lean_inc(x_68); -x_70 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__3(x_68, x_2, x_3); +x_70 = l_List_mapM___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__1(x_68, x_2, x_3); x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); @@ -3181,31 +3013,12 @@ return x_245; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_MkTableKey_normExpr___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} static lean_object* _init_l_Lean_Meta_SynthInstance_mkTableKey___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_SynthInstance_mkTableKey___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_SynthInstance_mkTableKey___closed__1; +x_2 = l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -3217,7 +3030,7 @@ lean_object* l_Lean_Meta_SynthInstance_mkTableKey(lean_object* x_1, lean_object* _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Meta_SynthInstance_mkTableKey___closed__2; +x_3 = l_Lean_Meta_SynthInstance_mkTableKey___closed__1; x_4 = l_Lean_Meta_SynthInstance_MkTableKey_normExpr(x_2, x_1, x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); @@ -3614,7 +3427,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 0); lean_dec(x_11); -x_12 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_12 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -3653,7 +3466,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); -x_22 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_22 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -14235,7 +14048,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); x_2 = l_Lean_Meta_SynthInstance_inferTCGoalsRLAttr___lambda__5___closed__1; -x_3 = l_Lean_Meta_SynthInstance_mkTableKey___closed__1; +x_3 = l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1; x_4 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -16079,7 +15892,7 @@ else lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_dec(x_15); lean_dec(x_13); -x_20 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_4, x_5, x_6, x_16); +x_20 = l_Lean_Meta_mkFreshLevelMVar(x_3, x_4, x_5, x_6, x_16); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -16127,7 +15940,7 @@ else lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_30); lean_dec(x_28); -x_36 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_4, x_5, x_6, x_31); +x_36 = l_Lean_Meta_mkFreshLevelMVar(x_3, x_4, x_5, x_6, x_31); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -21616,8 +21429,6 @@ l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1 = _init_l_ lean_mark_persistent(l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1); l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default = _init_l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default(); lean_mark_persistent(l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default); -l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1 = _init_l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1(); -lean_mark_persistent(l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default___closed__1); l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default = _init_l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default(); lean_mark_persistent(l_Lean_Meta_SynthInstance_MkTableKey_State_emap___default); l_Lean_Meta_SynthInstance_MkTableKey_normLevel___closed__1 = _init_l_Lean_Meta_SynthInstance_MkTableKey_normLevel___closed__1(); @@ -21626,8 +21437,6 @@ l_Lean_Meta_SynthInstance_MkTableKey_normLevel___closed__2 = _init_l_Lean_Meta_S lean_mark_persistent(l_Lean_Meta_SynthInstance_MkTableKey_normLevel___closed__2); l_Lean_Meta_SynthInstance_mkTableKey___closed__1 = _init_l_Lean_Meta_SynthInstance_mkTableKey___closed__1(); lean_mark_persistent(l_Lean_Meta_SynthInstance_mkTableKey___closed__1); -l_Lean_Meta_SynthInstance_mkTableKey___closed__2 = _init_l_Lean_Meta_SynthInstance_mkTableKey___closed__2(); -lean_mark_persistent(l_Lean_Meta_SynthInstance_mkTableKey___closed__2); l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__1 = _init_l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__1(); lean_mark_persistent(l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__1); l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__2 = _init_l_Lean_Meta_SynthInstance_instInhabitedAnswer___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Apply.c b/stage0/stdlib/Lean/Meta/Tactic/Apply.c index a0f586ec4b..3a31a6b69b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Apply.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Apply.c @@ -17,6 +17,7 @@ lean_object* l_Lean_Meta_ApplyNewGoals_noConfusion___rarg(uint8_t, uint8_t, lean size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Meta_applyRefl___lambda__1___closed__3; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_FindMVar_main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(lean_object*, lean_object*, lean_object*); @@ -144,7 +145,6 @@ lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_applyRefl_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Meta_exfalso_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3575,7 +3575,7 @@ lean_object* l_Lean_Meta_applyRefl___lambda__1(lean_object* x_1, lean_object* x_ _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_7 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); @@ -3797,7 +3797,7 @@ lean_object* l_Lean_Meta_exfalso___lambda__1(lean_object* x_1, lean_object* x_2, _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_7 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assert.c b/stage0/stdlib/Lean/Meta/Tactic/Assert.c index 257ca85c3b..b072279e52 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assert.c @@ -85,6 +85,7 @@ lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_obje lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_assertHypotheses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1; +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_Lean_Meta_assertExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -100,7 +101,6 @@ lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean static lean_object* l_Lean_Meta_define___closed__2; lean_object* l_Lean_Meta_assertExt___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; static lean_object* l_Lean_Meta_define___closed__1; lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_assertAfter___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -1293,7 +1293,7 @@ lean_dec(x_4); x_10 = lean_nat_add(x_9, x_8); x_11 = lean_nat_sub(x_3, x_10); lean_dec(x_10); -x_12 = l_Lean_instInhabitedName; +x_12 = l_Lean_instInhabitedFVarId; x_13 = lean_array_get(x_12, x_1, x_11); x_14 = lean_array_get(x_12, x_2, x_11); lean_dec(x_11); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 950b01ed6f..1c256d2bd4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -160,6 +160,7 @@ lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lea static lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(lean_object*); static lean_object* l_List_forM___at_Lean_Meta_induction___spec__1___closed__2; @@ -197,7 +198,6 @@ lean_object* l_Lean_Meta_induction_match__3___rarg(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__3; -extern lean_object* l_Lean_instInhabitedName; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_induction___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1041,7 +1041,7 @@ lean_dec(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_16 = l_Lean_instInhabitedName; +x_16 = l_Lean_instInhabitedFVarId; x_17 = lean_array_get(x_16, x_1, x_13); x_18 = lean_nat_sub(x_13, x_3); lean_dec(x_13); @@ -4132,7 +4132,7 @@ lean_inc(x_9); lean_dec(x_5); x_10 = l_Lean_Expr_fvarId_x21(x_7); lean_dec(x_7); -x_11 = l_Lean_instInhabitedName; +x_11 = l_Lean_instInhabitedFVarId; x_12 = lean_array_get(x_11, x_1, x_9); x_13 = l_Lean_mkFVar(x_12); x_14 = l_Lean_Meta_FVarSubst_insert(x_8, x_10, x_13); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Intro.c index 9c5d8a9a69..032f6b0640 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Intro.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Intro.c @@ -69,7 +69,6 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_612__ static lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -89,6 +88,7 @@ lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg___ lean_object* l_Lean_Meta_intros(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshFVarId___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; uint8_t l_Lean_Expr_isForall(lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,6 +102,7 @@ lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_ lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Meta_intro_match__1(lean_object*); @@ -110,7 +111,6 @@ lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_getIntrosSize_match lean_object* l_Lean_Meta_getHygienicIntro___boxed(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(size_t, size_t, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_instInhabitedName; lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_getIntrosSize___boxed(lean_object*); lean_object* l_Lean_Meta_getHygienicIntro(lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -594,7 +594,7 @@ lean_dec(x_19); x_24 = l_Lean_Expr_headBeta(x_23); x_25 = l_Lean_Meta_instMonadMetaM; x_26 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___closed__5; -x_27 = l_Lean_mkFreshId___rarg(x_25, x_26); +x_27 = l_Lean_mkFreshFVarId___rarg(x_25, x_26); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -737,7 +737,7 @@ lean_dec(x_55); lean_dec(x_53); x_59 = l_Lean_Meta_instMonadMetaM; x_60 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___closed__5; -x_61 = l_Lean_mkFreshId___rarg(x_59, x_60); +x_61 = l_Lean_mkFreshFVarId___rarg(x_59, x_60); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -1825,7 +1825,7 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_16 = lean_ctor_get(x_14, 0); -x_17 = l_Lean_instInhabitedName; +x_17 = l_Lean_instInhabitedFVarId; x_18 = lean_unsigned_to_nat(0u); x_19 = lean_array_get(x_17, x_16, x_18); lean_dec(x_16); @@ -1840,7 +1840,7 @@ x_21 = lean_ctor_get(x_14, 1); lean_inc(x_21); lean_inc(x_20); lean_dec(x_14); -x_22 = l_Lean_instInhabitedName; +x_22 = l_Lean_instInhabitedFVarId; x_23 = lean_unsigned_to_nat(0u); x_24 = lean_array_get(x_22, x_20, x_23); lean_dec(x_20); @@ -1871,7 +1871,7 @@ if (lean_is_exclusive(x_26)) { lean_dec_ref(x_26); x_30 = lean_box(0); } -x_31 = l_Lean_instInhabitedName; +x_31 = l_Lean_instInhabitedFVarId; x_32 = lean_unsigned_to_nat(0u); x_33 = lean_array_get(x_31, x_28, x_32); lean_dec(x_28); @@ -1933,7 +1933,7 @@ if (x_14 == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_15 = lean_ctor_get(x_13, 0); -x_16 = l_Lean_instInhabitedName; +x_16 = l_Lean_instInhabitedFVarId; x_17 = lean_unsigned_to_nat(0u); x_18 = lean_array_get(x_16, x_15, x_17); lean_dec(x_15); @@ -1948,7 +1948,7 @@ x_20 = lean_ctor_get(x_13, 1); lean_inc(x_20); lean_inc(x_19); lean_dec(x_13); -x_21 = l_Lean_instInhabitedName; +x_21 = l_Lean_instInhabitedFVarId; x_22 = lean_unsigned_to_nat(0u); x_23 = lean_array_get(x_21, x_19, x_22); lean_dec(x_19); @@ -1979,7 +1979,7 @@ if (lean_is_exclusive(x_25)) { lean_dec_ref(x_25); x_29 = lean_box(0); } -x_30 = l_Lean_instInhabitedName; +x_30 = l_Lean_instInhabitedFVarId; x_31 = lean_unsigned_to_nat(0u); x_32 = lean_array_get(x_30, x_27, x_31); lean_dec(x_27); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Replace.c b/stage0/stdlib/Lean/Meta/Tactic/Replace.c index 589da248cb..a63404b74c 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Replace.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Replace.c @@ -35,6 +35,7 @@ static lean_object* l_Lean_Meta_changeLocalDecl___closed__3; static lean_object* l_Lean_Meta_change___lambda__2___closed__4; lean_object* l_Lean_Meta_replaceLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl_match__2(lean_object*); +lean_object* l_Lean_Meta_replaceLocalDeclDefEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_modifyTargetEqLHS_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_replaceTargetDefEq___closed__2; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); @@ -63,6 +64,7 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_change___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__1; +lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_replaceTargetDefEq___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -70,8 +72,11 @@ extern lean_object* l_Lean_Expr_instHashableExpr; lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_change___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_replaceTargetEq___lambda__1___closed__1; +lean_object* l_Lean_Meta_replaceLocalDeclDefEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_modifyTargetEqLHS_match__1(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceLocalDecl_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_replaceLocalDecl_findMaxFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); @@ -81,9 +86,11 @@ lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_ lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l_Lean_Meta_replaceTargetEq___lambda__1___closed__2; lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_modifyTargetEqLHS___lambda__1___closed__3; lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqFVarId; lean_object* l_Lean_Meta_changeLocalDecl(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,6 +101,7 @@ lean_object* l_Lean_Meta_change___lambda__2(lean_object*, lean_object*, uint8_t, lean_object* l_Lean_Meta_replaceLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__2; lean_object* l_Lean_Meta_changeLocalDecl_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_replaceLocalDeclDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_modifyTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -101,18 +109,22 @@ uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instHashableFVarId; lean_object* l_Lean_Meta_change(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; static lean_object* l_Lean_Meta_replaceTargetEq___closed__1; lean_object* l_Lean_Meta_replaceLocalDecl_findMaxFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__5; static lean_object* l_Lean_Meta_replaceTargetEq___closed__2; static lean_object* l_Lean_Meta_modifyTarget___closed__2; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__3; +lean_object* lean_local_ctx_find(lean_object*, lean_object*); static lean_object* l_Lean_Meta_modifyTarget___closed__1; static lean_object* l_Lean_Meta_replaceTargetEq___lambda__1___closed__4; lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1880,6 +1892,522 @@ x_11 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lea return x_11; } } +lean_object* l_Lean_Meta_replaceLocalDeclDefEq___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_1); +x_9 = l_Lean_Meta_getMVarDecl(x_1, x_4, x_5, x_6, x_7, x_8); +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; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 2); +lean_inc(x_13); +x_14 = lean_expr_eqv(x_2, x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_free_object(x_9); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +x_16 = l_Lean_Meta_getLocalInstances(x_4, x_5, x_6, x_7, x_12); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_15); +x_19 = lean_local_ctx_find(x_15, x_3); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_2); +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_23 = lean_ctor_get(x_11, 0); +lean_inc(x_23); +lean_dec(x_11); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Lean_Meta_mkFreshExprMVarAt(x_15, x_20, x_13, x_22, x_23, x_24, x_4, x_5, x_6, x_7, x_21); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_26); +x_28 = l_Lean_Meta_assignExprMVar(x_1, x_26, x_4, x_5, x_6, x_7, x_27); +lean_dec(x_4); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = l_Lean_Expr_mvarId_x21(x_26); +lean_dec(x_26); +lean_ctor_set(x_28, 0, x_31); +return x_28; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +x_33 = l_Lean_Expr_mvarId_x21(x_26); +lean_dec(x_26); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_15); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_15, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_15, 0); +lean_dec(x_37); +x_38 = !lean_is_exclusive(x_19); +if (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; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_39 = lean_ctor_get(x_19, 0); +x_40 = lean_ctor_get(x_16, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_16, 1); +lean_inc(x_41); +lean_dec(x_16); +x_42 = l_Lean_LocalDecl_setType(x_39, x_2); +x_43 = l_Lean_LocalDecl_fvarId(x_42); +x_44 = l_Lean_instBEqFVarId; +x_45 = l_Lean_instHashableFVarId; +lean_inc(x_42); +x_46 = l_Std_PersistentHashMap_insert___rarg(x_44, x_45, x_17, x_43, x_42); +x_47 = l_Lean_LocalDecl_index(x_42); +lean_ctor_set(x_19, 0, x_42); +x_48 = l_Std_PersistentArray_set___rarg(x_18, x_47, x_19); +lean_dec(x_47); +lean_ctor_set(x_15, 1, x_48); +lean_ctor_set(x_15, 0, x_46); +x_49 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_50 = lean_ctor_get(x_11, 0); +lean_inc(x_50); +lean_dec(x_11); +x_51 = lean_unsigned_to_nat(0u); +x_52 = l_Lean_Meta_mkFreshExprMVarAt(x_15, x_40, x_13, x_49, x_50, x_51, x_4, x_5, x_6, x_7, x_41); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +lean_inc(x_53); +x_55 = l_Lean_Meta_assignExprMVar(x_1, x_53, x_4, x_5, x_6, x_7, x_54); +lean_dec(x_4); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_57); +x_58 = l_Lean_Expr_mvarId_x21(x_53); +lean_dec(x_53); +lean_ctor_set(x_55, 0, x_58); +return x_55; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_55, 1); +lean_inc(x_59); +lean_dec(x_55); +x_60 = l_Lean_Expr_mvarId_x21(x_53); +lean_dec(x_53); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_62 = lean_ctor_get(x_19, 0); +lean_inc(x_62); +lean_dec(x_19); +x_63 = lean_ctor_get(x_16, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_16, 1); +lean_inc(x_64); +lean_dec(x_16); +x_65 = l_Lean_LocalDecl_setType(x_62, x_2); +x_66 = l_Lean_LocalDecl_fvarId(x_65); +x_67 = l_Lean_instBEqFVarId; +x_68 = l_Lean_instHashableFVarId; +lean_inc(x_65); +x_69 = l_Std_PersistentHashMap_insert___rarg(x_67, x_68, x_17, x_66, x_65); +x_70 = l_Lean_LocalDecl_index(x_65); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_65); +x_72 = l_Std_PersistentArray_set___rarg(x_18, x_70, x_71); +lean_dec(x_70); +lean_ctor_set(x_15, 1, x_72); +lean_ctor_set(x_15, 0, x_69); +x_73 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_74 = lean_ctor_get(x_11, 0); +lean_inc(x_74); +lean_dec(x_11); +x_75 = lean_unsigned_to_nat(0u); +x_76 = l_Lean_Meta_mkFreshExprMVarAt(x_15, x_63, x_13, x_73, x_74, x_75, x_4, x_5, x_6, x_7, x_64); +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); +lean_inc(x_77); +x_79 = l_Lean_Meta_assignExprMVar(x_1, x_77, x_4, x_5, x_6, x_7, x_78); +lean_dec(x_4); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_81 = x_79; +} else { + lean_dec_ref(x_79); + x_81 = lean_box(0); +} +x_82 = l_Lean_Expr_mvarId_x21(x_77); +lean_dec(x_77); +if (lean_is_scalar(x_81)) { + x_83 = lean_alloc_ctor(0, 2, 0); +} else { + x_83 = x_81; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_80); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t 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; +lean_dec(x_15); +x_84 = lean_ctor_get(x_19, 0); +lean_inc(x_84); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + x_85 = x_19; +} else { + lean_dec_ref(x_19); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_16, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_16, 1); +lean_inc(x_87); +lean_dec(x_16); +x_88 = l_Lean_LocalDecl_setType(x_84, x_2); +x_89 = l_Lean_LocalDecl_fvarId(x_88); +x_90 = l_Lean_instBEqFVarId; +x_91 = l_Lean_instHashableFVarId; +lean_inc(x_88); +x_92 = l_Std_PersistentHashMap_insert___rarg(x_90, x_91, x_17, x_89, x_88); +x_93 = l_Lean_LocalDecl_index(x_88); +if (lean_is_scalar(x_85)) { + x_94 = lean_alloc_ctor(1, 1, 0); +} else { + x_94 = x_85; +} +lean_ctor_set(x_94, 0, x_88); +x_95 = l_Std_PersistentArray_set___rarg(x_18, x_93, x_94); +lean_dec(x_93); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_92); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_ctor_get_uint8(x_11, sizeof(void*)*7); +x_98 = lean_ctor_get(x_11, 0); +lean_inc(x_98); +lean_dec(x_11); +x_99 = lean_unsigned_to_nat(0u); +x_100 = l_Lean_Meta_mkFreshExprMVarAt(x_96, x_86, x_13, x_97, x_98, x_99, x_4, x_5, x_6, x_7, x_87); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +lean_inc(x_101); +x_103 = l_Lean_Meta_assignExprMVar(x_1, x_101, x_4, x_5, x_6, x_7, x_102); +lean_dec(x_4); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + x_105 = lean_box(0); +} +x_106 = l_Lean_Expr_mvarId_x21(x_101); +lean_dec(x_101); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_105; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; +} +} +} +else +{ +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_9, 0, x_1); +return x_9; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_108 = lean_ctor_get(x_9, 0); +x_109 = lean_ctor_get(x_9, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_9); +x_110 = lean_ctor_get(x_108, 2); +lean_inc(x_110); +x_111 = lean_expr_eqv(x_2, x_110); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_112 = lean_ctor_get(x_4, 1); +lean_inc(x_112); +x_113 = l_Lean_Meta_getLocalInstances(x_4, x_5, x_6, x_7, x_109); +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +lean_inc(x_112); +x_116 = lean_local_ctx_find(x_112, x_3); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; uint8_t 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; lean_object* x_128; lean_object* x_129; +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_2); +x_117 = lean_ctor_get(x_113, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); +lean_dec(x_113); +x_119 = lean_ctor_get_uint8(x_108, sizeof(void*)*7); +x_120 = lean_ctor_get(x_108, 0); +lean_inc(x_120); +lean_dec(x_108); +x_121 = lean_unsigned_to_nat(0u); +x_122 = l_Lean_Meta_mkFreshExprMVarAt(x_112, x_117, x_110, x_119, x_120, x_121, x_4, x_5, x_6, x_7, x_118); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +lean_inc(x_123); +x_125 = l_Lean_Meta_assignExprMVar(x_1, x_123, x_4, x_5, x_6, x_7, x_124); +lean_dec(x_4); +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_127 = x_125; +} else { + lean_dec_ref(x_125); + x_127 = lean_box(0); +} +x_128 = l_Lean_Expr_mvarId_x21(x_123); +lean_dec(x_123); +if (lean_is_scalar(x_127)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_127; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_126); +return x_129; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; 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_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_130 = x_112; +} else { + lean_dec_ref(x_112); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_116, 0); +lean_inc(x_131); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + x_132 = x_116; +} else { + lean_dec_ref(x_116); + x_132 = lean_box(0); +} +x_133 = lean_ctor_get(x_113, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_113, 1); +lean_inc(x_134); +lean_dec(x_113); +x_135 = l_Lean_LocalDecl_setType(x_131, x_2); +x_136 = l_Lean_LocalDecl_fvarId(x_135); +x_137 = l_Lean_instBEqFVarId; +x_138 = l_Lean_instHashableFVarId; +lean_inc(x_135); +x_139 = l_Std_PersistentHashMap_insert___rarg(x_137, x_138, x_114, x_136, x_135); +x_140 = l_Lean_LocalDecl_index(x_135); +if (lean_is_scalar(x_132)) { + x_141 = lean_alloc_ctor(1, 1, 0); +} else { + x_141 = x_132; +} +lean_ctor_set(x_141, 0, x_135); +x_142 = l_Std_PersistentArray_set___rarg(x_115, x_140, x_141); +lean_dec(x_140); +if (lean_is_scalar(x_130)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_130; +} +lean_ctor_set(x_143, 0, x_139); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_ctor_get_uint8(x_108, sizeof(void*)*7); +x_145 = lean_ctor_get(x_108, 0); +lean_inc(x_145); +lean_dec(x_108); +x_146 = lean_unsigned_to_nat(0u); +x_147 = l_Lean_Meta_mkFreshExprMVarAt(x_143, x_133, x_110, x_144, x_145, x_146, x_4, x_5, x_6, x_7, x_134); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +lean_inc(x_148); +x_150 = l_Lean_Meta_assignExprMVar(x_1, x_148, x_4, x_5, x_6, x_7, x_149); +lean_dec(x_4); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +x_153 = l_Lean_Expr_mvarId_x21(x_148); +lean_dec(x_148); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +return x_154; +} +} +else +{ +lean_object* x_155; +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_1); +lean_ctor_set(x_155, 1, x_109); +return x_155; +} +} +} +else +{ +uint8_t x_156; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_156 = !lean_is_exclusive(x_9); +if (x_156 == 0) +{ +return x_9; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_9, 0); +x_158 = lean_ctor_get(x_9, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_9); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +} +} +lean_object* l_Lean_Meta_replaceLocalDeclDefEq(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: +{ +lean_object* x_9; lean_object* x_10; +lean_inc(x_1); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_replaceLocalDeclDefEq___lambda__1___boxed), 8, 3); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_3); +lean_closure_set(x_9, 2, x_2); +x_10 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_1, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +lean_object* l_Lean_Meta_replaceLocalDeclDefEq___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_replaceLocalDeclDefEq___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} lean_object* l_Lean_Meta_change___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c index 654200dcbb..ca7b53e0b3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c @@ -19,11 +19,15 @@ static lean_object* l_Lean_Meta_instInhabitedCongrLemma___closed__2; lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510_(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249_(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5; lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__8(lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__13; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__11; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3(lean_object*, lean_object*); @@ -35,46 +39,46 @@ static lean_object* l_Lean_Meta_instReprCongrLemma___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__19; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Meta_mkCongrLemma_match__2(lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___boxed(lean_object**); static lean_object* l_Lean_Meta_instInhabitedCongrLemma___closed__1; lean_object* l_Lean_Meta_mkCongrLemma_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_addCongrLemmaEntry(lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1; static lean_object* l_Lean_Meta_congrExtension___closed__6; lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__5___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7; lean_object* l_Lean_Meta_getCongrLemmas___rarg(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1; lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_mkCongrLemma___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50_(lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__2; -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_congrExtension___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__13(lean_object*); lean_object* l_Lean_Meta_instInhabitedCongrLemma; lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__12___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrLemma_match__4(lean_object*); lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_toList___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__1(lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_congrExtension___closed__8; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__31; static lean_object* l_Lean_Meta_congrExtension___closed__9; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__6; lean_object* l_Lean_Meta_CongrLemmas_get(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__1; static lean_object* l_Lean_Meta_congrExtension___closed__3; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1; lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); @@ -82,24 +86,26 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_r lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext_getExprAssignmentDomain___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instHashableName; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__27; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__8; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrLemma(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17; lean_object* l_Std_mkHashMap___at_Lean_Meta_CongrLemmas_lemmas___default___spec__1___boxed(lean_object*); lean_object* l_Lean_Meta_mkCongrLemma_match__5___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__8; lean_object* l_Lean_Meta_mkCongrLemma_onlyMVarsAt___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8; lean_object* l_Lean_Expr_appFn_x21(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__17; static lean_object* l_Lean_Meta_mkCongrLemma___closed__4; static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__1___closed__2; lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_mkCongrLemma___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -107,58 +113,56 @@ lean_object* l_Lean_Meta_congrExtension___lambda__5___boxed(lean_object*, lean_o static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__4; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__9; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__3___boxed(lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7; lean_object* l_Std_Format_joinSep___at_instReprProd___spec__1(lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2; lean_object* l_Lean_Meta_instReprCongrLemmas; lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__1(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__2(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1; +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4; static lean_object* l_Lean_Meta_congrExtension___closed__5; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__10; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__4; uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__2; static lean_object* l_Lean_Meta_congrExtension___lambda__1___closed__2; extern lean_object* l_Lean_levelZero; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__4(lean_object*); static lean_object* l_Lean_Meta_congrExtension___closed__2; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__15; static lean_object* l_Lean_Meta_congrExtension___closed__12; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4; +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12___boxed(lean_object**); lean_object* l_Lean_Meta_congrExtension___lambda__7(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__6; lean_object* l_Lean_Meta_mkCongrLemma_match__5(lean_object*); extern lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5; size_t l_UInt64_toUSize(uint64_t); uint8_t l_Lean_Meta_mkCongrLemma_onlyMVarsAt(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__14; -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__13; lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__23; lean_object* l_Lean_getAttrParamOptPrio(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrLemma_match__1___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5; -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3; lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____boxed(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2; +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6; lean_object* l_Std_Format_joinSep___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__17(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_Meta_congrExtension___closed__13; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__3; @@ -169,18 +173,19 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducin lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__12(lean_object*); lean_object* l_Std_AssocList_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2; lean_object* l_Lean_ScopedEnvExtension_addLocalEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_addCongrLemmaEntry_insert_match__1(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__2; +lean_object* l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrLemma_match__3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__7; +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_Lean_Meta_congrExtension___lambda__1___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__5; lean_object* l_Lean_throwError___at_Lean_Meta_mkCongrLemma___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__2(lean_object*); @@ -188,9 +193,10 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_r lean_object* l_Lean_Meta_congrExtension___lambda__1(lean_object*); static lean_object* l_Lean_Meta_CongrLemmas_lemmas___default___closed__1; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__28; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__14; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__12; lean_object* l_Lean_SMap_insert___at_Lean_Meta_addCongrLemmaEntry___spec__1(lean_object*, lean_object*, lean_object*); @@ -201,10 +207,13 @@ lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1 static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__6; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4; lean_object* l_Lean_Meta_CongrLemmas_get_match__1(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__1; +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__25; uint64_t l_Lean_Name_hash(lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkCongrLemma___closed__2; lean_object* l_Nat_repr(lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,23 +223,21 @@ lean_object* l_Lean_throwError___at_Lean_Meta_mkCongrLemma___spec__2___boxed(lea static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3___closed__5; static lean_object* l_Lean_Meta_CongrLemmas_lemmas___default___closed__4; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4; lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1; extern lean_object* l_Lean_Expr_instHashableExpr; static lean_object* l_Lean_Meta_CongrLemmas_lemmas___default___closed__2; -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8; static lean_object* l_Lean_Meta_congrExtension___lambda__1___closed__3; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__2; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__21; lean_object* l_Std_AssocList_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__3(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249____closed__2; lean_object* lean_array_to_list(lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6; static lean_object* l_Lean_Meta_mkCongrLemma___closed__1; lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__3; +static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instReprCongrLemma; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__15; @@ -240,6 +247,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_r static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__30; lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__8___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__3(lean_object*); size_t lean_usize_modn(size_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__3; @@ -248,14 +256,15 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_Cong lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__7; -static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3; -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__1; static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__5; +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__3; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7; lean_object* l_Lean_Meta_mkCongrLemma_match__3(lean_object*); lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249____closed__4; @@ -263,87 +272,83 @@ lean_object* l_Lean_SMap_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0 lean_object* l_Lean_Meta_mkCongrLemma_onlyMVarsAt___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__10; -extern lean_object* l_Lean_NameSet_empty; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__7; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__22; static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__7; lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3___closed__4; static lean_object* l_Lean_Meta_CongrLemmas_lemmas___default___closed__3; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__6___boxed(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CongrLemmas_lemmas___default; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__4(lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__1___closed__3; static lean_object* l_Lean_Meta_CongrLemmas_lemmas___default___closed__5; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__8; extern lean_object* l_Lean_Expr_FindImpl_initCache; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249____closed__5; static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__9; lean_object* l_Lean_Meta_addCongrLemma(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__11(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Format_joinSep___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__16(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_congrExtension___closed__1; uint8_t l_Lean_Expr_isMVar(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249____closed__3; -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___boxed(lean_object**); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__7; uint8_t lean_nat_dec_le(lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1; static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__16; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addCongrLemma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__12; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__13___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__7(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14___closed__1; lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addCongrLemma___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2; lean_object* l_Lean_Meta_getCongrLemmas(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__24; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addCongrLemma___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3___closed__2; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3; lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117_(lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__6(lean_object*); lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkCongrLemma___closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addCongrLemmaEntry_insert(lean_object*, lean_object*); static lean_object* l_Lean_SMap_toList___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__1___closed__1; static lean_object* l_Lean_Meta_congrExtension___closed__7; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2; -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10___boxed(lean_object**); static lean_object* l_Lean_Meta_instReprCongrLemmas___closed__1; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedCongrLemmas___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__11; lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__5(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6; lean_object* l_Lean_Meta_addCongrLemmaEntry_insert_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CongrLemmas_get_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -364,37 +369,36 @@ lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Met static lean_object* l_Lean_Meta_congrExtension___closed__10; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__10___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedCongrLemmas; uint8_t l_Lean_Meta_mkCongrLemma_onlyMVarsAt___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__4___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__20; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__11; lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____spec__1(lean_object*); -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__10; +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Format_joinSep___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__12; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__3; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_congrExtension___lambda__7___boxed(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____closed__5; lean_object* l_Lean_Meta_congrExtension; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__6(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__3___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__11; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__3(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_getCongrLemmas___spec__3___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__8; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1; uint32_t lean_uint32_of_nat(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_50____closed__26; @@ -406,15 +410,18 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__9; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_249____closed__1; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__1; lean_object* lean_nat_to_int(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____closed__10; lean_object* l_Lean_Meta_mkCongrLemma_match__2___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2; uint8_t l_Lean_Expr_isSort(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2; lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6; +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_117____spec__14(lean_object*); static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_getCongrLemmas___spec__1___closed__4; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -3288,6 +3295,50 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrLemma_match__5___rarg), 2, 0 return x_2; } } +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} uint8_t l_Lean_Meta_mkCongrLemma_onlyMVarsAt___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -3301,11 +3352,11 @@ return x_4; } else { -lean_object* x_5; uint8_t x_6; +lean_object* x_5; lean_object* x_6; x_5 = l_Lean_Expr_mvarId_x21(x_2); -x_6 = l_Lean_NameSet_contains(x_1, x_5); +x_6 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_1, x_5); lean_dec(x_5); -if (x_6 == 0) +if (lean_obj_tag(x_6) == 0) { uint8_t x_7; x_7 = 1; @@ -3314,6 +3365,7 @@ return x_7; else { uint8_t x_8; +lean_dec(x_6); x_8 = 0; return x_8; } @@ -3347,6 +3399,16 @@ return x_9; } } } +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_Meta_mkCongrLemma_onlyMVarsAt___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -3477,7 +3539,7 @@ _start: lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = l_Lean_Expr_mvarId_x21(x_1); x_10 = lean_box(0); -x_11 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_2, x_9, x_10); +x_11 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_2, x_9, x_10); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -3512,7 +3574,98 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = x_5 < x_4; +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_array_uget(x_3, x_5); +x_15 = l_Lean_Expr_isSort(x_14); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = l_Lean_Expr_isMVar(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_14); +lean_dec(x_6); +x_17 = l_Lean_indentExpr(x_1); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__2; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__3; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_21, x_7, x_8, x_9, x_10, x_11); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +return x_22; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_22); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; +x_27 = lean_box(0); +x_28 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___lambda__1(x_14, x_6, x_27, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_14); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = 1; +x_33 = x_5 + x_32; +x_5 = x_33; +x_6 = x_31; +x_11 = x_30; +goto _start; +} +} +else +{ +size_t x_35; size_t x_36; +lean_dec(x_14); +x_35 = 1; +x_36 = x_5 + x_35; +x_5 = x_36; +goto _start; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -3603,7 +3756,7 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -3617,15 +3770,15 @@ lean_ctor_set(x_11, 1, x_7); return x_11; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___lambda__1___boxed), 7, 0); +x_1 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___lambda__1___boxed), 7, 0); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2() { _start: { lean_object* x_1; @@ -3633,16 +3786,16 @@ x_1 = lean_mk_string("invalid 'congr' theorem, argument #"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4() { _start: { lean_object* x_1; @@ -3650,16 +3803,16 @@ x_1 = lean_mk_string(" of parameter #"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6() { _start: { lean_object* x_1; @@ -3667,16 +3820,16 @@ x_1 = lean_mk_string(" contains unresolved parameter"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -3711,7 +3864,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1; +x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1; lean_inc(x_2); lean_inc(x_16); x_19 = l_Lean_Meta_mkCongrLemma_onlyMVarsAt(x_16, x_2); @@ -3727,11 +3880,11 @@ x_23 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_23, 0, x_22); x_24 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_24, 0, x_23); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3; +x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -3744,7 +3897,7 @@ lean_ctor_set(x_32, 0, x_31); x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_28); lean_ctor_set(x_33, 1, x_32); -x_34 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7; +x_34 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_33); lean_ctor_set(x_35, 1, x_34); @@ -3907,7 +4060,7 @@ return x_66; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1() { _start: { lean_object* x_1; @@ -3915,16 +4068,16 @@ x_1 = lean_mk_string("invalid 'congr' theorem, parameter #"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3() { _start: { lean_object* x_1; @@ -3932,16 +4085,16 @@ x_1 = lean_mk_string(" is not a valid hypothesis, the right-hand-side argument i return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -3972,11 +4125,11 @@ x_19 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_19, 0, x_18); x_20 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_20, 0, x_19); -x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; +x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2; x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4; +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -4021,7 +4174,7 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { 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; @@ -4044,7 +4197,7 @@ lean_ctor_set(x_17, 1, x_10); return x_17; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -4053,13 +4206,13 @@ x_2 = l_Lean_mkSort(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { 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; size_t x_19; lean_object* x_20; lean_object* x_21; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Expr_getAppNumArgsAux(x_1, x_11); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_inc(x_12); x_14 = lean_mk_array(x_12, x_13); x_15 = lean_unsigned_to_nat(1u); @@ -4071,7 +4224,7 @@ x_18 = lean_array_get_size(x_17); x_19 = lean_usize_of_nat(x_18); lean_dec(x_18); x_20 = lean_box(0); -x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(x_2, x_1, x_17, x_19, x_3, x_20, x_6, x_7, x_8, x_9, x_10); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(x_2, x_1, x_17, x_19, x_3, x_20, x_6, x_7, x_8, x_9, x_10); lean_dec(x_17); if (lean_obj_tag(x_21) == 0) { @@ -4126,7 +4279,7 @@ return x_31; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -4134,29 +4287,29 @@ x_1 = lean_mk_string(" is not a valid hypothesis, the right-hand-side head was a return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; uint8_t x_13; +lean_object* x_12; lean_object* x_13; lean_dec(x_6); x_12 = l_Lean_Expr_mvarId_x21(x_4); -x_13 = l_Lean_NameSet_contains(x_5, x_12); +x_13 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_5, x_12); lean_dec(x_12); lean_dec(x_5); -if (x_13 == 0) +if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_box(0); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2(x_1, x_2, x_3, x_4, x_14, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2(x_1, x_2, x_3, x_4, x_14, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4166,6 +4319,7 @@ return x_15; 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; 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; uint8_t x_30; +lean_dec(x_13); lean_dec(x_4); x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_add(x_2, x_16); @@ -4174,11 +4328,11 @@ x_19 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_19, 0, x_18); x_20 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_20, 0, x_19); -x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; +x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2; x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2; +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -4216,7 +4370,7 @@ return x_33; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -4224,16 +4378,16 @@ x_1 = lean_mk_string(" is not a valid hypothesis, the right-hand-side head is no return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -4252,11 +4406,11 @@ x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; +x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2; +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -4296,12 +4450,12 @@ else { lean_object* x_31; lean_object* x_32; x_31 = lean_box(0); -x_32 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3(x_1, x_2, x_3, x_11, x_4, x_31, x_6, x_7, x_8, x_9, x_10); +x_32 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3(x_1, x_2, x_3, x_11, x_4, x_31, x_6, x_7, x_8, x_9, x_10); return x_32; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -4309,16 +4463,16 @@ x_1 = lean_mk_string(" is not a valid hypothesis, the left-hand-side contains un return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -4358,7 +4512,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_3); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4(x_2, x_3, x_5, x_20, x_4, x_21, x_7, x_8, x_9, x_10, x_11); +x_22 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(x_2, x_3, x_5, x_20, x_4, x_21, x_7, x_8, x_9, x_10, x_11); lean_dec(x_5); if (lean_obj_tag(x_22) == 0) { @@ -4381,11 +4535,11 @@ x_28 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_28, 0, x_27); x_29 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_29, 0, x_28); -x_30 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2; +x_30 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2; +x_32 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -4426,7 +4580,7 @@ else lean_object* x_43; lean_object* x_44; lean_dec(x_17); x_43 = lean_box(0); -x_44 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4(x_18, x_2, x_4, x_3, x_43, x_7, x_8, x_9, x_10, x_23); +x_44 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4(x_18, x_2, x_4, x_3, x_43, x_7, x_8, x_9, x_10, x_23); return x_44; } } @@ -4462,7 +4616,1345 @@ return x_48; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(lean_object* x_1, size_t x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = x_6 < x_5; +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_15 = lean_array_uget(x_4, x_6); +x_25 = lean_ctor_get(x_7, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = !lean_is_exclusive(x_7); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_7, 0); +x_30 = lean_ctor_get(x_7, 1); +lean_dec(x_30); +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_25, 0); +x_33 = lean_ctor_get(x_25, 1); +lean_dec(x_33); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_35 = lean_ctor_get(x_26, 1); +x_36 = lean_ctor_get(x_26, 0); +lean_dec(x_36); +x_37 = lean_ctor_get(x_27, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_27, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_27, 2); +lean_inc(x_39); +x_40 = lean_nat_dec_lt(x_38, x_39); +if (x_40 == 0) +{ +lean_object* x_41; +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_15); +x_41 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_41, 0, x_7); +x_16 = x_41; +x_17 = x_12; +goto block_24; +} +else +{ +uint8_t x_42; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_7); +x_42 = !lean_is_exclusive(x_27); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_43 = lean_ctor_get(x_27, 2); +lean_dec(x_43); +x_44 = lean_ctor_get(x_27, 1); +lean_dec(x_44); +x_45 = lean_ctor_get(x_27, 0); +lean_dec(x_45); +x_46 = lean_array_fget(x_37, x_38); +x_47 = lean_unbox(x_46); +lean_dec(x_46); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_add(x_38, x_48); +lean_dec(x_38); +lean_ctor_set(x_27, 1, x_49); +x_50 = l_Lean_BinderInfo_isExplicit(x_47); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_15); +x_51 = lean_box(0); +x_52 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_27, x_29, x_32, x_35, x_51, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_16 = x_53; +x_17 = x_54; +goto block_24; +} +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = l_Lean_Expr_mvarId_x21(x_15); +x_56 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_35, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_57 = lean_infer_type(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_box_usize(x_3); +lean_inc(x_35); +lean_inc(x_29); +lean_inc(x_1); +x_61 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); +lean_closure_set(x_61, 0, x_1); +lean_closure_set(x_61, 1, x_29); +lean_closure_set(x_61, 2, x_35); +lean_closure_set(x_61, 3, x_60); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_62 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_58, x_61, x_8, x_9, x_10, x_11, x_59); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_55); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_box(0); +x_66 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_27, x_29, x_32, x_35, x_65, x_8, x_9, x_10, x_11, x_64); +lean_dec(x_29); +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_16 = x_67; +x_17 = x_68; +goto block_24; +} +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; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_69 = lean_ctor_get(x_62, 1); +lean_inc(x_69); +lean_dec(x_62); +x_70 = lean_ctor_get(x_63, 0); +lean_inc(x_70); +lean_dec(x_63); +x_71 = l_Lean_Expr_mvarId_x21(x_70); +lean_dec(x_70); +lean_inc(x_29); +x_72 = lean_array_push(x_32, x_29); +x_73 = lean_box(0); +x_74 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_35, x_55, x_73); +x_75 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_74, x_71, x_73); +x_76 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_27, x_29, x_72, x_75, x_73, x_8, x_9, x_10, x_11, x_69); +lean_dec(x_29); +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_16 = x_77; +x_17 = x_78; +goto block_24; +} +} +else +{ +uint8_t x_79; +lean_dec(x_55); +lean_dec(x_27); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_62); +if (x_79 == 0) +{ +return x_62; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_62, 0); +x_81 = lean_ctor_get(x_62, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_62); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +uint8_t x_83; +lean_dec(x_55); +lean_dec(x_27); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_57); +if (x_83 == 0) +{ +return x_57; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_57, 0); +x_85 = lean_ctor_get(x_57, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_57); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_15); +x_87 = lean_box(0); +x_88 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_27, x_29, x_32, x_35, x_87, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_16 = x_89; +x_17 = x_90; +goto block_24; +} +} +} +else +{ +lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +lean_dec(x_27); +x_91 = lean_array_fget(x_37, x_38); +x_92 = lean_unbox(x_91); +lean_dec(x_91); +x_93 = lean_unsigned_to_nat(1u); +x_94 = lean_nat_add(x_38, x_93); +lean_dec(x_38); +x_95 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_95, 0, x_37); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_95, 2, x_39); +x_96 = l_Lean_BinderInfo_isExplicit(x_92); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_15); +x_97 = lean_box(0); +x_98 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_95, x_29, x_32, x_35, x_97, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_16 = x_99; +x_17 = x_100; +goto block_24; +} +else +{ +lean_object* x_101; lean_object* x_102; +x_101 = l_Lean_Expr_mvarId_x21(x_15); +x_102 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_35, x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_103 = lean_infer_type(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_103) == 0) +{ +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_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_box_usize(x_3); +lean_inc(x_35); +lean_inc(x_29); +lean_inc(x_1); +x_107 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); +lean_closure_set(x_107, 0, x_1); +lean_closure_set(x_107, 1, x_29); +lean_closure_set(x_107, 2, x_35); +lean_closure_set(x_107, 3, x_106); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_108 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_104, x_107, x_8, x_9, x_10, x_11, x_105); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_101); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = lean_box(0); +x_112 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_95, x_29, x_32, x_35, x_111, x_8, x_9, x_10, x_11, x_110); +lean_dec(x_29); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_16 = x_113; +x_17 = x_114; +goto block_24; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_115 = lean_ctor_get(x_108, 1); +lean_inc(x_115); +lean_dec(x_108); +x_116 = lean_ctor_get(x_109, 0); +lean_inc(x_116); +lean_dec(x_109); +x_117 = l_Lean_Expr_mvarId_x21(x_116); +lean_dec(x_116); +lean_inc(x_29); +x_118 = lean_array_push(x_32, x_29); +x_119 = lean_box(0); +x_120 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_35, x_101, x_119); +x_121 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_120, x_117, x_119); +x_122 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_95, x_29, x_118, x_121, x_119, x_8, x_9, x_10, x_11, x_115); +lean_dec(x_29); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_16 = x_123; +x_17 = x_124; +goto block_24; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_101); +lean_dec(x_95); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_125 = lean_ctor_get(x_108, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_108, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_127 = x_108; +} else { + lean_dec_ref(x_108); + x_127 = lean_box(0); +} +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_127; +} +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_101); +lean_dec(x_95); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_129 = lean_ctor_get(x_103, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_103, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_131 = x_103; +} else { + lean_dec_ref(x_103); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_15); +x_133 = lean_box(0); +x_134 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_95, x_29, x_32, x_35, x_133, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_16 = x_135; +x_17 = x_136; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_137 = lean_ctor_get(x_26, 1); +lean_inc(x_137); +lean_dec(x_26); +x_138 = lean_ctor_get(x_27, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_27, 1); +lean_inc(x_139); +x_140 = lean_ctor_get(x_27, 2); +lean_inc(x_140); +x_141 = lean_nat_dec_lt(x_139, x_140); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +lean_dec(x_15); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_27); +lean_ctor_set(x_142, 1, x_137); +lean_ctor_set(x_25, 1, x_142); +x_143 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_143, 0, x_7); +x_16 = x_143; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; +lean_free_object(x_25); +lean_free_object(x_7); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + lean_ctor_release(x_27, 2); + x_144 = x_27; +} else { + lean_dec_ref(x_27); + x_144 = lean_box(0); +} +x_145 = lean_array_fget(x_138, x_139); +x_146 = lean_unbox(x_145); +lean_dec(x_145); +x_147 = lean_unsigned_to_nat(1u); +x_148 = lean_nat_add(x_139, x_147); +lean_dec(x_139); +if (lean_is_scalar(x_144)) { + x_149 = lean_alloc_ctor(0, 3, 0); +} else { + x_149 = x_144; +} +lean_ctor_set(x_149, 0, x_138); +lean_ctor_set(x_149, 1, x_148); +lean_ctor_set(x_149, 2, x_140); +x_150 = l_Lean_BinderInfo_isExplicit(x_146); +if (x_150 == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_15); +x_151 = lean_box(0); +x_152 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_149, x_29, x_32, x_137, x_151, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +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_16 = x_153; +x_17 = x_154; +goto block_24; +} +else +{ +lean_object* x_155; lean_object* x_156; +x_155 = l_Lean_Expr_mvarId_x21(x_15); +x_156 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_137, x_155); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_157 = lean_infer_type(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_157) == 0) +{ +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_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = lean_box_usize(x_3); +lean_inc(x_137); +lean_inc(x_29); +lean_inc(x_1); +x_161 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); +lean_closure_set(x_161, 0, x_1); +lean_closure_set(x_161, 1, x_29); +lean_closure_set(x_161, 2, x_137); +lean_closure_set(x_161, 3, x_160); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_162 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_158, x_161, x_8, x_9, x_10, x_11, x_159); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_155); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +lean_dec(x_162); +x_165 = lean_box(0); +x_166 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_149, x_29, x_32, x_137, x_165, x_8, x_9, x_10, x_11, x_164); +lean_dec(x_29); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_16 = x_167; +x_17 = x_168; +goto block_24; +} +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; lean_object* x_178; +x_169 = lean_ctor_get(x_162, 1); +lean_inc(x_169); +lean_dec(x_162); +x_170 = lean_ctor_get(x_163, 0); +lean_inc(x_170); +lean_dec(x_163); +x_171 = l_Lean_Expr_mvarId_x21(x_170); +lean_dec(x_170); +lean_inc(x_29); +x_172 = lean_array_push(x_32, x_29); +x_173 = lean_box(0); +x_174 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_137, x_155, x_173); +x_175 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_174, x_171, x_173); +x_176 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_149, x_29, x_172, x_175, x_173, x_8, x_9, x_10, x_11, x_169); +lean_dec(x_29); +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +lean_dec(x_176); +x_16 = x_177; +x_17 = x_178; +goto block_24; +} +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_155); +lean_dec(x_149); +lean_dec(x_137); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_179 = lean_ctor_get(x_162, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_162, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_181 = x_162; +} else { + lean_dec_ref(x_162); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_155); +lean_dec(x_149); +lean_dec(x_137); +lean_dec(x_32); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_183 = lean_ctor_get(x_157, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_157, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_185 = x_157; +} else { + lean_dec_ref(x_157); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_15); +x_187 = lean_box(0); +x_188 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_149, x_29, x_32, x_137, x_187, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_16 = x_189; +x_17 = x_190; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; +x_191 = lean_ctor_get(x_25, 0); +lean_inc(x_191); +lean_dec(x_25); +x_192 = lean_ctor_get(x_26, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_193 = x_26; +} else { + lean_dec_ref(x_26); + x_193 = lean_box(0); +} +x_194 = lean_ctor_get(x_27, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_27, 1); +lean_inc(x_195); +x_196 = lean_ctor_get(x_27, 2); +lean_inc(x_196); +x_197 = lean_nat_dec_lt(x_195, x_196); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_15); +if (lean_is_scalar(x_193)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_193; +} +lean_ctor_set(x_198, 0, x_27); +lean_ctor_set(x_198, 1, x_192); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_191); +lean_ctor_set(x_199, 1, x_198); +lean_ctor_set(x_7, 1, x_199); +x_200 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_200, 0, x_7); +x_16 = x_200; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; +lean_dec(x_193); +lean_free_object(x_7); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + lean_ctor_release(x_27, 2); + x_201 = x_27; +} else { + lean_dec_ref(x_27); + x_201 = lean_box(0); +} +x_202 = lean_array_fget(x_194, x_195); +x_203 = lean_unbox(x_202); +lean_dec(x_202); +x_204 = lean_unsigned_to_nat(1u); +x_205 = lean_nat_add(x_195, x_204); +lean_dec(x_195); +if (lean_is_scalar(x_201)) { + x_206 = lean_alloc_ctor(0, 3, 0); +} else { + x_206 = x_201; +} +lean_ctor_set(x_206, 0, x_194); +lean_ctor_set(x_206, 1, x_205); +lean_ctor_set(x_206, 2, x_196); +x_207 = l_Lean_BinderInfo_isExplicit(x_203); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_15); +x_208 = lean_box(0); +x_209 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_206, x_29, x_191, x_192, x_208, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_16 = x_210; +x_17 = x_211; +goto block_24; +} +else +{ +lean_object* x_212; lean_object* x_213; +x_212 = l_Lean_Expr_mvarId_x21(x_15); +x_213 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_192, x_212); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_214 = lean_infer_type(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +x_217 = lean_box_usize(x_3); +lean_inc(x_192); +lean_inc(x_29); +lean_inc(x_1); +x_218 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_29); +lean_closure_set(x_218, 2, x_192); +lean_closure_set(x_218, 3, x_217); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_219 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_215, x_218, x_8, x_9, x_10, x_11, x_216); +if (lean_obj_tag(x_219) == 0) +{ +lean_object* x_220; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_dec(x_212); +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +lean_dec(x_219); +x_222 = lean_box(0); +x_223 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_206, x_29, x_191, x_192, x_222, x_8, x_9, x_10, x_11, x_221); +lean_dec(x_29); +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_16 = x_224; +x_17 = x_225; +goto block_24; +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_226 = lean_ctor_get(x_219, 1); +lean_inc(x_226); +lean_dec(x_219); +x_227 = lean_ctor_get(x_220, 0); +lean_inc(x_227); +lean_dec(x_220); +x_228 = l_Lean_Expr_mvarId_x21(x_227); +lean_dec(x_227); +lean_inc(x_29); +x_229 = lean_array_push(x_191, x_29); +x_230 = lean_box(0); +x_231 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_192, x_212, x_230); +x_232 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_231, x_228, x_230); +x_233 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_206, x_29, x_229, x_232, x_230, x_8, x_9, x_10, x_11, x_226); +lean_dec(x_29); +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_16 = x_234; +x_17 = x_235; +goto block_24; +} +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_212); +lean_dec(x_206); +lean_dec(x_192); +lean_dec(x_191); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_236 = lean_ctor_get(x_219, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_219, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_238 = x_219; +} else { + lean_dec_ref(x_219); + x_238 = lean_box(0); +} +if (lean_is_scalar(x_238)) { + x_239 = lean_alloc_ctor(1, 2, 0); +} else { + x_239 = x_238; +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_237); +return x_239; +} +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_212); +lean_dec(x_206); +lean_dec(x_192); +lean_dec(x_191); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_240 = lean_ctor_get(x_214, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_214, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_242 = x_214; +} else { + lean_dec_ref(x_214); + x_242 = lean_box(0); +} +if (lean_is_scalar(x_242)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_242; +} +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_241); +return x_243; +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_213); +lean_dec(x_212); +lean_dec(x_15); +x_244 = lean_box(0); +x_245 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_206, x_29, x_191, x_192, x_244, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_29); +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_16 = x_246; +x_17 = x_247; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_248 = lean_ctor_get(x_7, 0); +lean_inc(x_248); +lean_dec(x_7); +x_249 = lean_ctor_get(x_25, 0); +lean_inc(x_249); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_250 = x_25; +} else { + lean_dec_ref(x_25); + x_250 = lean_box(0); +} +x_251 = lean_ctor_get(x_26, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_252 = x_26; +} else { + lean_dec_ref(x_26); + x_252 = lean_box(0); +} +x_253 = lean_ctor_get(x_27, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_27, 1); +lean_inc(x_254); +x_255 = lean_ctor_get(x_27, 2); +lean_inc(x_255); +x_256 = lean_nat_dec_lt(x_254, x_255); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_dec(x_255); +lean_dec(x_254); +lean_dec(x_253); +lean_dec(x_15); +if (lean_is_scalar(x_252)) { + x_257 = lean_alloc_ctor(0, 2, 0); +} else { + x_257 = x_252; +} +lean_ctor_set(x_257, 0, x_27); +lean_ctor_set(x_257, 1, x_251); +if (lean_is_scalar(x_250)) { + x_258 = lean_alloc_ctor(0, 2, 0); +} else { + x_258 = x_250; +} +lean_ctor_set(x_258, 0, x_249); +lean_ctor_set(x_258, 1, x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_248); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_260, 0, x_259); +x_16 = x_260; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_261; lean_object* x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; +lean_dec(x_252); +lean_dec(x_250); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + lean_ctor_release(x_27, 2); + x_261 = x_27; +} else { + lean_dec_ref(x_27); + x_261 = lean_box(0); +} +x_262 = lean_array_fget(x_253, x_254); +x_263 = lean_unbox(x_262); +lean_dec(x_262); +x_264 = lean_unsigned_to_nat(1u); +x_265 = lean_nat_add(x_254, x_264); +lean_dec(x_254); +if (lean_is_scalar(x_261)) { + x_266 = lean_alloc_ctor(0, 3, 0); +} else { + x_266 = x_261; +} +lean_ctor_set(x_266, 0, x_253); +lean_ctor_set(x_266, 1, x_265); +lean_ctor_set(x_266, 2, x_255); +x_267 = l_Lean_BinderInfo_isExplicit(x_263); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_15); +x_268 = lean_box(0); +x_269 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_266, x_248, x_249, x_251, x_268, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_248); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +lean_dec(x_269); +x_16 = x_270; +x_17 = x_271; +goto block_24; +} +else +{ +lean_object* x_272; lean_object* x_273; +x_272 = l_Lean_Expr_mvarId_x21(x_15); +x_273 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_251, x_272); +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_274 = lean_infer_type(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +lean_dec(x_274); +x_277 = lean_box_usize(x_3); +lean_inc(x_251); +lean_inc(x_248); +lean_inc(x_1); +x_278 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); +lean_closure_set(x_278, 0, x_1); +lean_closure_set(x_278, 1, x_248); +lean_closure_set(x_278, 2, x_251); +lean_closure_set(x_278, 3, x_277); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_279 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_275, x_278, x_8, x_9, x_10, x_11, x_276); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +lean_dec(x_272); +x_281 = lean_ctor_get(x_279, 1); +lean_inc(x_281); +lean_dec(x_279); +x_282 = lean_box(0); +x_283 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_266, x_248, x_249, x_251, x_282, x_8, x_9, x_10, x_11, x_281); +lean_dec(x_248); +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_283, 1); +lean_inc(x_285); +lean_dec(x_283); +x_16 = x_284; +x_17 = x_285; +goto block_24; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_286 = lean_ctor_get(x_279, 1); +lean_inc(x_286); +lean_dec(x_279); +x_287 = lean_ctor_get(x_280, 0); +lean_inc(x_287); +lean_dec(x_280); +x_288 = l_Lean_Expr_mvarId_x21(x_287); +lean_dec(x_287); +lean_inc(x_248); +x_289 = lean_array_push(x_249, x_248); +x_290 = lean_box(0); +x_291 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_251, x_272, x_290); +x_292 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_291, x_288, x_290); +x_293 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_266, x_248, x_289, x_292, x_290, x_8, x_9, x_10, x_11, x_286); +lean_dec(x_248); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +x_16 = x_294; +x_17 = x_295; +goto block_24; +} +} +else +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +lean_dec(x_272); +lean_dec(x_266); +lean_dec(x_251); +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_296 = lean_ctor_get(x_279, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_279, 1); +lean_inc(x_297); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_298 = x_279; +} else { + lean_dec_ref(x_279); + x_298 = lean_box(0); +} +if (lean_is_scalar(x_298)) { + x_299 = lean_alloc_ctor(1, 2, 0); +} else { + x_299 = x_298; +} +lean_ctor_set(x_299, 0, x_296); +lean_ctor_set(x_299, 1, x_297); +return x_299; +} +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +lean_dec(x_272); +lean_dec(x_266); +lean_dec(x_251); +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_300 = lean_ctor_get(x_274, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_274, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_302 = x_274; +} else { + lean_dec_ref(x_274); + x_302 = lean_box(0); +} +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(1, 2, 0); +} else { + x_303 = x_302; +} +lean_ctor_set(x_303, 0, x_300); +lean_ctor_set(x_303, 1, x_301); +return x_303; +} +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_273); +lean_dec(x_272); +lean_dec(x_15); +x_304 = lean_box(0); +x_305 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_266, x_248, x_249, x_251, x_304, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_248); +x_306 = lean_ctor_get(x_305, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_305, 1); +lean_inc(x_307); +lean_dec(x_305); +x_16 = x_306; +x_17 = x_307; +goto block_24; +} +} +} +} +block_24: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(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; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = 1; +x_22 = x_6 + x_21; +x_6 = x_22; +x_7 = x_20; +x_12 = x_17; +goto _start; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8(lean_object* x_1, size_t x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -4560,7 +6052,7 @@ if (x_49 == 0) lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_14); x_50 = lean_box(0); -x_51 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_26, x_28, x_31, x_34, x_50, x_7, x_8, x_9, x_10, x_11); +x_51 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_26, x_28, x_31, x_34, x_50, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); @@ -4573,10 +6065,10 @@ goto block_23; } else { -lean_object* x_54; uint8_t x_55; +lean_object* x_54; lean_object* x_55; x_54 = l_Lean_Expr_mvarId_x21(x_14); -x_55 = l_Lean_NameSet_contains(x_34, x_54); -if (x_55 == 0) +x_55 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_34, x_54); +if (lean_obj_tag(x_55) == 0) { lean_object* x_56; lean_inc(x_10); @@ -4596,7 +6088,7 @@ x_59 = lean_box_usize(x_2); lean_inc(x_34); lean_inc(x_28); lean_inc(x_1); -x_60 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed), 11, 4); +x_60 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); lean_closure_set(x_60, 0, x_1); lean_closure_set(x_60, 1, x_28); lean_closure_set(x_60, 2, x_34); @@ -4619,7 +6111,7 @@ x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); lean_dec(x_61); x_64 = lean_box(0); -x_65 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_26, x_28, x_31, x_34, x_64, x_7, x_8, x_9, x_10, x_63); +x_65 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_26, x_28, x_31, x_34, x_64, x_7, x_8, x_9, x_10, x_63); lean_dec(x_28); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); @@ -4639,14 +6131,14 @@ lean_dec(x_61); x_69 = lean_ctor_get(x_62, 0); lean_inc(x_69); lean_dec(x_62); -x_70 = lean_box(0); -x_71 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_34, x_54, x_70); -x_72 = l_Lean_Expr_mvarId_x21(x_69); +x_70 = l_Lean_Expr_mvarId_x21(x_69); lean_dec(x_69); -x_73 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_71, x_72, x_70); lean_inc(x_28); -x_74 = lean_array_push(x_31, x_28); -x_75 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_26, x_28, x_74, x_73, x_70, x_7, x_8, x_9, x_10, x_68); +x_71 = lean_array_push(x_31, x_28); +x_72 = lean_box(0); +x_73 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_34, x_54, x_72); +x_74 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_73, x_70, x_72); +x_75 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_26, x_28, x_71, x_74, x_72, x_7, x_8, x_9, x_10, x_68); lean_dec(x_28); x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); @@ -4727,10 +6219,11 @@ return x_85; else { lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_55); lean_dec(x_54); lean_dec(x_14); x_86 = lean_box(0); -x_87 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_26, x_28, x_31, x_34, x_86, x_7, x_8, x_9, x_10, x_11); +x_87 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_26, x_28, x_31, x_34, x_86, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); @@ -4763,7 +6256,7 @@ if (x_95 == 0) lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_dec(x_14); x_96 = lean_box(0); -x_97 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_94, x_28, x_31, x_34, x_96, x_7, x_8, x_9, x_10, x_11); +x_97 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_94, x_28, x_31, x_34, x_96, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); @@ -4776,10 +6269,10 @@ goto block_23; } else { -lean_object* x_100; uint8_t x_101; +lean_object* x_100; lean_object* x_101; x_100 = l_Lean_Expr_mvarId_x21(x_14); -x_101 = l_Lean_NameSet_contains(x_34, x_100); -if (x_101 == 0) +x_101 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_34, x_100); +if (lean_obj_tag(x_101) == 0) { lean_object* x_102; lean_inc(x_10); @@ -4799,7 +6292,7 @@ x_105 = lean_box_usize(x_2); lean_inc(x_34); lean_inc(x_28); lean_inc(x_1); -x_106 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed), 11, 4); +x_106 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); lean_closure_set(x_106, 0, x_1); lean_closure_set(x_106, 1, x_28); lean_closure_set(x_106, 2, x_34); @@ -4822,7 +6315,7 @@ x_109 = lean_ctor_get(x_107, 1); lean_inc(x_109); lean_dec(x_107); x_110 = lean_box(0); -x_111 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_94, x_28, x_31, x_34, x_110, x_7, x_8, x_9, x_10, x_109); +x_111 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_94, x_28, x_31, x_34, x_110, x_7, x_8, x_9, x_10, x_109); lean_dec(x_28); x_112 = lean_ctor_get(x_111, 0); lean_inc(x_112); @@ -4842,14 +6335,14 @@ lean_dec(x_107); x_115 = lean_ctor_get(x_108, 0); lean_inc(x_115); lean_dec(x_108); -x_116 = lean_box(0); -x_117 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_34, x_100, x_116); -x_118 = l_Lean_Expr_mvarId_x21(x_115); +x_116 = l_Lean_Expr_mvarId_x21(x_115); lean_dec(x_115); -x_119 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_117, x_118, x_116); lean_inc(x_28); -x_120 = lean_array_push(x_31, x_28); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_94, x_28, x_120, x_119, x_116, x_7, x_8, x_9, x_10, x_114); +x_117 = lean_array_push(x_31, x_28); +x_118 = lean_box(0); +x_119 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_34, x_100, x_118); +x_120 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_119, x_116, x_118); +x_121 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_94, x_28, x_117, x_120, x_118, x_7, x_8, x_9, x_10, x_114); lean_dec(x_28); x_122 = lean_ctor_get(x_121, 0); lean_inc(x_122); @@ -4934,10 +6427,11 @@ return x_131; else { lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_101); lean_dec(x_100); lean_dec(x_14); x_132 = lean_box(0); -x_133 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_94, x_28, x_31, x_34, x_132, x_7, x_8, x_9, x_10, x_11); +x_133 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_94, x_28, x_31, x_34, x_132, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); @@ -5016,7 +6510,7 @@ if (x_149 == 0) lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_dec(x_14); x_150 = lean_box(0); -x_151 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_148, x_28, x_31, x_136, x_150, x_7, x_8, x_9, x_10, x_11); +x_151 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_148, x_28, x_31, x_136, x_150, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); @@ -5029,10 +6523,10 @@ goto block_23; } else { -lean_object* x_154; uint8_t x_155; +lean_object* x_154; lean_object* x_155; x_154 = l_Lean_Expr_mvarId_x21(x_14); -x_155 = l_Lean_NameSet_contains(x_136, x_154); -if (x_155 == 0) +x_155 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_136, x_154); +if (lean_obj_tag(x_155) == 0) { lean_object* x_156; lean_inc(x_10); @@ -5052,7 +6546,7 @@ x_159 = lean_box_usize(x_2); lean_inc(x_136); lean_inc(x_28); lean_inc(x_1); -x_160 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed), 11, 4); +x_160 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); lean_closure_set(x_160, 0, x_1); lean_closure_set(x_160, 1, x_28); lean_closure_set(x_160, 2, x_136); @@ -5075,7 +6569,7 @@ x_163 = lean_ctor_get(x_161, 1); lean_inc(x_163); lean_dec(x_161); x_164 = lean_box(0); -x_165 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_148, x_28, x_31, x_136, x_164, x_7, x_8, x_9, x_10, x_163); +x_165 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_148, x_28, x_31, x_136, x_164, x_7, x_8, x_9, x_10, x_163); lean_dec(x_28); x_166 = lean_ctor_get(x_165, 0); lean_inc(x_166); @@ -5095,14 +6589,14 @@ lean_dec(x_161); x_169 = lean_ctor_get(x_162, 0); lean_inc(x_169); lean_dec(x_162); -x_170 = lean_box(0); -x_171 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_136, x_154, x_170); -x_172 = l_Lean_Expr_mvarId_x21(x_169); +x_170 = l_Lean_Expr_mvarId_x21(x_169); lean_dec(x_169); -x_173 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_171, x_172, x_170); lean_inc(x_28); -x_174 = lean_array_push(x_31, x_28); -x_175 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_148, x_28, x_174, x_173, x_170, x_7, x_8, x_9, x_10, x_168); +x_171 = lean_array_push(x_31, x_28); +x_172 = lean_box(0); +x_173 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_136, x_154, x_172); +x_174 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_173, x_170, x_172); +x_175 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_148, x_28, x_171, x_174, x_172, x_7, x_8, x_9, x_10, x_168); lean_dec(x_28); x_176 = lean_ctor_get(x_175, 0); lean_inc(x_176); @@ -5187,10 +6681,11 @@ return x_185; else { lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_155); lean_dec(x_154); lean_dec(x_14); x_186 = lean_box(0); -x_187 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_148, x_28, x_31, x_136, x_186, x_7, x_8, x_9, x_10, x_11); +x_187 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_148, x_28, x_31, x_136, x_186, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_188 = lean_ctor_get(x_187, 0); lean_inc(x_188); @@ -5286,7 +6781,7 @@ if (x_206 == 0) lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_dec(x_14); x_207 = lean_box(0); -x_208 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_205, x_28, x_190, x_191, x_207, x_7, x_8, x_9, x_10, x_11); +x_208 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_205, x_28, x_190, x_191, x_207, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_209 = lean_ctor_get(x_208, 0); lean_inc(x_209); @@ -5299,10 +6794,10 @@ goto block_23; } else { -lean_object* x_211; uint8_t x_212; +lean_object* x_211; lean_object* x_212; x_211 = l_Lean_Expr_mvarId_x21(x_14); -x_212 = l_Lean_NameSet_contains(x_191, x_211); -if (x_212 == 0) +x_212 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_191, x_211); +if (lean_obj_tag(x_212) == 0) { lean_object* x_213; lean_inc(x_10); @@ -5322,7 +6817,7 @@ x_216 = lean_box_usize(x_2); lean_inc(x_191); lean_inc(x_28); lean_inc(x_1); -x_217 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed), 11, 4); +x_217 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); lean_closure_set(x_217, 0, x_1); lean_closure_set(x_217, 1, x_28); lean_closure_set(x_217, 2, x_191); @@ -5345,7 +6840,7 @@ x_220 = lean_ctor_get(x_218, 1); lean_inc(x_220); lean_dec(x_218); x_221 = lean_box(0); -x_222 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_205, x_28, x_190, x_191, x_221, x_7, x_8, x_9, x_10, x_220); +x_222 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_205, x_28, x_190, x_191, x_221, x_7, x_8, x_9, x_10, x_220); lean_dec(x_28); x_223 = lean_ctor_get(x_222, 0); lean_inc(x_223); @@ -5365,14 +6860,14 @@ lean_dec(x_218); x_226 = lean_ctor_get(x_219, 0); lean_inc(x_226); lean_dec(x_219); -x_227 = lean_box(0); -x_228 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_191, x_211, x_227); -x_229 = l_Lean_Expr_mvarId_x21(x_226); +x_227 = l_Lean_Expr_mvarId_x21(x_226); lean_dec(x_226); -x_230 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_228, x_229, x_227); lean_inc(x_28); -x_231 = lean_array_push(x_190, x_28); -x_232 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_205, x_28, x_231, x_230, x_227, x_7, x_8, x_9, x_10, x_225); +x_228 = lean_array_push(x_190, x_28); +x_229 = lean_box(0); +x_230 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_191, x_211, x_229); +x_231 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_230, x_227, x_229); +x_232 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_205, x_28, x_228, x_231, x_229, x_7, x_8, x_9, x_10, x_225); lean_dec(x_28); x_233 = lean_ctor_get(x_232, 0); lean_inc(x_233); @@ -5457,10 +6952,11 @@ return x_242; else { lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_212); lean_dec(x_211); lean_dec(x_14); x_243 = lean_box(0); -x_244 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_205, x_28, x_190, x_191, x_243, x_7, x_8, x_9, x_10, x_11); +x_244 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_205, x_28, x_190, x_191, x_243, x_7, x_8, x_9, x_10, x_11); lean_dec(x_28); x_245 = lean_ctor_get(x_244, 0); lean_inc(x_245); @@ -5572,7 +7068,7 @@ if (x_266 == 0) lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_dec(x_14); x_267 = lean_box(0); -x_268 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_265, x_247, x_248, x_250, x_267, x_7, x_8, x_9, x_10, x_11); +x_268 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_265, x_247, x_248, x_250, x_267, x_7, x_8, x_9, x_10, x_11); lean_dec(x_247); x_269 = lean_ctor_get(x_268, 0); lean_inc(x_269); @@ -5585,10 +7081,10 @@ goto block_23; } else { -lean_object* x_271; uint8_t x_272; +lean_object* x_271; lean_object* x_272; x_271 = l_Lean_Expr_mvarId_x21(x_14); -x_272 = l_Lean_NameSet_contains(x_250, x_271); -if (x_272 == 0) +x_272 = l_Std_RBNode_findCore___at_Lean_Meta_mkCongrLemma_onlyMVarsAt___spec__1(x_250, x_271); +if (lean_obj_tag(x_272) == 0) { lean_object* x_273; lean_inc(x_10); @@ -5608,7 +7104,7 @@ x_276 = lean_box_usize(x_2); lean_inc(x_250); lean_inc(x_247); lean_inc(x_1); -x_277 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed), 11, 4); +x_277 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed), 11, 4); lean_closure_set(x_277, 0, x_1); lean_closure_set(x_277, 1, x_247); lean_closure_set(x_277, 2, x_250); @@ -5631,7 +7127,7 @@ x_280 = lean_ctor_get(x_278, 1); lean_inc(x_280); lean_dec(x_278); x_281 = lean_box(0); -x_282 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_265, x_247, x_248, x_250, x_281, x_7, x_8, x_9, x_10, x_280); +x_282 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_265, x_247, x_248, x_250, x_281, x_7, x_8, x_9, x_10, x_280); lean_dec(x_247); x_283 = lean_ctor_get(x_282, 0); lean_inc(x_283); @@ -5651,14 +7147,14 @@ lean_dec(x_278); x_286 = lean_ctor_get(x_279, 0); lean_inc(x_286); lean_dec(x_279); -x_287 = lean_box(0); -x_288 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_250, x_271, x_287); -x_289 = l_Lean_Expr_mvarId_x21(x_286); +x_287 = l_Lean_Expr_mvarId_x21(x_286); lean_dec(x_286); -x_290 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_288, x_289, x_287); lean_inc(x_247); -x_291 = lean_array_push(x_248, x_247); -x_292 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_265, x_247, x_291, x_290, x_287, x_7, x_8, x_9, x_10, x_285); +x_288 = lean_array_push(x_248, x_247); +x_289 = lean_box(0); +x_290 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_250, x_271, x_289); +x_291 = l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(x_290, x_287, x_289); +x_292 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_265, x_247, x_288, x_291, x_289, x_7, x_8, x_9, x_10, x_285); lean_dec(x_247); x_293 = lean_ctor_get(x_292, 0); lean_inc(x_293); @@ -5743,10 +7239,11 @@ return x_302; else { lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; +lean_dec(x_272); lean_dec(x_271); lean_dec(x_14); x_303 = lean_box(0); -x_304 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_265, x_247, x_248, x_250, x_303, x_7, x_8, x_9, x_10, x_11); +x_304 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_265, x_247, x_248, x_250, x_303, x_7, x_8, x_9, x_10, x_11); lean_dec(x_247); x_305 = lean_ctor_get(x_304, 0); lean_inc(x_305); @@ -5795,7 +7292,7 @@ goto _start; } } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1() { _start: { lean_object* x_1; @@ -5803,17 +7300,17 @@ x_1 = lean_mk_string("_traceMsg"); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1; +x_2 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -5822,7 +7319,7 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4() { _start: { lean_object* x_1; @@ -5830,16 +7327,16 @@ x_1 = lean_mk_string("] "); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4; +x_1 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -5870,15 +7367,15 @@ if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; x_20 = lean_ctor_get(x_15, 0); -x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2; +x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; x_22 = l_Lean_Name_append(x_1, x_21); x_23 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_23, 0, x_1); -x_24 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3; +x_24 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5; +x_26 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -5929,15 +7426,15 @@ x_41 = lean_ctor_get_uint8(x_15, sizeof(void*)*1); x_42 = lean_ctor_get(x_15, 0); lean_inc(x_42); lean_dec(x_15); -x_43 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2; +x_43 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; x_44 = l_Lean_Name_append(x_1, x_43); x_45 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_45, 0, x_1); -x_46 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3; +x_46 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5; +x_48 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5; x_49 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -6002,15 +7499,15 @@ if (lean_is_exclusive(x_15)) { lean_dec_ref(x_15); x_67 = lean_box(0); } -x_68 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2; +x_68 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; x_69 = l_Lean_Name_append(x_1, x_68); x_70 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_70, 0, x_1); -x_71 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3; +x_71 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3; x_72 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); -x_73 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5; +x_73 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5; x_74 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_74, 0, x_72); lean_ctor_set(x_74, 1, x_73); @@ -6064,7 +7561,7 @@ return x_87; } } } -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; @@ -6077,7 +7574,7 @@ lean_ctor_set(x_10, 1, x_6); return x_10; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -6093,7 +7590,7 @@ lean_ctor_set(x_13, 1, x_10); return x_13; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -6101,17 +7598,17 @@ x_1 = lean_mk_string("Meta"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1; +x_2 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -6119,17 +7616,17 @@ x_1 = lean_mk_string("debug"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2; -x_2 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3; +x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2; +x_2 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5() { _start: { lean_object* x_1; @@ -6137,16 +7634,16 @@ x_1 = lean_mk_string("c: "); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5; +x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7() { _start: { lean_object* x_1; @@ -6154,25 +7651,25 @@ x_1 = lean_mk_string(" : "); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7; +x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___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, 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* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_array_get_size(x_1); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_19 = 0; -x_20 = l_Lean_NameSet_empty; -x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(x_2, x_1, x_18, x_19, x_20, x_12, x_13, x_14, x_15, x_16); +lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_17 = lean_box(0); +x_18 = lean_array_get_size(x_1); +x_19 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_20 = 0; +x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4(x_2, x_1, x_19, x_20, x_17, x_12, x_13, x_14, x_15, x_16); lean_dec(x_1); if (lean_obj_tag(x_21) == 0) { @@ -6202,7 +7699,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_33 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(x_5, x_19, x_4, x_32, x_19, x_30, x_12, x_13, x_14, x_15, x_23); +x_33 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8(x_5, x_20, x_4, x_32, x_20, x_30, x_12, x_13, x_14, x_15, x_23); lean_dec(x_4); if (lean_obj_tag(x_33) == 0) { @@ -6218,7 +7715,7 @@ lean_dec(x_33); x_37 = lean_ctor_get(x_35, 0); lean_inc(x_37); lean_dec(x_35); -x_38 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4; +x_38 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4; x_57 = lean_st_ref_get(x_15, x_36); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); @@ -6244,7 +7741,7 @@ lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint x_63 = lean_ctor_get(x_57, 1); lean_inc(x_63); lean_dec(x_57); -x_64 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_38, x_12, x_13, x_14, x_15, x_63); +x_64 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_38, x_12, x_13, x_14, x_15, x_63); x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); @@ -6264,7 +7761,7 @@ lean_object* x_41; lean_object* x_42; lean_dec(x_10); lean_dec(x_9); x_41 = lean_box(0); -x_42 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1(x_6, x_7, x_37, x_8, x_41, x_12, x_13, x_14, x_15, x_40); +x_42 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1(x_6, x_7, x_37, x_8, x_41, x_12, x_13, x_14, x_15, x_40); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -6277,11 +7774,11 @@ else lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; x_43 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_43, 0, x_9); -x_44 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6; +x_44 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6; x_45 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8; +x_46 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_45); lean_ctor_set(x_47, 1, x_46); @@ -6294,13 +7791,13 @@ x_50 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__ x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_38, x_51, x_12, x_13, x_14, x_15, x_40); +x_52 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_38, x_51, x_12, x_13, x_14, x_15, x_40); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); -x_55 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1(x_6, x_7, x_37, x_8, x_53, x_12, x_13, x_14, x_15, x_54); +x_55 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1(x_6, x_7, x_37, x_8, x_53, x_12, x_13, x_14, x_15, x_54); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -6379,7 +7876,7 @@ return x_75; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1() { _start: { lean_object* x_1; @@ -6387,16 +7884,16 @@ x_1 = lean_mk_string("invalid 'congr' theorem, equality left/right-hand sides mu return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1; +x_1 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { if (lean_obj_tag(x_11) == 5) @@ -6436,7 +7933,7 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_26 = l_Lean_indentExpr(x_6); -x_27 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; +x_27 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); @@ -6487,7 +7984,7 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_37 = l_Lean_indentExpr(x_6); -x_38 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; +x_38 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); @@ -6542,7 +8039,7 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_50 = l_Lean_indentExpr(x_6); -x_51 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; +x_51 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2; x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_51); lean_ctor_set(x_52, 1, x_50); @@ -6596,7 +8093,7 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_63 = l_Lean_indentExpr(x_6); -x_64 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2; +x_64 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); @@ -6632,7 +8129,7 @@ else { lean_object* x_73; lean_object* x_74; x_73 = lean_box(0); -x_74 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2(x_10, x_8, x_5, x_4, x_7, x_9, x_1, x_2, x_3, x_6, x_73, x_14, x_15, x_16, x_17, x_18); +x_74 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2(x_10, x_8, x_5, x_4, x_7, x_9, x_1, x_2, x_3, x_6, x_73, x_14, x_15, x_16, x_17, x_18); return x_74; } } @@ -6641,7 +8138,7 @@ return x_74; } } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { if (lean_obj_tag(x_10) == 5) @@ -6667,13 +8164,13 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean lean_dec(x_12); x_24 = lean_unsigned_to_nat(0u); x_25 = l_Lean_Expr_getAppNumArgsAux(x_9, x_24); -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; +x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_inc(x_25); x_27 = lean_mk_array(x_25, x_26); x_28 = lean_unsigned_to_nat(1u); x_29 = lean_nat_sub(x_25, x_28); lean_dec(x_25); -x_30 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_9, x_27, x_29, x_13, x_14, x_15, x_16, x_17); +x_30 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_9, x_27, x_29, x_13, x_14, x_15, x_16, x_17); return x_30; } } @@ -6831,14 +8328,14 @@ lean_dec(x_41); x_43 = l_Lean_Expr_appArg_x21(x_27); x_44 = lean_unsigned_to_nat(0u); x_45 = l_Lean_Expr_getAppNumArgsAux(x_42, x_44); -x_46 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; +x_46 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_inc(x_45); x_47 = lean_mk_array(x_45, x_46); x_48 = lean_unsigned_to_nat(1u); x_49 = lean_nat_sub(x_45, x_48); lean_dec(x_45); lean_inc(x_42); -x_50 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_2, x_13, x_25, x_26, x_27, x_28, x_42, x_43, x_42, x_47, x_49, x_3, x_4, x_5, x_6, x_24); +x_50 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(x_1, x_2, x_13, x_25, x_26, x_27, x_28, x_42, x_43, x_42, x_47, x_49, x_3, x_4, x_5, x_6, x_24); if (lean_obj_tag(x_50) == 0) { uint8_t x_51; @@ -7109,14 +8606,14 @@ lean_dec(x_113); x_115 = l_Lean_Expr_appArg_x21(x_99); x_116 = lean_unsigned_to_nat(0u); x_117 = l_Lean_Expr_getAppNumArgsAux(x_114, x_116); -x_118 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; +x_118 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_inc(x_117); x_119 = lean_mk_array(x_117, x_118); x_120 = lean_unsigned_to_nat(1u); x_121 = lean_nat_sub(x_117, x_120); lean_dec(x_117); lean_inc(x_114); -x_122 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_2, x_85, x_97, x_98, x_99, x_100, x_114, x_115, x_114, x_119, x_121, x_3, x_4, x_5, x_6, x_96); +x_122 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(x_1, x_2, x_85, x_97, x_98, x_99, x_100, x_114, x_115, x_114, x_119, x_121, x_3, x_4, x_5, x_6, x_96); if (lean_obj_tag(x_122) == 0) { lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; @@ -7423,14 +8920,14 @@ lean_dec(x_192); x_194 = l_Lean_Expr_appArg_x21(x_178); x_195 = lean_unsigned_to_nat(0u); x_196 = l_Lean_Expr_getAppNumArgsAux(x_193, x_195); -x_197 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1; +x_197 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1; lean_inc(x_196); x_198 = lean_mk_array(x_196, x_197); x_199 = lean_unsigned_to_nat(1u); x_200 = lean_nat_sub(x_196, x_199); lean_dec(x_196); lean_inc(x_193); -x_201 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_2, x_164, x_176, x_177, x_178, x_179, x_193, x_194, x_193, x_198, x_200, x_162, x_4, x_5, x_6, x_175); +x_201 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(x_1, x_2, x_164, x_176, x_177, x_178, x_179, x_193, x_194, x_193, x_198, x_200, x_162, x_4, x_5, x_6, x_175); if (lean_obj_tag(x_201) == 0) { lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; @@ -7616,7 +9113,25 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +return x_14; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; size_t x_12; lean_object* x_13; @@ -7624,7 +9139,7 @@ x_11 = lean_unbox_usize(x_3); lean_dec(x_3); x_12 = lean_unbox_usize(x_4); lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___at_Lean_Meta_mkCongrLemma___spec__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7633,11 +9148,11 @@ lean_dec(x_2); return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___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) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___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: { lean_object* x_8; -x_8 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -7647,20 +9162,6 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_3); -lean_dec(x_1); -return x_14; -} -} lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -7670,6 +9171,20 @@ lean_dec(x_4); x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -7679,11 +9194,11 @@ lean_dec(x_1); return x_14; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7693,13 +9208,13 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; lean_object* x_12; x_11 = lean_unbox_usize(x_3); lean_dec(x_3); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7709,40 +9224,56 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; lean_object* x_13; x_12 = lean_unbox_usize(x_3); lean_dec(x_3); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; lean_object* x_12; x_11 = lean_unbox_usize(x_3); lean_dec(x_3); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; lean_object* x_13; x_12 = lean_unbox_usize(x_4); lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_15 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7(x_1, x_2, x_13, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_4); +lean_dec(x_2); +return x_16; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; size_t x_14; lean_object* x_15; @@ -7752,16 +9283,16 @@ x_13 = lean_unbox_usize(x_4); lean_dec(x_4); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6(x_1, x_12, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___at_Lean_Meta_mkCongrLemma___spec__8(x_1, x_12, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); return x_15; } } -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___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_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -7769,11 +9300,11 @@ lean_dec(x_3); return x_8; } } -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10___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___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -7781,11 +9312,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7795,16 +9326,16 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; -x_17 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_17 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_11); return x_17; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -7826,11 +9357,11 @@ lean_object* x_18 = _args[17]; _start: { lean_object* x_19; -x_19 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +x_19 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); return x_19; } } -lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -7851,7 +9382,7 @@ lean_object* x_17 = _args[16]; _start: { lean_object* x_18; -x_18 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_18 = l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); return x_18; } } @@ -8208,29 +9739,41 @@ return x_4; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_CongrLemmas_lemmas___default___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5() { +_start: +{ size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__3; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__3; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -8241,25 +9784,25 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_CongrLemmas_lemmas___default___closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5; 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; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__1; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__6; x_4 = l_Lean_Meta_instInhabitedCongrLemma___closed__1; x_5 = lean_unsigned_to_nat(0u); x_6 = lean_alloc_ctor(0, 5, 0); @@ -8271,23 +9814,6 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_CongrLemmas_lemmas___default___closed__4; -x_3 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_2); -lean_ctor_set(x_3, 3, x_2); -lean_ctor_set(x_3, 4, x_2); -lean_ctor_set(x_3, 5, x_2); -lean_ctor_set(x_3, 6, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__8() { _start: { @@ -8303,9 +9829,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__8; +x_3 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +lean_ctor_set(x_3, 3, x_2); +lean_ctor_set(x_3, 4, x_2); +lean_ctor_set(x_3, 5, x_2); +lean_ctor_set(x_3, 6, x_2); +return x_3; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__10() { @@ -8323,6 +9858,14 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__11() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_CongrLemmas_lemmas___default___closed__3; x_2 = lean_unsigned_to_nat(0u); @@ -8332,7 +9875,19 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_CongrLemmas_lemmas___default___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -8343,7 +9898,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -8354,7 +9909,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -8366,14 +9921,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__10; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__11; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__14; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__12; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__13; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -8385,18 +9940,18 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__15; -x_3 = l_Lean_NameSet_empty; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__4; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__9; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -8422,14 +9977,14 @@ x_12 = lean_st_ref_get(x_5, x_11); x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16; +x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18; x_15 = lean_st_mk_ref(x_14, x_13); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__6; +x_18 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__7; lean_inc(x_5); lean_inc(x_16); x_19 = l_Lean_Meta_addCongrLemma(x_1, x_3, x_10, x_18, x_16, x_4, x_5, x_17); @@ -9116,20 +10671,6 @@ l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__2 = _in lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__2); l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__3(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__3___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__5); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__6); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__4___closed__7); l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__1); l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__2(); @@ -9138,50 +10679,64 @@ l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3 = _in lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__3); l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__2___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__3___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__4___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___lambda__5___closed__2); -l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__1); -l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__2); -l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__3); -l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__4); -l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7___closed__5); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__1); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__2); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__3); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__4); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__5); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__6); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__7); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___lambda__2___closed__8); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__1); -l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__9___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__5); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__6); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__6___closed__4); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__3___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__4___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__7___lambda__5___closed__2); +l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__1); +l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__2); +l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__3); +l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__4); +l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5 = _init_l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9___closed__5); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__1); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__2); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__3); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__4); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__5); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__6); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__7); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___lambda__2___closed__8); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__1); +l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2 = _init_l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Meta_mkCongrLemma___spec__11___closed__2); l_Lean_Meta_mkCongrLemma___closed__1 = _init_l_Lean_Meta_mkCongrLemma___closed__1(); lean_mark_persistent(l_Lean_Meta_mkCongrLemma___closed__1); l_Lean_Meta_mkCongrLemma___closed__2 = _init_l_Lean_Meta_mkCongrLemma___closed__2(); @@ -9222,6 +10777,10 @@ l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__15); l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__16); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__17); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__1___closed__18); l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__1(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__1); l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_1510____lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 7986f0d600..b0e3179717 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -14,9 +14,11 @@ extern "C" { #endif static lean_object* l_Lean_Meta_Simp_simp_simpLet___closed__1; +static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__2; uint8_t l_Lean_Expr_bindingInfo_x21(lean_object*); lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_methods___closed__3; +static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__3; lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -31,6 +33,7 @@ size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isNatLit(lean_object*); lean_object* l_Lean_Meta_Simp_simp_cacheResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3___closed__6; @@ -42,6 +45,7 @@ static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__14; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpLambda___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpLet___closed__8; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); @@ -128,11 +132,11 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1; lean_object* l_Lean_Meta_simp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_congr___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__6; lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__13(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__6___boxed(lean_object**); @@ -144,6 +148,7 @@ lean_object* l_Lean_Meta_mkEqMP(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___closed__2; static lean_object* l_Lean_Meta_Simp_DefaultMethods_methods___closed__1; +static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__3; lean_object* l_Lean_Expr_appArg_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_main___closed__1; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9(lean_object*, lean_object*); @@ -152,12 +157,15 @@ lean_object* l_Lean_Meta_Simp_postDefault(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_simpLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__9; +static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__1; extern lean_object* l_Lean_Meta_Simp_instInhabitedResult; +static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__2; uint8_t l_USize_decLt(size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___closed__7; lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f_match__1(lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__4; lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_simp_simpForall___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_simp_simpLit_match__1(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; extern lean_object* l_Lean_ExprStructEq_instBEqExprStructEq; @@ -177,7 +185,7 @@ lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis___lambda__3(lean_objec static lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrDefault___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpGoal_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_simp_simpLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___closed__1; @@ -189,6 +197,7 @@ static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__ lean_object* l_Lean_Meta_simpTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__10; +lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_Simp_simp_simpLambda___spec__2(lean_object*); lean_object* l_Lean_Meta_simpGoal___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -241,17 +250,18 @@ lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f_match__3(lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__5; static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___closed__7; lean_object* l_Lean_ConstantInfo_name(lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpLet_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_getSimpLemmas___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__7; lean_object* l_Lean_Meta_Simp_DefaultMethods_methods; lean_object* l_Nat_repr(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_congrDefault_match__1(lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_processCongrHypothesis___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLet___closed__4; @@ -268,21 +278,22 @@ lean_object* l_Lean_Meta_simpGoal_match__3___rarg(lean_object*, lean_object*, le lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__12(lean_object*, lean_object*); lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_natLit_x3f(lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simp_match__1(lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpGoal_match__3(lean_object*); lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Main___hyg_4_(lean_object*); lean_object* l_Lean_Meta_Simp_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrDefault___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_Result_getProof_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_find___at___private_Lean_Hygiene_0__Lean_sanitizeSyntaxAux___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__12; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -307,6 +318,7 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstan lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_Simp_simp_simpLambda___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Meta_assertHypotheses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_withNewLemmas___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -353,6 +365,7 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3___closed__4; lean_object* l_Lean_Meta_Simp_simp_simpStep_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpStep_match__1(lean_object*); +lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpTargetCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; @@ -372,6 +385,7 @@ lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__4; lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_instInhabitedReaderT___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpLet_match__1(lean_object*); @@ -380,7 +394,6 @@ static lean_object* l_Lean_Meta_Simp_simp_simpArrow___closed__1; lean_object* l_List_forIn_loop___at_Lean_Meta_Simp_simp_congr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_simpTargetCore___closed__1; lean_object* l_Lean_Meta_Simp_preDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrDefault___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -415,11 +428,13 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__5___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__1; lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__3(lean_object*); +uint8_t l_Lean_Meta_Simp_isOfNatNatLit(lean_object*); lean_object* l_Lean_Meta_simpGoal(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_Result_getProof_match__1(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__5___closed__1; lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_isOfNatNatLit___boxed(lean_object*); lean_object* l_Lean_Meta_simpGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_withNewLemmas___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -468,10 +483,10 @@ lean_object* l_Lean_Meta_simpGoal___lambda__3(lean_object*, lean_object*, lean_o lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___closed__5; lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f_match__2(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -482,24 +497,26 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLe static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___closed__4; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_mkCongr_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__3___closed__5; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_simpLocalDecl_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_simp_simpLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpArrow___closed__2; lean_object* l_Lean_Meta_Simp_simp_cacheResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__4___closed__2; lean_object* l_Lean_Meta_Simp_simp_withNewLemmas(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_processCongrHypothesis___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__1; lean_object* l_Lean_Meta_Simp_synthesizeArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_simpGoal___lambda__3___closed__1; lean_object* l_Lean_Meta_Simp_simp_cacheResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -522,10 +539,12 @@ static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__6; lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__3___closed__2; static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__2; +lean_object* l_Lean_Meta_Simp_simp_simpLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLet___closed__6; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__13___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkNumeral(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__8; lean_object* l_Lean_Meta_mkImpCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpLocalDecl_match__1___rarg(lean_object*, lean_object*); @@ -2372,6 +2391,77 @@ return x_135; } } } +static lean_object* _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("OfNat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_isOfNatNatLit___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ofNat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_isOfNatNatLit___closed__2; +x_2 = l_Lean_Meta_Simp_isOfNatNatLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +uint8_t l_Lean_Meta_Simp_isOfNatNatLit(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Meta_Simp_isOfNatNatLit___closed__4; +x_3 = lean_unsigned_to_nat(3u); +x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = l_Lean_Expr_appFn_x21(x_1); +x_7 = l_Lean_Expr_appArg_x21(x_6); +lean_dec(x_6); +x_8 = l_Lean_Expr_isNatLit(x_7); +lean_dec(x_7); +return x_8; +} +} +} +lean_object* l_Lean_Meta_Simp_isOfNatNatLit___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Simp_isOfNatNatLit(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7976,6 +8066,37 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_simp_congrDefault_match__1___r return x_2; } } +lean_object* l_Lean_Meta_Simp_simp_simpLit_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_Simp_simp_simpLit_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_simp_simpLit_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -8190,6 +8311,133 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_simp_match__1___rarg), 3, 0); return x_2; } } +static lean_object* _init_l_Lean_Meta_Simp_simp_simpLit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Nat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_simp_simpLit___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_simp_simpLit___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_simp_simpLit___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_simp_simpLit___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Meta_Simp_simp_simpLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Expr_natLit_x3f(x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, 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_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = l_Lean_Meta_Simp_simp_simpLit___closed__3; +x_16 = l_Lean_Meta_mkNumeral(x_15, x_14, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +lean_ctor_set(x_16, 0, x_20); +return x_16; +} +else +{ +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_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_16); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, 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_22); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_16); +if (x_26 == 0) +{ +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +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; +} +} +} +} +} +lean_object* l_Lean_Meta_Simp_simp_simpLit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Simp_simp_simpLit(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} lean_object* l_Lean_Meta_Simp_simp_simpConst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -8330,7 +8578,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpLet___closed__5; x_2 = l_Lean_Meta_Simp_simp_simpLet___closed__6; -x_3 = lean_unsigned_to_nat(317u); +x_3 = lean_unsigned_to_nat(329u); x_4 = lean_unsigned_to_nat(13u); x_5 = l_Lean_Meta_Simp_simp_simpLet___closed__7; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10628,7 +10876,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Simp_simp_simpLet___closed__5; x_2 = l_Lean_Meta_Simp_simp_simpStep___closed__1; -x_3 = lean_unsigned_to_nat(161u); +x_3 = lean_unsigned_to_nat(165u); x_4 = lean_unsigned_to_nat(26u); x_5 = l_Lean_Meta_Simp_simp_simpLet___closed__7; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -10785,112 +11033,9 @@ return x_44; } } } -case 4: +case 3: { -lean_object* x_45; -x_45 = l_Lean_Meta_Simp_simp_simpConst(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_45; -} -case 5: -{ -lean_object* x_46; -x_46 = l_Lean_Meta_Simp_simp_simpApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_46; -} -case 6: -{ -lean_object* x_47; -x_47 = l_Lean_Meta_Simp_simp_simpLambda(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_47; -} -case 7: -{ -lean_object* x_48; -x_48 = l_Lean_Meta_Simp_simp_simpForall(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_48; -} -case 8: -{ -lean_object* x_49; -x_49 = l_Lean_Meta_Simp_simp_simpLet(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_49; -} -case 10: -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_1, 1); -lean_inc(x_50); -lean_dec(x_1); -x_51 = l_Lean_Meta_Simp_simp(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_51; -} -case 11: -{ -lean_object* x_52; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_52 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_52) == 0) -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_52, 0); -x_55 = lean_box(0); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_52, 0, x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_58); -return x_61; -} -} -else -{ -uint8_t x_62; -x_62 = !lean_is_exclusive(x_52); -if (x_62 == 0) -{ -return x_52; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_52, 0); -x_64 = lean_ctor_get(x_52, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_52); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -default: -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10898,14 +11043,126 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_1); -lean_ctor_set(x_67, 1, x_66); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_9); -return x_68; +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_9); +return x_47; +} +case 4: +{ +lean_object* x_48; +x_48 = l_Lean_Meta_Simp_simp_simpConst(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_48; +} +case 5: +{ +lean_object* x_49; +x_49 = l_Lean_Meta_Simp_simp_simpApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_49; +} +case 6: +{ +lean_object* x_50; +x_50 = l_Lean_Meta_Simp_simp_simpLambda(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_50; +} +case 7: +{ +lean_object* x_51; +x_51 = l_Lean_Meta_Simp_simp_simpForall(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_51; +} +case 8: +{ +lean_object* x_52; +x_52 = l_Lean_Meta_Simp_simp_simpLet(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_52; +} +case 9: +{ +lean_object* x_53; +x_53 = l_Lean_Meta_Simp_simp_simpLit(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_53; +} +case 10: +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_1, 1); +lean_inc(x_54); +lean_dec(x_1); +x_55 = l_Lean_Meta_Simp_simp(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_55; +} +default: +{ +lean_object* x_56; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_56 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_56) == 0) +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +lean_ctor_set(x_56, 0, x_60); +return x_56; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_56, 0); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_56); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_62); +return x_65; +} +} +else +{ +uint8_t x_66; +x_66 = !lean_is_exclusive(x_56); +if (x_66 == 0) +{ +return x_56; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_56, 0); +x_68 = lean_ctor_get(x_56, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_56); +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; +} +} } } } @@ -15161,29 +15418,35 @@ lean_inc(x_3); x_10 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Expr_isApp(x_11); -if (x_13 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_14; -x_14 = l_Lean_Meta_Simp_simp(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -return x_14; -} -else +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = l_Lean_Expr_isApp(x_12); +if (x_14 == 0) { lean_object* x_15; -x_15 = l_Lean_Meta_Simp_simp_congr(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +lean_free_object(x_10); +x_15 = l_Lean_Meta_Simp_simp(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); return x_15; } -} else { uint8_t x_16; +x_16 = l_Lean_Meta_Simp_isOfNatNatLit(x_12); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_10); +x_17 = l_Lean_Meta_Simp_simp_congr(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15191,23 +15454,89 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_10, 0, x_19); +return x_10; +} +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_10); +x_22 = l_Lean_Expr_isApp(x_20); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = l_Lean_Meta_Simp_simp(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = l_Lean_Meta_Simp_isOfNatNatLit(x_20); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = l_Lean_Meta_Simp_simp_congr(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_20); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_21); +return x_28; +} +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) { return x_10; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_10, 0); -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_inc(x_17); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_10, 0); +x_31 = lean_ctor_get(x_10, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_10); -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; +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; } } } @@ -23444,7 +23773,47 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_simpGoal_match__4___rarg), 2, 0); return x_2; } } -lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = l_Lean_Name_quickCmp(x_2, x_5); +switch (x_8) { +case 0: +{ +x_1 = x_4; +goto _start; +} +case 1: +{ +lean_object* x_10; +lean_inc(x_6); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_6); +return x_10; +} +default: +{ +x_1 = x_7; +goto _start; +} +} +} +} +} +lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__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, lean_object* x_7) { _start: { uint8_t x_8; @@ -23506,7 +23875,7 @@ return x_31; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -23516,7 +23885,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; @@ -23537,7 +23906,7 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_18 = lean_ctor_get(x_15, 0); lean_dec(x_18); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1; x_20 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_7); @@ -23552,7 +23921,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean x_22 = lean_ctor_get(x_15, 1); lean_inc(x_22); lean_dec(x_15); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1; +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1; x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_7); @@ -23650,7 +24019,7 @@ return x_49; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__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, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -23704,7 +24073,7 @@ x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); x_26 = l_Lean_LocalDecl_fvarId(x_20); -x_27 = l_Std_RBNode_find___at___private_Lean_Hygiene_0__Lean_sanitizeSyntaxAux___spec__2(x_4, x_26); +x_27 = l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(x_4, x_26); lean_dec(x_26); if (lean_obj_tag(x_27) == 0) { @@ -23717,7 +24086,7 @@ lean_inc(x_2); lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_17, x_1, x_24, x_3, x_20, x_5, x_18, x_2, x_10, x_11, x_12, x_13, x_25); +x_28 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1(x_17, x_1, x_24, x_3, x_20, x_5, x_18, x_2, x_10, x_11, x_12, x_13, x_25); lean_dec(x_20); if (lean_obj_tag(x_28) == 0) { @@ -23826,7 +24195,7 @@ x_49 = lean_ctor_get(x_2, 3); lean_inc(x_49); x_50 = lean_ctor_get(x_2, 4); lean_inc(x_50); -x_51 = l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1(x_47, x_45, x_10, x_11, x_12, x_13, x_25); +x_51 = l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__2(x_47, x_45, x_10, x_11, x_12, x_13, x_25); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -23845,7 +24214,7 @@ lean_inc(x_10); lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_55 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_17, x_1, x_24, x_3, x_20, x_5, x_18, x_54, x_10, x_11, x_12, x_13, x_53); +x_55 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1(x_17, x_1, x_24, x_3, x_20, x_5, x_18, x_54, x_10, x_11, x_12, x_13, x_53); lean_dec(x_20); if (lean_obj_tag(x_55) == 0) { @@ -24324,7 +24693,7 @@ lean_inc(x_8); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(x_1, x_4, x_5, x_6, x_15, x_3, x_17, x_18, x_19, x_8, x_9, x_10, x_11, x_14); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3(x_1, x_4, x_5, x_6, x_15, x_3, x_17, x_18, x_19, x_8, x_9, x_10, x_11, x_14); lean_dec(x_6); if (lean_obj_tag(x_20) == 0) { @@ -24469,11 +24838,21 @@ x_15 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lea return x_15; } } -lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__2___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_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_SimpLemmas_eraseCore___at_Lean_Meta_simpGoal___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -24481,16 +24860,16 @@ lean_dec(x_3); return x_8; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___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, 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* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_5); return x_14; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { size_t x_15; size_t x_16; lean_object* x_17; @@ -24498,7 +24877,7 @@ x_15 = lean_unbox_usize(x_7); lean_dec(x_7); x_16 = lean_unbox_usize(x_8); lean_dec(x_8); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_6); lean_dec(x_4); return x_17; @@ -24587,6 +24966,14 @@ lean_mark_persistent(l_Lean_Meta_Simp_congrHypothesisExceptionId); lean_dec_ref(res); l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg___closed__1 = _init_l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg___closed__1); +l_Lean_Meta_Simp_isOfNatNatLit___closed__1 = _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_isOfNatNatLit___closed__1); +l_Lean_Meta_Simp_isOfNatNatLit___closed__2 = _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_isOfNatNatLit___closed__2); +l_Lean_Meta_Simp_isOfNatNatLit___closed__3 = _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_isOfNatNatLit___closed__3); +l_Lean_Meta_Simp_isOfNatNatLit___closed__4 = _init_l_Lean_Meta_Simp_isOfNatNatLit___closed__4(); +lean_mark_persistent(l_Lean_Meta_Simp_isOfNatNatLit___closed__4); l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1); l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___closed__1(); @@ -24605,6 +24992,12 @@ l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__1 = _in lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__1); l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2); +l_Lean_Meta_Simp_simp_simpLit___closed__1 = _init_l_Lean_Meta_Simp_simp_simpLit___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_simp_simpLit___closed__1); +l_Lean_Meta_Simp_simp_simpLit___closed__2 = _init_l_Lean_Meta_Simp_simp_simpLit___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_simp_simpLit___closed__2); +l_Lean_Meta_Simp_simp_simpLit___closed__3 = _init_l_Lean_Meta_Simp_simp_simpLit___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_simp_simpLit___closed__3); l_Lean_Meta_Simp_simp_simpLet___closed__1 = _init_l_Lean_Meta_Simp_simp_simpLet___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_simp_simpLet___closed__1); l_Lean_Meta_Simp_simp_simpLet___closed__2 = _init_l_Lean_Meta_Simp_simp_simpLet___closed__2(); @@ -24805,8 +25198,8 @@ l_Lean_Meta_simpStep___closed__1 = _init_l_Lean_Meta_simpStep___closed__1(); lean_mark_persistent(l_Lean_Meta_simpStep___closed__1); l_Lean_Meta_simpStep___closed__2 = _init_l_Lean_Meta_simpStep___closed__2(); lean_mark_persistent(l_Lean_Meta_simpStep___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__3___lambda__1___closed__1); l_Lean_Meta_simpGoal___lambda__3___closed__1 = _init_l_Lean_Meta_simpGoal___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Meta_simpGoal___lambda__3___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index f10a4bde70..45787d11c6 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Simp.Rewrite -// Imports: Init Lean.Meta.SynthInstance Lean.Meta.Tactic.Simp.Types +// Imports: Init Lean.Meta.AppBuilder Lean.Meta.SynthInstance Lean.Meta.Tactic.Simp.Types #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -14,14 +14,15 @@ extern "C" { #endif uint8_t l_Lean_Meta_Simp_rewrite_inErasedSet(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___lambda__1___closed__1; +lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4; lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__3(lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -29,17 +30,19 @@ lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f(lean_object*, lean_object*, lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f_match__1(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10; lean_object* l_Lean_Meta_Simp_tryRewriteUsingDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1___closed__4; static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1___closed__1; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__6; lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__2(lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite___closed__10; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewrite_match__2(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); lean_object* l_Lean_Meta_Simp_rewrite_inErasedSet_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); @@ -51,25 +54,26 @@ static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesiz lean_object* l_Lean_Meta_Simp_rewrite_match__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Expr_constructorApp_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__10; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6; lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__5; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4; lean_object* l_Lean_Meta_isClass_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewrite___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__4; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); uint8_t lean_expr_lt(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_postDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1; static lean_object* l_Lean_Meta_Simp_rewrite___closed__9; lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__1; @@ -77,17 +81,17 @@ lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__18; static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__4; lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__7; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__2; +lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__8; lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__9; static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; lean_object* l_Lean_Meta_Simp_rewritePre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -96,61 +100,66 @@ lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__1(lean_object*, lean_object lean_object* l_Lean_Meta_Simp_rewrite(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__17; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__9; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1; -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__7; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__4; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2; static lean_object* l_Lean_Meta_Simp_synthesizeArgs___closed__1; lean_object* l_Lean_Meta_Simp_tryLemma_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3; static lean_object* l_Lean_Meta_Simp_rewrite___closed__6; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Meta_Simp_rewrite___closed__8; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__13; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__14; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__1(lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__4; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite___closed__4; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__3; lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1(lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__1; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__2; -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__5; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__2; static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__5; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__15; lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__6; uint8_t l_Array_isEmpty___rarg(lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5; +lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4(lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__3; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite___closed__3; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4; lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3(lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewrite___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -158,14 +167,18 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstan static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__12; lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance_match__1(lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7; lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite___closed__1; static lean_object* l_Lean_Meta_Simp_rewrite___closed__2; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__12; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; lean_object* l_Lean_Meta_Simp_rewrite___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewritePre___closed__1; lean_object* l_Array_insertionSort_swapLoop___at_Lean_Meta_Simp_rewrite___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___closed__1; lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,67 +187,68 @@ static lean_object* l_Lean_Meta_Simp_rewrite___closed__7; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewritePost(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__10; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3; lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_hasAssignableMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5; +lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5; uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__1; uint8_t l_Lean_Expr_isMVar(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Lean_Meta_Simp_rewrite_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3; +lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__13; lean_object* l_Lean_Meta_Simp_preDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__11; lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f_match__2(lean_object*); lean_object* l_Lean_Meta_Simp_rewrite_inErasedSet_match__1(lean_object*); +lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqFalse_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewritePost___closed__1; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1; lean_object* l_Lean_Meta_mkNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2; lean_object* l_Lean_Meta_Simp_tryRewriteCtorEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertionSort_traverse___at_Lean_Meta_Simp_rewrite___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_tryRewriteCtorEq_match__1___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__7; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11; lean_object* l_Lean_Meta_SimpLemma_getValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__2(lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__16; +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__3___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite___closed__5; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__1; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2; lean_object* l_Lean_Meta_Simp_tryRewriteCtorEq_match__1(lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6; static lean_object* l_Lean_Meta_Simp_rewriteUsingDecide_x3f___closed__11; +static lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1; lean_object* l_Lean_Meta_Simp_synthesizeArgs_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_NameSSet_contains___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7; lean_object* l_Lean_Meta_Simp_synthesizeArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__2; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewrite___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewriteCtorEq_x3f___lambda__1___closed__3; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5; -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3; lean_object* l_Lean_Meta_Simp_rewrite_inErasedSet___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__3(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_rewrite_match__2___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -3947,7 +3961,83 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_apply_1(x_3, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_ctor_get(x_8, 0); +lean_inc(x_12); +lean_dec(x_8); +x_13 = lean_apply_2(x_4, x_11, x_12); +return x_13; +} +} +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__2___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_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__3___rarg(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; @@ -3965,15 +4055,1420 @@ x_7 = lean_apply_3(x_2, x_4, x_5, x_6); return x_7; } } -lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__1(lean_object* x_1) { +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_match__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f_match__1___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f_match__3___rarg), 2, 0); return x_2; } } -lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___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, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, 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_10); +return x_14; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rewrite"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; +x_2 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(":"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__7; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" ==> "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(":perm"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_14 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2; +x_65 = lean_st_ref_get(x_12, x_13); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_66, 3); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_ctor_get_uint8(x_67, sizeof(void*)*1); +lean_dec(x_67); +if (x_68 == 0) +{ +lean_object* x_69; uint8_t x_70; +x_69 = lean_ctor_get(x_65, 1); +lean_inc(x_69); +lean_dec(x_65); +x_70 = 0; +x_15 = x_70; +x_16 = x_69; +goto block_64; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = lean_ctor_get(x_65, 1); +lean_inc(x_71); +lean_dec(x_65); +x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, 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_15 = x_75; +x_16 = x_74; +goto block_64; +} +block_64: +{ +if (x_15 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_17 = lean_box(0); +x_18 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2(x_1, x_2, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +lean_dec(x_10); +lean_dec(x_7); +return x_18; +} +else +{ +uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); +x_20 = 1; +x_21 = l_Lean_Name_toString(x_4, x_20); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_ctor_get(x_3, 3); +lean_inc(x_23); +lean_dec(x_3); +x_24 = l_Nat_repr(x_23); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4; +x_27 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5; +x_29 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_31, 0, x_5); +lean_inc(x_2); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_2); +if (x_19 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_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_33 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_28); +x_34 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_35 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_31); +x_40 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_32); +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_35); +x_44 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_14, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2(x_1, x_2, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_46); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_48 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11; +x_49 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_49, 0, x_30); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_31); +x_56 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9; +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_32); +x_59 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_51); +x_60 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_14, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2(x_1, x_2, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_62); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_61); +return x_63; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__1___boxed), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", perm rejected "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +lean_dec(x_6); +x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +return x_16; +} +else +{ +uint8_t x_17; +x_17 = lean_expr_lt(x_2, x_5); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_dec(x_1); +x_18 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2; +x_54 = lean_st_ref_get(x_12, x_13); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_55, 3); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_ctor_get_uint8(x_56, sizeof(void*)*1); +lean_dec(x_56); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_54, 1); +lean_inc(x_58); +lean_dec(x_54); +x_59 = 0; +x_19 = x_59; +x_20 = x_58; +goto block_53; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_dec(x_54); +x_61 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_18, x_7, x_8, x_9, x_10, x_11, x_12, 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_19 = x_64; +x_20 = x_63; +goto block_53; +} +block_53: +{ +lean_object* x_21; +x_21 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1; +if (x_19 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_box(0); +x_23 = lean_apply_8(x_21, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +return x_23; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_24 = 1; +x_25 = l_Lean_Name_toString(x_4, x_24); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_ctor_get(x_3, 3); +lean_inc(x_27); +lean_dec(x_3); +x_28 = l_Nat_repr(x_27); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4; +x_31 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5; +x_33 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_35, 0, x_5); +x_36 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_36, 0, x_2); +x_37 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11; +x_38 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_38, 0, x_34); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_35); +x_45 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9; +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_36); +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_40); +x_49 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_18, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_apply_8(x_21, x_50, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +return x_66; +} +} +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +x_14 = l_Lean_Expr_appArg_x21(x_1); +lean_dec(x_1); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_15 = l_Lean_Meta_instantiateMVars(x_14, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_expr_eqv(x_5, x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_free_object(x_15); +x_20 = lean_box(0); +x_21 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4(x_2, x_17, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_box(0); +lean_ctor_set(x_15, 0, x_22); +return x_15; +} +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_15, 0); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_15); +x_25 = lean_expr_eqv(x_5, x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_box(0); +x_27 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4(x_2, x_23, x_3, x_4, x_5, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_23); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_24); +return x_29; +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_15); +if (x_30 == 0) +{ +return x_15; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", has unassigned metavariables after unification"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_7); +x_15 = l_Lean_mkAppN(x_1, x_2); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_16 = l_Lean_Meta_instantiateMVars(x_15, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_17); +x_19 = l_Lean_Meta_hasAssignableMVar(x_17, x_10, x_11, x_12, x_13, x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_box(0); +x_24 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__5(x_3, x_17, x_4, x_5, x_6, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_22); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_3); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +x_26 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2; +x_66 = lean_st_ref_get(x_13, x_25); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_67, 3); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_ctor_get_uint8(x_68, sizeof(void*)*1); +lean_dec(x_68); +if (x_69 == 0) +{ +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +lean_dec(x_66); +x_71 = 0; +x_27 = x_71; +x_28 = x_70; +goto block_65; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_72 = lean_ctor_get(x_66, 1); +lean_inc(x_72); +lean_dec(x_66); +x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_72); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_unbox(x_74); +lean_dec(x_74); +x_27 = x_76; +x_28 = x_75; +goto block_65; +} +block_65: +{ +lean_object* x_29; +x_29 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1; +if (x_27 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_5); +lean_dec(x_4); +x_30 = lean_box(0); +x_31 = lean_apply_8(x_29, x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +return x_31; +} +else +{ +uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*5 + 1); +x_33 = 1; +x_34 = l_Lean_Name_toString(x_5, x_33); +x_35 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_ctor_get(x_4, 3); +lean_inc(x_36); +lean_dec(x_4); +x_37 = l_Nat_repr(x_36); +x_38 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4; +x_40 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5; +x_42 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_43, 0, x_35); +lean_ctor_set(x_43, 1, x_42); +if (x_32 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_44 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +x_45 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_26, x_49, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_apply_8(x_29, x_51, x_8, x_9, x_10, x_11, x_12, x_13, x_52); +return x_53; +} +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 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11; +x_55 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_55, 0, x_43); +lean_ctor_set(x_55, 1, x_54); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_57 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +x_59 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2; +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_26, x_60, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +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_apply_8(x_29, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_63); +return x_64; +} +} +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_77 = !lean_is_exclusive(x_16); +if (x_77 == 0) +{ +return x_16; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_16, 0); +x_79 = lean_ctor_get(x_16, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_16); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unify"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; +x_2 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", failed to unify "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" with "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +x_16 = l_Lean_Meta_isExprDefEq(x_7, x_8, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1; +x_21 = l_Lean_Expr_isMVar(x_7); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_22 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2; +x_74 = lean_st_ref_get(x_14, x_19); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_75, 3); +lean_inc(x_76); +lean_dec(x_75); +x_77 = lean_ctor_get_uint8(x_76, sizeof(void*)*1); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_74, 1); +lean_inc(x_78); +lean_dec(x_74); +x_79 = 0; +x_23 = x_79; +x_24 = x_78; +goto block_73; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_80 = lean_ctor_get(x_74, 1); +lean_inc(x_80); +lean_dec(x_74); +x_81 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_80); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_unbox(x_82); +lean_dec(x_82); +x_23 = x_84; +x_24 = x_83; +goto block_73; +} +block_73: +{ +if (x_23 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_25 = lean_box(0); +x_26 = lean_apply_8(x_20, x_25, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +return x_26; +} +else +{ +uint8_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_27 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); +x_28 = l_Lean_Meta_SimpLemma_getName(x_1); +x_29 = 1; +x_30 = l_Lean_Name_toString(x_28, x_29); +x_31 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_ctor_get(x_1, 3); +lean_inc(x_32); +lean_dec(x_1); +x_33 = l_Nat_repr(x_32); +x_34 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_35 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4; +x_36 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5; +x_38 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_39, 0, x_31); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_40, 0, x_7); +x_41 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_41, 0, x_8); +if (x_27 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_42 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_37); +x_43 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_40); +x_49 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_41); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_44); +x_53 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_22, x_52, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_apply_8(x_20, x_54, x_9, x_10, x_11, x_12, x_13, x_14, x_55); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_57 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11; +x_58 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_58, 0, x_39); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_59, 0, x_58); +x_60 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4; +x_63 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_40); +x_65 = l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6; +x_66 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_41); +x_68 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_60); +x_69 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_22, x_68, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_apply_8(x_20, x_70, x_9, x_10, x_11, x_12, x_13, x_14, x_71); +return x_72; +} +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_85 = lean_box(0); +x_86 = lean_apply_8(x_20, x_85, x_9, x_10, x_11, x_12, x_13, x_14, x_19); +return x_86; +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_7); +x_87 = lean_ctor_get(x_16, 1); +lean_inc(x_87); +lean_dec(x_16); +x_88 = l_Lean_Meta_SimpLemma_getName(x_1); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_88); +x_89 = l_Lean_Meta_Simp_synthesizeArgs(x_88, x_4, x_5, x_2, x_9, x_10, x_11, x_12, x_13, x_14, x_87); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_unbox(x_90); +lean_dec(x_90); +if (x_91 == 0) +{ +uint8_t x_92; +lean_dec(x_88); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_89); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_89, 0); +lean_dec(x_93); +x_94 = lean_box(0); +lean_ctor_set(x_89, 0, x_94); +return x_89; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_89, 1); +lean_inc(x_95); +lean_dec(x_89); +x_96 = lean_box(0); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_89, 1); +lean_inc(x_98); +lean_dec(x_89); +x_99 = lean_box(0); +x_100 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6(x_3, x_4, x_6, x_1, x_88, x_8, x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_98); +return x_100; +} +} +else +{ +uint8_t x_101; +lean_dec(x_88); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_101 = !lean_is_exclusive(x_89); +if (x_101 == 0) +{ +return x_89; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_89, 0); +x_103 = lean_ctor_get(x_89, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_89); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +} +else +{ +uint8_t x_105; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_105 = !lean_is_exclusive(x_16); +if (x_105 == 0) +{ +return x_16; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_16, 0); +x_107 = lean_ctor_get(x_16, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_16); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +return x_14; +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_nat_dec_le(x_12, x_3); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_2, x_14); +if (x_15 == 0) +{ +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_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_2, x_16); +lean_dec(x_2); +x_18 = lean_ctor_get(x_4, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_19); +lean_dec(x_4); +x_20 = l_Lean_Expr_appArg_x21(x_19); +x_21 = lean_array_push(x_18, x_20); +x_22 = l_Lean_Expr_appFn_x21(x_19); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_ctor_get(x_1, 2); +x_25 = lean_nat_add(x_3, x_24); +lean_dec(x_3); +x_2 = x_17; +x_3 = x_25; +x_4 = x_23; +goto _start; +} +else +{ +lean_object* x_27; +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_11); +return x_27; +} +} +else +{ +lean_object* x_28; +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_4); +lean_ctor_set(x_28, 1, x_11); +return x_28; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_uget(x_1, x_3); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_15 = l_Lean_Meta_mkCongrFun(x_4, x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = x_3 + x_18; +x_3 = x_19; +x_4 = x_16; +x_11 = x_17; +goto _start; +} +else +{ +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +return x_15; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_15); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +} +lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3___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, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -4026,15 +5521,15 @@ return x_17; } } } -lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___rarg), 9, 0); +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3___rarg), 9, 0); return x_3; } } -lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___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, lean_object* x_8) { +lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4___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, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; @@ -4086,11 +5581,11 @@ return x_18; } } } -lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4___rarg), 8, 0); return x_2; } } @@ -4102,959 +5597,16 @@ x_9 = l_Lean_Meta_SimpLemma_getValue(x_1, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -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_Lean_Meta_Simp_tryLemma_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_1); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_2); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, 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_10); -return x_14; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("rewrite"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; -x_2 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(":"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4() { +static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" ==> "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(":perm"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_14 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2; -x_65 = lean_st_ref_get(x_12, x_13); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_66, 3); -lean_inc(x_67); -lean_dec(x_66); -x_68 = lean_ctor_get_uint8(x_67, sizeof(void*)*1); -lean_dec(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_65, 1); -lean_inc(x_69); -lean_dec(x_65); -x_70 = 0; -x_15 = x_70; -x_16 = x_69; -goto block_64; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_71 = lean_ctor_get(x_65, 1); -lean_inc(x_71); -lean_dec(x_65); -x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, 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_15 = x_75; -x_16 = x_74; -goto block_64; -} -block_64: -{ -if (x_15 == 0) -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_17 = lean_box(0); -x_18 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__3(x_1, x_2, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -lean_dec(x_10); -lean_dec(x_7); -return x_18; -} -else -{ -uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); -x_20 = 1; -x_21 = l_Lean_Name_toString(x_4, x_20); -x_22 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_ctor_get(x_3, 3); -lean_inc(x_23); -lean_dec(x_3); -x_24 = l_Nat_repr(x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4; -x_27 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5; -x_29 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -x_30 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_5); -lean_inc(x_2); -x_32 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_32, 0, x_2); -if (x_19 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_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_33 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_28); -x_34 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_36 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7; -x_38 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_31); -x_40 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_32); -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_35); -x_44 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_14, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__3(x_1, x_2, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_45); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_48 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11; -x_49 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_49, 0, x_30); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_31); -x_56 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_32); -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_51); -x_60 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_14, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__3(x_1, x_2, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_62); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_61); -return x_63; -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", perm rejected "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; -lean_dec(x_7); -x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_6); -x_16 = lean_box(0); -x_17 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4(x_1, x_2, x_3, x_4, x_5, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_expr_lt(x_2, x_5); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_1); -x_19 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2; -x_54 = lean_st_ref_get(x_13, x_14); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_55, 3); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_ctor_get_uint8(x_56, sizeof(void*)*1); -lean_dec(x_56); -if (x_57 == 0) -{ -lean_object* x_58; uint8_t x_59; -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = 0; -x_20 = x_59; -x_21 = x_58; -goto block_53; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_dec(x_54); -x_61 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_19, x_8, x_9, x_10, x_11, x_12, x_13, 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_20 = x_64; -x_21 = x_63; -goto block_53; -} -block_53: -{ -if (x_20 == 0) -{ -lean_object* x_22; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_6); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -else -{ -uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_23 = 1; -x_24 = l_Lean_Name_toString(x_4, x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_ctor_get(x_3, 3); -lean_inc(x_26); -lean_dec(x_3); -x_27 = l_Nat_repr(x_26); -x_28 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4; -x_30 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5; -x_32 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_33, 0, x_25); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_34, 0, x_5); -x_35 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_35, 0, x_2); -x_36 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11; -x_37 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_34); -x_44 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9; -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_35); -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_39); -x_48 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_19, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_21); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_48, 0); -lean_dec(x_50); -lean_ctor_set(x_48, 0, x_6); -return x_48; -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_dec(x_48); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_6); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -} -else -{ -lean_object* x_65; lean_object* x_66; -lean_dec(x_6); -x_65 = lean_box(0); -x_66 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4(x_1, x_2, x_3, x_4, x_5, x_65, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -return x_66; -} -} -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; lean_object* x_16; -lean_dec(x_7); -x_15 = l_Lean_Expr_appArg_x21(x_1); -lean_dec(x_1); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_16 = l_Lean_Meta_instantiateMVars(x_15, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_16) == 0) -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -x_20 = lean_expr_eqv(x_5, x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_free_object(x_16); -x_21 = lean_box(0); -x_22 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__5(x_2, x_18, x_3, x_4, x_5, x_6, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_19); -return x_22; -} -else -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_ctor_set(x_16, 0, x_6); -return x_16; -} -} -else -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -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_expr_eqv(x_5, x_23); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_box(0); -x_27 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__5(x_2, x_23, x_3, x_4, x_5, x_6, x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_24); -return x_27; -} -else -{ -lean_object* x_28; -lean_dec(x_23); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_6); -lean_ctor_set(x_28, 1, x_24); -return x_28; -} -} -} -else -{ -uint8_t x_29; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_16); -if (x_29 == 0) -{ -return x_16; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_16); -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; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", has unassigned metavariables after unification"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_8); -x_16 = l_Lean_mkAppN(x_1, x_2); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_17 = l_Lean_Meta_instantiateMVars(x_16, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_18); -x_20 = l_Lean_Meta_hasAssignableMVar(x_18, x_11, x_12, x_13, x_14, x_19); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_unbox(x_21); -lean_dec(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = lean_box(0); -x_25 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__6(x_3, x_18, x_4, x_5, x_6, x_7, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -lean_dec(x_18); -lean_dec(x_6); -lean_dec(x_3); -x_26 = lean_ctor_get(x_20, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_27 = x_20; -} else { - lean_dec_ref(x_20); - x_27 = lean_box(0); -} -x_28 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2; -x_68 = lean_st_ref_get(x_14, x_26); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_69, 3); -lean_inc(x_70); -lean_dec(x_69); -x_71 = lean_ctor_get_uint8(x_70, sizeof(void*)*1); -lean_dec(x_70); -if (x_71 == 0) -{ -lean_object* x_72; uint8_t x_73; -x_72 = lean_ctor_get(x_68, 1); -lean_inc(x_72); -lean_dec(x_68); -x_73 = 0; -x_29 = x_73; -x_30 = x_72; -goto block_67; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_74 = lean_ctor_get(x_68, 1); -lean_inc(x_74); -lean_dec(x_68); -x_75 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_74); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_unbox(x_76); -lean_dec(x_76); -x_29 = x_78; -x_30 = x_77; -goto block_67; -} -block_67: -{ -if (x_29 == 0) -{ -lean_object* x_31; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_27)) { - x_31 = lean_alloc_ctor(0, 2, 0); -} else { - x_31 = x_27; -} -lean_ctor_set(x_31, 0, x_7); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -else -{ -uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_27); -x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*5 + 1); -x_33 = 1; -x_34 = l_Lean_Name_toString(x_5, x_33); -x_35 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_ctor_get(x_4, 3); -lean_inc(x_36); -lean_dec(x_4); -x_37 = l_Nat_repr(x_36); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4; -x_40 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5; -x_42 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_43, 0, x_35); -lean_ctor_set(x_43, 1, x_42); -if (x_32 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_44 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -x_45 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_28, x_49, x_9, x_10, x_11, x_12, x_13, x_14, x_30); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) -{ -lean_object* x_52; -x_52 = lean_ctor_get(x_50, 0); -lean_dec(x_52); -lean_ctor_set(x_50, 0, x_7); -return x_50; -} -else -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_7); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -else -{ -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; uint8_t x_63; -x_55 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11; -x_56 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_55); -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -x_60 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2; -x_61 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_28, x_61, x_9, x_10, x_11, x_12, x_13, x_14, x_30); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) -{ -lean_object* x_64; -x_64 = lean_ctor_get(x_62, 0); -lean_dec(x_64); -lean_ctor_set(x_62, 0, x_7); -return x_62; -} -else -{ -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_dec(x_62); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_7); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -} -} -} -else -{ -uint8_t x_79; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_79 = !lean_is_exclusive(x_17); -if (x_79 == 0) -{ -return x_17; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_17, 0); -x_81 = lean_ctor_get(x_17, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_17); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unify"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__6; -x_2 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", failed to unify "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" with "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__8(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* l_Lean_Meta_Simp_tryLemma_x3f___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -5118,428 +5670,618 @@ lean_inc(x_7); x_28 = lean_whnf(x_26, x_7, x_8, x_9, x_10, x_27); 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; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Expr_appFn_x21(x_29); -x_32 = l_Lean_Expr_appArg_x21(x_31); -lean_dec(x_31); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_1); -lean_inc(x_32); -x_33 = l_Lean_Meta_isExprDefEq(x_32, x_1, x_7, x_8, x_9, x_10, x_30); -if (lean_obj_tag(x_33) == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) +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; uint8_t x_37; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_28, 1); +x_32 = l_Lean_Expr_appFn_x21(x_30); +x_33 = l_Lean_Expr_appArg_x21(x_32); +lean_dec(x_32); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l_Lean_Expr_getAppNumArgsAux(x_33, x_34); +x_36 = l_Lean_Expr_getAppNumArgsAux(x_1, x_34); +x_37 = lean_nat_dec_eq(x_36, x_35); +if (x_37 == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_29); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_4); -lean_dec(x_3); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_37 = x_33; -} else { - lean_dec_ref(x_33); - x_37 = lean_box(0); -} -x_38 = l_Lean_Expr_isMVar(x_32); +uint8_t x_38; +x_38 = lean_nat_dec_lt(x_36, x_35); if (x_38 == 0) { -lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_39 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2; -x_91 = lean_st_ref_get(x_10, x_36); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_92, 3); -lean_inc(x_93); -lean_dec(x_92); -x_94 = lean_ctor_get_uint8(x_93, sizeof(void*)*1); -lean_dec(x_93); -if (x_94 == 0) -{ -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_dec(x_91); -x_96 = 0; -x_40 = x_96; -x_41 = x_95; -goto block_90; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_97 = lean_ctor_get(x_91, 1); -lean_inc(x_97); -lean_dec(x_91); -x_98 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_97); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_unbox(x_99); -lean_dec(x_99); -x_40 = x_101; -x_41 = x_100; -goto block_90; -} -block_90: -{ -if (x_40 == 0) -{ -lean_object* x_42; -lean_dec(x_32); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -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_15); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_37); -x_43 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 1); -x_44 = l_Lean_Meta_SimpLemma_getName(x_2); -x_45 = l_Lean_Name_toString(x_44, x_16); -x_46 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = lean_ctor_get(x_2, 3); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_free_object(x_28); +x_39 = lean_nat_sub(x_36, x_35); +lean_dec(x_35); +lean_dec(x_36); +x_40 = lean_unsigned_to_nat(1u); +lean_inc(x_39); +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_40); +x_42 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1; +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_1); +x_44 = l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(x_41, x_39, x_34, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +lean_dec(x_41); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_ctor_get(x_45, 0); lean_inc(x_47); -lean_dec(x_2); -x_48 = l_Nat_repr(x_47); -x_49 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4; -x_51 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5; -x_53 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -x_54 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_54, 0, x_46); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_55, 0, x_32); -x_56 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_56, 0, x_1); -if (x_43 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_57 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_52); -x_58 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_60 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4; -x_62 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_55); -x_64 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6; -x_65 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_56); -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_59); -x_68 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_39, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_41); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -lean_ctor_set(x_68, 0, x_15); -return x_68; -} -else -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_15); -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; 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; uint8_t x_86; -x_73 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11; -x_74 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_74, 0, x_54); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_75, 0, x_74); -x_76 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_77 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4; -x_79 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_55); -x_81 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_56); -x_84 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_76); -x_85 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_39, x_84, x_5, x_6, x_7, x_8, x_9, x_10, x_41); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) -{ -lean_object* x_87; -x_87 = lean_ctor_get(x_85, 0); -lean_dec(x_87); -lean_ctor_set(x_85, 0, x_15); -return x_85; -} -else -{ -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_85, 1); -lean_inc(x_88); -lean_dec(x_85); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_15); -lean_ctor_set(x_89, 1, x_88); -return x_89; -} -} -} -} -} -else -{ -lean_object* x_102; -lean_dec(x_32); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -if (lean_is_scalar(x_37)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_37; -} -lean_ctor_set(x_102, 0, x_15); -lean_ctor_set(x_102, 1, x_36); -return x_102; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_32); -x_103 = lean_ctor_get(x_33, 1); -lean_inc(x_103); -lean_dec(x_33); -x_104 = l_Lean_Meta_SimpLemma_getName(x_2); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_104); -x_105 = l_Lean_Meta_Simp_synthesizeArgs(x_104, x_22, x_23, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_103); -if (lean_obj_tag(x_105) == 0) +x_49 = l_Lean_Meta_Simp_tryLemma_x3f_go(x_2, x_3, x_4, x_22, x_23, x_30, x_33, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_46); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_106; uint8_t x_107; -x_106 = lean_ctor_get(x_105, 0); +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +lean_dec(x_47); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_51 = !lean_is_exclusive(x_49); +if (x_51 == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_49, 0); +lean_dec(x_52); +lean_ctor_set(x_49, 0, x_15); +return x_49; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_49, 1); +lean_inc(x_53); +lean_dec(x_49); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_15); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +else +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_50, 0); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +if (lean_obj_tag(x_57) == 0) +{ +uint8_t x_58; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_58 = !lean_is_exclusive(x_49); +if (x_58 == 0) +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_49, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_56); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 0); +x_62 = lean_ctor_get(x_56, 1); +lean_dec(x_62); +x_63 = l_Lean_mkAppN(x_61, x_47); +lean_ctor_set(x_56, 1, x_15); +lean_ctor_set(x_56, 0, x_63); +return x_49; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_56, 0); +lean_inc(x_64); +lean_dec(x_56); +x_65 = l_Lean_mkAppN(x_64, x_47); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_15); +lean_ctor_set(x_50, 0, x_66); +return x_49; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_49, 1); +lean_inc(x_67); +lean_dec(x_49); +x_68 = lean_ctor_get(x_56, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_69 = x_56; +} else { + lean_dec_ref(x_56); + x_69 = lean_box(0); +} +x_70 = l_Lean_mkAppN(x_68, x_47); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_15); +lean_ctor_set(x_50, 0, x_71); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_50); +lean_ctor_set(x_72, 1, x_67); +return x_72; +} +} +else +{ +lean_object* x_73; uint8_t x_74; +x_73 = lean_ctor_get(x_49, 1); +lean_inc(x_73); +lean_dec(x_49); +x_74 = !lean_is_exclusive(x_56); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_75 = lean_ctor_get(x_56, 0); +x_76 = lean_ctor_get(x_56, 1); +lean_dec(x_76); +x_77 = !lean_is_exclusive(x_57); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_57, 0); +x_79 = lean_array_get_size(x_47); +x_80 = lean_usize_of_nat(x_79); +lean_dec(x_79); +x_81 = 0; +x_82 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_47, x_80, x_81, x_78, x_5, x_6, x_7, x_8, x_9, x_10, x_73); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_82, 0); +x_85 = l_Lean_mkAppN(x_75, x_47); +lean_ctor_set(x_57, 0, x_84); +lean_ctor_set(x_56, 0, x_85); +lean_ctor_set(x_82, 0, x_50); +return x_82; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_82, 0); +x_87 = lean_ctor_get(x_82, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_82); +x_88 = l_Lean_mkAppN(x_75, x_47); +lean_ctor_set(x_57, 0, x_86); +lean_ctor_set(x_56, 0, x_88); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_50); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +else +{ +uint8_t x_90; +lean_free_object(x_57); +lean_free_object(x_56); +lean_dec(x_75); +lean_free_object(x_50); +lean_dec(x_47); +x_90 = !lean_is_exclusive(x_82); +if (x_90 == 0) +{ +return x_82; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_82, 0); +x_92 = lean_ctor_get(x_82, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_82); +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_object* x_95; size_t x_96; size_t x_97; lean_object* x_98; +x_94 = lean_ctor_get(x_57, 0); +lean_inc(x_94); +lean_dec(x_57); +x_95 = lean_array_get_size(x_47); +x_96 = lean_usize_of_nat(x_95); +lean_dec(x_95); +x_97 = 0; +x_98 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_47, x_96, x_97, x_94, x_5, x_6, x_7, x_8, x_9, x_10, x_73); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = l_Lean_mkAppN(x_75, x_47); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_99); +lean_ctor_set(x_56, 1, x_103); +lean_ctor_set(x_56, 0, x_102); +if (lean_is_scalar(x_101)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_101; +} +lean_ctor_set(x_104, 0, x_50); +lean_ctor_set(x_104, 1, x_100); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_free_object(x_56); +lean_dec(x_75); +lean_free_object(x_50); +lean_dec(x_47); +x_105 = lean_ctor_get(x_98, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_98, 1); lean_inc(x_106); -x_107 = lean_unbox(x_106); -lean_dec(x_106); -if (x_107 == 0) -{ -uint8_t x_108; -lean_dec(x_104); -lean_dec(x_29); -lean_dec(x_22); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_108 = !lean_is_exclusive(x_105); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_105, 0); -lean_dec(x_109); -lean_ctor_set(x_105, 0, x_15); -return x_105; +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_107 = x_98; +} else { + lean_dec_ref(x_98); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} } else { -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_105, 1); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; size_t x_113; size_t x_114; lean_object* x_115; +x_109 = lean_ctor_get(x_56, 0); +lean_inc(x_109); +lean_dec(x_56); +x_110 = lean_ctor_get(x_57, 0); lean_inc(x_110); -lean_dec(x_105); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_15); -lean_ctor_set(x_111, 1, x_110); -return x_111; +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + x_111 = x_57; +} else { + lean_dec_ref(x_57); + x_111 = lean_box(0); } -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_dec(x_105); -x_113 = lean_box(0); -x_114 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__7(x_4, x_22, x_29, x_2, x_104, x_1, x_15, x_113, x_5, x_6, x_7, x_8, x_9, x_10, x_112); -return x_114; -} -} -else -{ -uint8_t x_115; -lean_dec(x_104); -lean_dec(x_29); -lean_dec(x_22); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +x_112 = lean_array_get_size(x_47); +x_113 = lean_usize_of_nat(x_112); +lean_dec(x_112); +x_114 = 0; +x_115 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_47, x_113, x_114, x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_73); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_115 = !lean_is_exclusive(x_105); -if (x_115 == 0) +if (lean_obj_tag(x_115) == 0) { -return x_105; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_105, 0); -x_117 = lean_ctor_get(x_105, 1); -lean_inc(x_117); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_116 = lean_ctor_get(x_115, 0); lean_inc(x_116); -lean_dec(x_105); -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; +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; +} else { + lean_dec_ref(x_115); + x_118 = lean_box(0); } +x_119 = l_Lean_mkAppN(x_109, x_47); +if (lean_is_scalar(x_111)) { + x_120 = lean_alloc_ctor(1, 1, 0); +} else { + x_120 = x_111; } +lean_ctor_set(x_120, 0, x_116); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +lean_ctor_set(x_50, 0, x_121); +if (lean_is_scalar(x_118)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_118; } -} -else -{ -uint8_t x_119; -lean_dec(x_32); -lean_dec(x_29); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_119 = !lean_is_exclusive(x_33); -if (x_119 == 0) -{ -return x_33; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_33, 0); -x_121 = lean_ctor_get(x_33, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_33); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); +lean_ctor_set(x_122, 0, x_50); +lean_ctor_set(x_122, 1, x_117); return x_122; } +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_111); +lean_dec(x_109); +lean_free_object(x_50); +lean_dec(x_47); +x_123 = lean_ctor_get(x_115, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_115, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_125 = x_115; +} else { + lean_dec_ref(x_115); + x_125 = lean_box(0); +} +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_125; +} +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} } } else { -uint8_t x_123; +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_50, 0); +lean_inc(x_127); +lean_dec(x_50); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_129 = lean_ctor_get(x_49, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_130 = x_49; +} else { + lean_dec_ref(x_49); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_127, 0); +lean_inc(x_131); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_132 = x_127; +} else { + lean_dec_ref(x_127); + x_132 = lean_box(0); +} +x_133 = l_Lean_mkAppN(x_131, x_47); +if (lean_is_scalar(x_132)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_132; +} +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_15); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_134); +if (lean_is_scalar(x_130)) { + x_136 = lean_alloc_ctor(0, 2, 0); +} else { + x_136 = x_130; +} +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_129); +return x_136; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; size_t x_143; size_t x_144; lean_object* x_145; +x_137 = lean_ctor_get(x_49, 1); +lean_inc(x_137); +lean_dec(x_49); +x_138 = lean_ctor_get(x_127, 0); +lean_inc(x_138); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_139 = x_127; +} else { + lean_dec_ref(x_127); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_128, 0); +lean_inc(x_140); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + x_141 = x_128; +} else { + lean_dec_ref(x_128); + x_141 = lean_box(0); +} +x_142 = lean_array_get_size(x_47); +x_143 = lean_usize_of_nat(x_142); +lean_dec(x_142); +x_144 = 0; +x_145 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_47, x_143, x_144, x_140, x_5, x_6, x_7, x_8, x_9, x_10, x_137); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = l_Lean_mkAppN(x_138, x_47); +if (lean_is_scalar(x_141)) { + x_150 = lean_alloc_ctor(1, 1, 0); +} else { + x_150 = x_141; +} +lean_ctor_set(x_150, 0, x_146); +if (lean_is_scalar(x_139)) { + x_151 = lean_alloc_ctor(0, 2, 0); +} else { + x_151 = x_139; +} +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_151); +if (lean_is_scalar(x_148)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_148; +} +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_147); +return x_153; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_141); +lean_dec(x_139); +lean_dec(x_138); +lean_dec(x_47); +x_154 = lean_ctor_get(x_145, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_145, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_156 = x_145; +} else { + lean_dec_ref(x_145); + x_156 = lean_box(0); +} +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_156; +} +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_155); +return x_157; +} +} +} +} +} +else +{ +uint8_t x_158; +lean_dec(x_47); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_158 = !lean_is_exclusive(x_49); +if (x_158 == 0) +{ +return x_49; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_49, 0); +x_160 = lean_ctor_get(x_49, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_49); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; +} +} +} +else +{ +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_30); lean_dec(x_23); lean_dec(x_22); lean_dec(x_10); @@ -5552,29 +6294,387 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_123 = !lean_is_exclusive(x_28); -if (x_123 == 0) +lean_ctor_set(x_28, 0, x_15); +return x_28; +} +} +else +{ +lean_object* x_162; +lean_dec(x_36); +lean_dec(x_35); +lean_free_object(x_28); +x_162 = l_Lean_Meta_Simp_tryLemma_x3f_go(x_2, x_3, x_4, x_22, x_23, x_30, x_33, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +return x_162; +} +} +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; lean_object* x_169; uint8_t x_170; +x_163 = lean_ctor_get(x_28, 0); +x_164 = lean_ctor_get(x_28, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_28); +x_165 = l_Lean_Expr_appFn_x21(x_163); +x_166 = l_Lean_Expr_appArg_x21(x_165); +lean_dec(x_165); +x_167 = lean_unsigned_to_nat(0u); +x_168 = l_Lean_Expr_getAppNumArgsAux(x_166, x_167); +x_169 = l_Lean_Expr_getAppNumArgsAux(x_1, x_167); +x_170 = lean_nat_dec_eq(x_169, x_168); +if (x_170 == 0) +{ +uint8_t x_171; +x_171 = lean_nat_dec_lt(x_169, x_168); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_172 = lean_nat_sub(x_169, x_168); +lean_dec(x_168); +lean_dec(x_169); +x_173 = lean_unsigned_to_nat(1u); +lean_inc(x_172); +x_174 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_174, 0, x_167); +lean_ctor_set(x_174, 1, x_172); +lean_ctor_set(x_174, 2, x_173); +x_175 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1; +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_1); +x_177 = l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(x_174, x_172, x_167, x_176, x_5, x_6, x_7, x_8, x_9, x_10, x_164); +lean_dec(x_174); +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_180 = lean_ctor_get(x_178, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_178, 1); +lean_inc(x_181); +lean_dec(x_178); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_182 = l_Lean_Meta_Simp_tryLemma_x3f_go(x_2, x_3, x_4, x_22, x_23, x_163, x_166, x_181, x_5, x_6, x_7, x_8, x_9, x_10, x_179); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_180); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 2, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_15); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + x_188 = x_183; +} else { + lean_dec_ref(x_183); + x_188 = lean_box(0); +} +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +if (lean_obj_tag(x_189) == 0) +{ +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_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_190 = lean_ctor_get(x_182, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_191 = x_182; +} else { + lean_dec_ref(x_182); + x_191 = lean_box(0); +} +x_192 = lean_ctor_get(x_187, 0); +lean_inc(x_192); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_193 = x_187; +} else { + lean_dec_ref(x_187); + x_193 = lean_box(0); +} +x_194 = l_Lean_mkAppN(x_192, x_180); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_15); +if (lean_is_scalar(x_188)) { + x_196 = lean_alloc_ctor(1, 1, 0); +} else { + x_196 = x_188; +} +lean_ctor_set(x_196, 0, x_195); +if (lean_is_scalar(x_191)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_191; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_190); +return x_197; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; size_t x_204; size_t x_205; lean_object* x_206; +x_198 = lean_ctor_get(x_182, 1); +lean_inc(x_198); +lean_dec(x_182); +x_199 = lean_ctor_get(x_187, 0); +lean_inc(x_199); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_200 = x_187; +} else { + lean_dec_ref(x_187); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_189, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + x_202 = x_189; +} else { + lean_dec_ref(x_189); + x_202 = lean_box(0); +} +x_203 = lean_array_get_size(x_180); +x_204 = lean_usize_of_nat(x_203); +lean_dec(x_203); +x_205 = 0; +x_206 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_180, x_204, x_205, x_201, x_5, x_6, x_7, x_8, x_9, x_10, x_198); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_206) == 0) +{ +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_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_209 = x_206; +} else { + lean_dec_ref(x_206); + x_209 = lean_box(0); +} +x_210 = l_Lean_mkAppN(x_199, x_180); +if (lean_is_scalar(x_202)) { + x_211 = lean_alloc_ctor(1, 1, 0); +} else { + x_211 = x_202; +} +lean_ctor_set(x_211, 0, x_207); +if (lean_is_scalar(x_200)) { + x_212 = lean_alloc_ctor(0, 2, 0); +} else { + x_212 = x_200; +} +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +if (lean_is_scalar(x_188)) { + x_213 = lean_alloc_ctor(1, 1, 0); +} else { + x_213 = x_188; +} +lean_ctor_set(x_213, 0, x_212); +if (lean_is_scalar(x_209)) { + x_214 = lean_alloc_ctor(0, 2, 0); +} else { + x_214 = x_209; +} +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_208); +return x_214; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_dec(x_202); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_188); +lean_dec(x_180); +x_215 = lean_ctor_get(x_206, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_206, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_217 = x_206; +} else { + lean_dec_ref(x_206); + x_217 = lean_box(0); +} +if (lean_is_scalar(x_217)) { + x_218 = lean_alloc_ctor(1, 2, 0); +} else { + x_218 = x_217; +} +lean_ctor_set(x_218, 0, x_215); +lean_ctor_set(x_218, 1, x_216); +return x_218; +} +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_180); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_219 = lean_ctor_get(x_182, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_182, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_221 = x_182; +} else { + lean_dec_ref(x_182); + x_221 = lean_box(0); +} +if (lean_is_scalar(x_221)) { + x_222 = lean_alloc_ctor(1, 2, 0); +} else { + x_222 = x_221; +} +lean_ctor_set(x_222, 0, x_219); +lean_ctor_set(x_222, 1, x_220); +return x_222; +} +} +else +{ +lean_object* x_223; +lean_dec(x_169); +lean_dec(x_168); +lean_dec(x_166); +lean_dec(x_163); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_15); +lean_ctor_set(x_223, 1, x_164); +return x_223; +} +} +else +{ +lean_object* x_224; +lean_dec(x_169); +lean_dec(x_168); +x_224 = l_Lean_Meta_Simp_tryLemma_x3f_go(x_2, x_3, x_4, x_22, x_23, x_163, x_166, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_164); +return x_224; +} +} +} +else +{ +uint8_t x_225; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_225 = !lean_is_exclusive(x_28); +if (x_225 == 0) { return x_28; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_28, 0); -x_125 = lean_ctor_get(x_28, 1); -lean_inc(x_125); -lean_inc(x_124); +lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_28, 0); +x_227 = lean_ctor_get(x_28, 1); +lean_inc(x_227); +lean_inc(x_226); lean_dec(x_28); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_226); +lean_ctor_set(x_228, 1, x_227); +return x_228; } } } else { -uint8_t x_127; +uint8_t x_229; lean_dec(x_23); lean_dec(x_22); lean_dec(x_10); @@ -5587,29 +6687,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_127 = !lean_is_exclusive(x_25); -if (x_127 == 0) +x_229 = !lean_is_exclusive(x_25); +if (x_229 == 0) { return x_25; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_25, 0); -x_129 = lean_ctor_get(x_25, 1); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_25, 0); +x_231 = lean_ctor_get(x_25, 1); +lean_inc(x_231); +lean_inc(x_230); lean_dec(x_25); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +return x_232; } } } else { -uint8_t x_131; +uint8_t x_233; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5620,29 +6720,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_131 = !lean_is_exclusive(x_18); -if (x_131 == 0) +x_233 = !lean_is_exclusive(x_18); +if (x_233 == 0) { return x_18; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_18, 0); -x_133 = lean_ctor_get(x_18, 1); -lean_inc(x_133); -lean_inc(x_132); +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_18, 0); +x_235 = lean_ctor_get(x_18, 1); +lean_inc(x_235); +lean_inc(x_234); lean_dec(x_18); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -return x_134; +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; } } } else { -uint8_t x_135; +uint8_t x_237; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5653,23 +6753,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_135 = !lean_is_exclusive(x_12); -if (x_135 == 0) +x_237 = !lean_is_exclusive(x_12); +if (x_237 == 0) { return x_12; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_12, 0); -x_137 = lean_ctor_get(x_12, 1); -lean_inc(x_137); -lean_inc(x_136); +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_12, 0); +x_239 = lean_ctor_get(x_12, 1); +lean_inc(x_239); +lean_inc(x_238); lean_dec(x_12); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; +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; } } } @@ -5681,14 +6781,44 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_2); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f___lambda__1___boxed), 8, 1); lean_closure_set(x_11, 0, x_2); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8), 11, 3); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Simp_tryLemma_x3f___lambda__2), 11, 3); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_2); lean_closure_set(x_12, 2, x_3); -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___rarg), 9, 2); +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Simp_tryLemma_x3f___spec__3___rarg), 9, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___rarg(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryLemma_x3f___spec__4___rarg(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Std_Range_forIn_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_12; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_tryLemma_x3f___spec__2(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); return x_14; } } @@ -5702,49 +6832,6 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Meta_Simp_tryLemma_x3f___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -return x_14; -} -} lean_object* l_Lean_Meta_Simp_rewrite_inErasedSet_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -6279,35 +7366,36 @@ return x_2; lean_object* l_Lean_Meta_Simp_rewrite(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) { _start: { -lean_object* x_13; +uint8_t x_13; lean_object* x_14; +x_13 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_13 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_2, x_1, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +x_14 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_2, x_1, x_13, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Array_isEmpty___rarg(x_14); -if (x_16 == 0) +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Array_isEmpty___rarg(x_15); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_5); -x_17 = lean_array_get_size(x_14); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_insertionSort_traverse___at_Lean_Meta_Simp_rewrite___spec__1(x_14, x_18, x_17); -x_20 = lean_box(0); -x_21 = lean_array_get_size(x_19); -x_22 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_23 = 0; -x_24 = l_Lean_Meta_Simp_rewrite___closed__1; +x_18 = lean_array_get_size(x_15); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Array_insertionSort_traverse___at_Lean_Meta_Simp_rewrite___spec__1(x_15, x_19, x_18); +x_21 = lean_box(0); +x_22 = lean_array_get_size(x_20); +x_23 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_24 = 0; +x_25 = l_Lean_Meta_Simp_rewrite___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -6315,35 +7403,35 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite___spec__3(x_1, x_3, x_4, x_24, x_19, x_22, x_23, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -lean_dec(x_19); -if (lean_obj_tag(x_25) == 0) +x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite___spec__3(x_1, x_3, x_4, x_25, x_20, x_23, x_24, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +lean_dec(x_20); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); +lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_25, 1); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_box(0); -x_30 = l_Lean_Meta_Simp_rewrite___lambda__1(x_1, x_20, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +lean_dec(x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_box(0); +x_31 = l_Lean_Meta_Simp_rewrite___lambda__1(x_1, x_21, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_29); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_30; +return x_31; } else { -uint8_t x_31; +uint8_t x_32; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -6351,37 +7439,37 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_25, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_27, 0); -lean_inc(x_33); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_33); -return x_25; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_25, 1); +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_26, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_28, 0); lean_inc(x_34); -lean_dec(x_25); -x_35 = lean_ctor_get(x_27, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_34); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_26, 1); lean_inc(x_35); -lean_dec(x_27); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -return x_36; +lean_dec(x_26); +x_36 = lean_ctor_get(x_28, 0); +lean_inc(x_36); +lean_dec(x_28); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } } else { -uint8_t x_37; +uint8_t x_38; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -6389,131 +7477,131 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_25); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_26); +if (x_38 == 0) { -return x_25; +return x_26; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_25, 0); -x_39 = lean_ctor_get(x_25, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_26, 0); +x_40 = lean_ctor_get(x_26, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_25); -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; +lean_dec(x_26); +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_41; uint8_t x_42; lean_object* x_43; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_14); +lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); -x_41 = l_Lean_Meta_Simp_rewrite___closed__6; -x_60 = lean_st_ref_get(x_11, x_15); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_61, 3); +x_42 = l_Lean_Meta_Simp_rewrite___closed__6; +x_61 = lean_st_ref_get(x_11, x_16); +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_61); -x_63 = lean_ctor_get_uint8(x_62, sizeof(void*)*1); +x_63 = lean_ctor_get(x_62, 3); +lean_inc(x_63); lean_dec(x_62); -if (x_63 == 0) +x_64 = lean_ctor_get_uint8(x_63, sizeof(void*)*1); +lean_dec(x_63); +if (x_64 == 0) { -lean_object* x_64; uint8_t x_65; -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -lean_dec(x_60); -x_65 = 0; -x_42 = x_65; -x_43 = x_64; -goto block_59; +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_61, 1); +lean_inc(x_65); +lean_dec(x_61); +x_66 = 0; +x_43 = x_66; +x_44 = x_65; +goto block_60; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec(x_60); -x_67 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_66); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_dec(x_61); +x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__2(x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_unbox(x_68); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); lean_dec(x_68); -x_42 = x_70; -x_43 = x_69; -goto block_59; +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_43 = x_71; +x_44 = x_70; +goto block_60; } -block_59: +block_60: { -if (x_42 == 0) +if (x_43 == 0) { -lean_object* x_44; lean_object* x_45; +lean_object* x_45; lean_object* x_46; lean_dec(x_5); -x_44 = lean_box(0); -x_45 = l_Lean_Meta_Simp_rewrite___lambda__2(x_1, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +x_45 = lean_box(0); +x_46 = l_Lean_Meta_Simp_rewrite___lambda__2(x_1, x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_44); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_45; +return x_46; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_46 = l_Lean_stringToMessageData(x_5); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_47 = l_Lean_stringToMessageData(x_5); lean_dec(x_5); -x_47 = l_Lean_Meta_Simp_rewrite___closed__8; -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_Meta_Simp_rewrite___closed__10; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); +x_48 = l_Lean_Meta_Simp_rewrite___closed__8; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_Meta_Simp_rewrite___closed__10; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); lean_inc(x_1); -x_51 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_51, 0, x_1); -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_41, x_54, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +x_52 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_52, 0, x_1); +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1___closed__8; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(x_42, x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_Meta_Simp_rewrite___lambda__2(x_1, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Meta_Simp_rewrite___lambda__2(x_1, x_57, x_6, x_7, x_8, x_9, x_10, x_11, x_58); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_56); -return x_58; +lean_dec(x_57); +return x_59; } } } } else { -uint8_t x_71; +uint8_t x_72; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -6524,23 +7612,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_13); -if (x_71 == 0) +x_72 = !lean_is_exclusive(x_14); +if (x_72 == 0) { -return x_13; +return x_14; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_13, 0); -x_73 = lean_ctor_get(x_13, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_14, 0); +x_74 = lean_ctor_get(x_14, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_13); -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; +lean_dec(x_14); +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; } } } @@ -10214,6 +11302,7 @@ return x_40; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_AppBuilder(lean_object*); lean_object* initialize_Lean_Meta_SynthInstance(lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_Types(lean_object*); static bool _G_initialized = false; @@ -10224,6 +11313,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_AppBuilder(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_SynthInstance(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -10284,48 +11376,52 @@ l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__ lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__1___closed__4); l_Lean_Meta_Simp_synthesizeArgs___closed__1 = _init_l_Lean_Meta_Simp_synthesizeArgs___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_synthesizeArgs___closed__1); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__1); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__2); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__3); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__4); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__5); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__6); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__7); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__8); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__9); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__10); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__4___closed__11); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__1); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__5___closed__2); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__1); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__7___closed__2); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__1); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__2); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__3); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__4); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__5); -l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6(); -lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__8___closed__6); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__1); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__2); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__3); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__4); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__5); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__6); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__7); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__8); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__9); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__10); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__3___closed__11); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__1); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__2); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__4___closed__3); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__1); +l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___lambda__6___closed__2); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__1); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__2); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__3); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__4); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__5); +l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6 = _init_l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f_go___closed__6); +l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1 = _init_l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_tryLemma_x3f___lambda__2___closed__1); l_Lean_Meta_Simp_rewrite___closed__1 = _init_l_Lean_Meta_Simp_rewrite___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_rewrite___closed__1); l_Lean_Meta_Simp_rewrite___closed__2 = _init_l_Lean_Meta_Simp_rewrite___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c index 2909628369..d9612445df 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c @@ -242,7 +242,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_pr static lean_object* l_Lean_Meta_simpExtension___closed__8; size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_preprocess___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -411,6 +410,7 @@ lean_object* l_Lean_Meta_addSimpLemmaEntry_updateLemmaNames(lean_object*, lean_o lean_object* lean_expr_update_const(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__14; lean_object* l_Lean_Meta_instInhabitedSimpEntry; +static lean_object* l_Lean_Meta_mkSimpAttr___lambda__1___closed__28; static lean_object* l_Lean_Meta_instInhabitedSimpEntry___closed__1; static lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_SimpExtension_getLemmas___spec__1___closed__2; lean_object* l_Lean_Meta_mkSimpAttr___lambda__2___boxed(lean_object*, lean_object*); @@ -9607,8 +9607,20 @@ static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_instInhabitedSimpLemmas___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__2; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__8; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -9620,7 +9632,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__9() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9632,24 +9644,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_instInhabitedSimpLemmas___closed__2; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__12() { @@ -9667,6 +9667,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__13() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_instInhabitedSimpLemmas___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -9675,7 +9687,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__14() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -9686,7 +9698,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__15() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9698,14 +9710,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__16() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__9; -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__11; -x_3 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__12; -x_4 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__15; +x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__10; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__12; +x_3 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__13; +x_4 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__16; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -9717,23 +9729,23 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__17() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__8; -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__16; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__9; +x_3 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__17; x_4 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__18() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__19() { _start: { lean_object* x_1; @@ -9741,16 +9753,16 @@ x_1 = lean_mk_string("invalid 'simp', it is not a proposition nor a definition ( return x_1; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__19() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__18; +x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__19; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__20() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__21() { _start: { lean_object* x_1; @@ -9758,17 +9770,17 @@ x_1 = lean_mk_string("Lean"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__21() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__20; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__22() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__23() { _start: { lean_object* x_1; @@ -9776,17 +9788,17 @@ x_1 = lean_mk_string("Parser"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__23() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__21; -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__22; +x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__22; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__23; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__24() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__25() { _start: { lean_object* x_1; @@ -9794,17 +9806,17 @@ x_1 = lean_mk_string("Tactic"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__25() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__23; -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__24; +x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__24; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__25; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__26() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__27() { _start: { lean_object* x_1; @@ -9812,12 +9824,12 @@ x_1 = lean_mk_string("simpPost"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__27() { +static lean_object* _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__25; -x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__26; +x_1 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__26; +x_2 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__27; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -9830,7 +9842,7 @@ x_8 = lean_st_ref_get(x_6, x_7); x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__17; +x_10 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__18; x_11 = lean_st_mk_ref(x_10, x_9); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); @@ -9873,7 +9885,7 @@ if (x_35 == 0) lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_dec(x_2); lean_dec(x_1); -x_36 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__19; +x_36 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__20; x_37 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_36, x_26, x_12, x_5, x_6, x_34); lean_dec(x_6); lean_dec(x_5); @@ -9932,7 +9944,7 @@ x_52 = lean_unsigned_to_nat(0u); x_53 = l_Lean_Syntax_getArg(x_48, x_52); lean_dec(x_48); x_54 = l_Lean_Syntax_getKind(x_53); -x_55 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__27; +x_55 = l_Lean_Meta_mkSimpAttr___lambda__1___closed__28; x_56 = lean_name_eq(x_54, x_55); lean_dec(x_54); lean_inc(x_6); @@ -11126,7 +11138,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_SimpLemma_getValue___closed__1; x_2 = l_Lean_Meta_SimpLemma_getValue___closed__2; -x_3 = lean_unsigned_to_nat(898u); +x_3 = lean_unsigned_to_nat(917u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_SimpLemma_getValue___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12938,6 +12950,8 @@ l_Lean_Meta_mkSimpAttr___lambda__1___closed__26 = _init_l_Lean_Meta_mkSimpAttr__ lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__26); l_Lean_Meta_mkSimpAttr___lambda__1___closed__27 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__27(); lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__27); +l_Lean_Meta_mkSimpAttr___lambda__1___closed__28 = _init_l_Lean_Meta_mkSimpAttr___lambda__1___closed__28(); +lean_mark_persistent(l_Lean_Meta_mkSimpAttr___lambda__1___closed__28); l_Lean_Meta_mkSimpExt___closed__1 = _init_l_Lean_Meta_mkSimpExt___closed__1(); lean_mark_persistent(l_Lean_Meta_mkSimpExt___closed__1); l_Lean_Meta_mkSimpExt___closed__2 = _init_l_Lean_Meta_mkSimpExt___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Split.c index 83d0df2741..4b791bc052 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Split.c @@ -16,28 +16,34 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch_match__2___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_Split_simpMatch_pre___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_mkSort(lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__6; lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__3(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Meta_getCongrLemmas___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Split_simpMatch___closed__1; +lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Split_simpMatch___closed__2; lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SplitIf_discharge_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Split_simpMatch___closed__4; extern lean_object* l_instInhabitedNat; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg(lean_object*, lean_object*); @@ -45,16 +51,13 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l_Lean_Expr_isIte(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__3; lean_object* l_Lean_Meta_Split_splitMatch___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Match_withMkMatcherInput___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_match__1(lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_splitTarget_x3f_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* l_Lean_Meta_Split_findSplit_x3f_match__1(lean_object*); @@ -63,41 +66,42 @@ lean_object* l_Lean_Meta_splitLocalDecl_x3f_match__1(lean_object*); lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__7; +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_findSplit_x3f___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2; lean_object* l_Lean_Meta_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___spec__1(size_t, size_t, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_splitLocalDecl_x3f_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_tryLemma_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_isMatcherAppCore(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_findSplit_x3f___closed__2; uint8_t l_Lean_Meta_Split_findSplit_x3f___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_findSplit_x3f___closed__1; -lean_object* l_Lean_Meta_Split_splitMatch_match__3(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___boxed__const__1; -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Meta_splitLocalDecl_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__2; -lean_object* l_Lean_Meta_Split_splitMatch_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedExpr; lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_match__1___rarg(lean_object*, lean_object*); static lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___closed__2; static lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___closed__3; @@ -105,64 +109,88 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__2(lean_object*); lean_object* l_Lean_Meta_splitIfLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Split_simpMatch___closed__3; lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1; lean_object* l_Lean_Meta_splitLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__2(lean_object*); lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__1(lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___closed__4; +lean_object* l_List_redLength___rarg(lean_object*); +lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2; static lean_object* l_Lean_Meta_Split_splitMatch___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isDIte(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Meta_splitTarget_x3f_match__1(lean_object*); +static lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; static lean_object* l_Lean_Meta_Split_splitMatch___closed__3; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_findSplit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___closed__1; lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object*, lean_object*); lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; lean_object* l_Lean_throwError___at_Lean_Meta_Split_splitMatch___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__1(lean_object*); +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_getEquationsFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +lean_object* l_Lean_Meta_Match_MatcherInfo_arity(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__8; +lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__4; lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1; +lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); lean_object* l_Lean_Meta_Split_splitMatch___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_splitMatch_match__2(lean_object*); lean_object* l_Lean_Meta_Split_splitMatch_match__1(lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__4(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_Split_splitMatch___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; +lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_splitMatch___closed__1; lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__1() { _start: { @@ -285,7 +313,7 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -308,15 +336,46 @@ return x_7; } } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__1(lean_object* x_1) { +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__1___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch_pre_match__1___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch_pre_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -339,15 +398,432 @@ return x_7; } } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__2(lean_object* x_1) { +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre_match__2___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch_pre_match__3___rarg), 3, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1() { +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Meta_Split_simpMatch_pre_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch_pre_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__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, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(x_12, x_1); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_9); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(x_16, x_1); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_15); +return x_18; +} +} +} +static lean_object* _init_l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Expr_getAppFn(x_1); +if (lean_obj_tag(x_9) == 4) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_10); +x_12 = l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = lean_box(0); +lean_ctor_set(x_12, 0, x_16); +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_dec(x_12); +x_18 = lean_box(0); +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 +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_12, 0); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_13); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_23 = lean_ctor_get(x_13, 0); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Lean_Expr_getAppNumArgsAux(x_1, x_24); +x_26 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; +lean_inc(x_25); +x_27 = lean_mk_array(x_25, x_26); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_sub(x_25, x_28); +lean_dec(x_25); +x_30 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_27, x_29); +x_31 = lean_array_get_size(x_30); +x_32 = l_Lean_Meta_Match_MatcherInfo_arity(x_23); +x_33 = lean_nat_dec_lt(x_31, x_32); +lean_dec(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_34 = l_List_redLength___rarg(x_11); +x_35 = lean_mk_empty_array_with_capacity(x_34); +lean_dec(x_34); +x_36 = l_List_toArrayAux___rarg(x_11, x_35); +x_37 = lean_ctor_get(x_23, 3); +lean_inc(x_37); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); +lean_inc(x_38); +lean_inc(x_30); +x_39 = l_Array_extract___rarg(x_30, x_24, x_38); +x_40 = l_Lean_instInhabitedExpr; +x_41 = lean_array_get(x_40, x_30, x_38); +x_42 = lean_nat_add(x_38, x_28); +lean_dec(x_38); +x_43 = lean_ctor_get(x_23, 1); +lean_inc(x_43); +x_44 = lean_nat_add(x_42, x_43); +lean_dec(x_43); +lean_inc(x_44); +lean_inc(x_30); +x_45 = l_Array_toSubarray___rarg(x_30, x_42, x_44); +x_46 = l_Array_ofSubarray___rarg(x_45); +x_47 = lean_ctor_get(x_23, 2); +lean_inc(x_47); +x_48 = l_Lean_Meta_Match_MatcherInfo_numAlts(x_23); +lean_dec(x_23); +x_49 = lean_nat_add(x_44, x_48); +lean_dec(x_48); +lean_inc(x_49); +lean_inc(x_30); +x_50 = l_Array_toSubarray___rarg(x_30, x_44, x_49); +x_51 = l_Array_ofSubarray___rarg(x_50); +x_52 = l_Array_toSubarray___rarg(x_30, x_49, x_31); +x_53 = l_Array_ofSubarray___rarg(x_52); +x_54 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_54, 0, x_10); +lean_ctor_set(x_54, 1, x_36); +lean_ctor_set(x_54, 2, x_37); +lean_ctor_set(x_54, 3, x_39); +lean_ctor_set(x_54, 4, x_41); +lean_ctor_set(x_54, 5, x_46); +lean_ctor_set(x_54, 6, x_47); +lean_ctor_set(x_54, 7, x_51); +lean_ctor_set(x_54, 8, x_53); +lean_ctor_set(x_13, 0, x_54); +return x_12; +} +else +{ +lean_object* x_55; +lean_dec(x_31); +lean_dec(x_30); +lean_free_object(x_13); +lean_dec(x_23); +lean_dec(x_11); +lean_dec(x_10); +x_55 = lean_box(0); +lean_ctor_set(x_12, 0, x_55); +return x_12; +} +} +else +{ +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; lean_object* x_65; uint8_t x_66; +x_56 = lean_ctor_get(x_13, 0); +lean_inc(x_56); +lean_dec(x_13); +x_57 = lean_unsigned_to_nat(0u); +x_58 = l_Lean_Expr_getAppNumArgsAux(x_1, x_57); +x_59 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; +lean_inc(x_58); +x_60 = lean_mk_array(x_58, x_59); +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_sub(x_58, x_61); +lean_dec(x_58); +x_63 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_60, x_62); +x_64 = lean_array_get_size(x_63); +x_65 = l_Lean_Meta_Match_MatcherInfo_arity(x_56); +x_66 = lean_nat_dec_lt(x_64, x_65); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_67 = l_List_redLength___rarg(x_11); +x_68 = lean_mk_empty_array_with_capacity(x_67); +lean_dec(x_67); +x_69 = l_List_toArrayAux___rarg(x_11, x_68); +x_70 = lean_ctor_get(x_56, 3); +lean_inc(x_70); +x_71 = lean_ctor_get(x_56, 0); +lean_inc(x_71); +lean_inc(x_71); +lean_inc(x_63); +x_72 = l_Array_extract___rarg(x_63, x_57, x_71); +x_73 = l_Lean_instInhabitedExpr; +x_74 = lean_array_get(x_73, x_63, x_71); +x_75 = lean_nat_add(x_71, x_61); +lean_dec(x_71); +x_76 = lean_ctor_get(x_56, 1); +lean_inc(x_76); +x_77 = lean_nat_add(x_75, x_76); +lean_dec(x_76); +lean_inc(x_77); +lean_inc(x_63); +x_78 = l_Array_toSubarray___rarg(x_63, x_75, x_77); +x_79 = l_Array_ofSubarray___rarg(x_78); +x_80 = lean_ctor_get(x_56, 2); +lean_inc(x_80); +x_81 = l_Lean_Meta_Match_MatcherInfo_numAlts(x_56); +lean_dec(x_56); +x_82 = lean_nat_add(x_77, x_81); +lean_dec(x_81); +lean_inc(x_82); +lean_inc(x_63); +x_83 = l_Array_toSubarray___rarg(x_63, x_77, x_82); +x_84 = l_Array_ofSubarray___rarg(x_83); +x_85 = l_Array_toSubarray___rarg(x_63, x_82, x_64); +x_86 = l_Array_ofSubarray___rarg(x_85); +x_87 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_87, 0, x_10); +lean_ctor_set(x_87, 1, x_69); +lean_ctor_set(x_87, 2, x_70); +lean_ctor_set(x_87, 3, x_72); +lean_ctor_set(x_87, 4, x_74); +lean_ctor_set(x_87, 5, x_79); +lean_ctor_set(x_87, 6, x_80); +lean_ctor_set(x_87, 7, x_84); +lean_ctor_set(x_87, 8, x_86); +x_88 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_12, 0, x_88); +return x_12; +} +else +{ +lean_object* x_89; +lean_dec(x_64); +lean_dec(x_63); +lean_dec(x_56); +lean_dec(x_11); +lean_dec(x_10); +x_89 = lean_box(0); +lean_ctor_set(x_12, 0, x_89); +return x_12; +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_90 = lean_ctor_get(x_12, 1); +lean_inc(x_90); +lean_dec(x_12); +x_91 = lean_ctor_get(x_13, 0); +lean_inc(x_91); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + x_92 = x_13; +} else { + lean_dec_ref(x_13); + x_92 = lean_box(0); +} +x_93 = lean_unsigned_to_nat(0u); +x_94 = l_Lean_Expr_getAppNumArgsAux(x_1, x_93); +x_95 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; +lean_inc(x_94); +x_96 = lean_mk_array(x_94, x_95); +x_97 = lean_unsigned_to_nat(1u); +x_98 = lean_nat_sub(x_94, x_97); +lean_dec(x_94); +x_99 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_96, x_98); +x_100 = lean_array_get_size(x_99); +x_101 = l_Lean_Meta_Match_MatcherInfo_arity(x_91); +x_102 = lean_nat_dec_lt(x_100, x_101); +lean_dec(x_101); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; 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; +x_103 = l_List_redLength___rarg(x_11); +x_104 = lean_mk_empty_array_with_capacity(x_103); +lean_dec(x_103); +x_105 = l_List_toArrayAux___rarg(x_11, x_104); +x_106 = lean_ctor_get(x_91, 3); +lean_inc(x_106); +x_107 = lean_ctor_get(x_91, 0); +lean_inc(x_107); +lean_inc(x_107); +lean_inc(x_99); +x_108 = l_Array_extract___rarg(x_99, x_93, x_107); +x_109 = l_Lean_instInhabitedExpr; +x_110 = lean_array_get(x_109, x_99, x_107); +x_111 = lean_nat_add(x_107, x_97); +lean_dec(x_107); +x_112 = lean_ctor_get(x_91, 1); +lean_inc(x_112); +x_113 = lean_nat_add(x_111, x_112); +lean_dec(x_112); +lean_inc(x_113); +lean_inc(x_99); +x_114 = l_Array_toSubarray___rarg(x_99, x_111, x_113); +x_115 = l_Array_ofSubarray___rarg(x_114); +x_116 = lean_ctor_get(x_91, 2); +lean_inc(x_116); +x_117 = l_Lean_Meta_Match_MatcherInfo_numAlts(x_91); +lean_dec(x_91); +x_118 = lean_nat_add(x_113, x_117); +lean_dec(x_117); +lean_inc(x_118); +lean_inc(x_99); +x_119 = l_Array_toSubarray___rarg(x_99, x_113, x_118); +x_120 = l_Array_ofSubarray___rarg(x_119); +x_121 = l_Array_toSubarray___rarg(x_99, x_118, x_100); +x_122 = l_Array_ofSubarray___rarg(x_121); +x_123 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_123, 0, x_10); +lean_ctor_set(x_123, 1, x_105); +lean_ctor_set(x_123, 2, x_106); +lean_ctor_set(x_123, 3, x_108); +lean_ctor_set(x_123, 4, x_110); +lean_ctor_set(x_123, 5, x_115); +lean_ctor_set(x_123, 6, x_116); +lean_ctor_set(x_123, 7, x_120); +lean_ctor_set(x_123, 8, x_122); +if (lean_is_scalar(x_92)) { + x_124 = lean_alloc_ctor(1, 1, 0); +} else { + x_124 = x_92; +} +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_90); +return x_125; +} +else +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_100); +lean_dec(x_99); +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_11); +lean_dec(x_10); +x_126 = lean_box(0); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_90); +return x_127; +} +} +} +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_9); +lean_dec(x_1); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_8); +return x_129; +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -356,7 +832,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -367,7 +843,708 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre(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* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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) { +_start: +{ +uint8_t x_14; +x_14 = x_5 < x_4; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_6); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +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; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_6); +x_16 = lean_array_uget(x_3, x_5); +x_17 = lean_box(0); +lean_inc(x_16); +x_18 = l_Lean_mkConst(x_16, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_16); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1; +x_21 = lean_unsigned_to_nat(1000u); +x_22 = 1; +x_23 = 0; +x_24 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_20); +lean_ctor_set(x_24, 2, x_18); +lean_ctor_set(x_24, 3, x_21); +lean_ctor_set(x_24, 4, x_19); +lean_ctor_set_uint8(x_24, sizeof(void*)*5, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*5 + 1, x_23); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_26 = l_Lean_Meta_Simp_tryLemma_x3f(x_1, x_24, x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; size_t x_29; size_t x_30; +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = 1; +x_30 = x_5 + x_29; +lean_inc(x_2); +{ +size_t _tmp_4 = x_30; +lean_object* _tmp_5 = x_2; +lean_object* _tmp_12 = x_28; +x_5 = _tmp_4; +x_6 = _tmp_5; +x_13 = _tmp_12; +} +goto _start; +} +else +{ +uint8_t x_32; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_26, 0); +lean_dec(x_33); +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_27, 0); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_27, 0, x_36); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_26, 0, x_38); +return x_26; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_27, 0); +lean_inc(x_39); +lean_dec(x_27); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_26, 0, x_43); +return x_26; +} +} +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; lean_object* x_50; lean_object* x_51; +x_44 = lean_ctor_get(x_26, 1); +lean_inc(x_44); +lean_dec(x_26); +x_45 = lean_ctor_get(x_27, 0); +lean_inc(x_45); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + x_46 = x_27; +} else { + lean_dec_ref(x_27); + x_46 = lean_box(0); +} +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_45); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(1, 1, 0); +} else { + x_48 = x_46; +} +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_44); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_26); +if (x_52 == 0) +{ +return x_26; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_26, 0); +x_54 = lean_ctor_get(x_26, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_26); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +} +} +lean_object* l_Lean_Meta_Split_simpMatch_pre___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_2); +x_12 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_12, 0, 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_10); +return x_13; +} +} +static lean_object* _init_l_Lean_Meta_Split_simpMatch_pre___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +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_Meta_Split_simpMatch_pre(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: +{ +lean_object* x_9; lean_object* x_10; +lean_inc(x_1); +x_9 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_9, 0, 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; +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_dec(x_9); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, 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_16); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 1); +lean_inc(x_21); +lean_dec(x_9); +x_22 = lean_ctor_get(x_10, 0); +lean_inc(x_22); +lean_dec(x_10); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_23 = l_Lean_Meta_reduceRecMatcher_x3f(x_1, x_4, x_5, x_6, x_7, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_22, 0); +lean_inc(x_26); +lean_dec(x_22); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_27 = l_Lean_Meta_Match_getEquationsFor(x_26, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_box(0); +x_32 = lean_array_get_size(x_30); +x_33 = lean_usize_of_nat(x_32); +lean_dec(x_32); +x_34 = 0; +x_35 = l_Lean_Meta_Split_simpMatch_pre___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_36 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3(x_1, x_35, x_30, x_33, x_34, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_29); +lean_dec(x_30); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_box(0); +x_41 = l_Lean_Meta_Split_simpMatch_pre___lambda__1(x_1, x_31, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_39); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_41; +} +else +{ +uint8_t x_42; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_36); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_36, 0); +lean_dec(x_43); +x_44 = lean_ctor_get(x_38, 0); +lean_inc(x_44); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_44); +return x_36; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); +lean_dec(x_36); +x_46 = lean_ctor_get(x_38, 0); +lean_inc(x_46); +lean_dec(x_38); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_36); +if (x_48 == 0) +{ +return x_36; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_36, 0); +x_50 = lean_ctor_get(x_36, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_36); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_27); +if (x_52 == 0) +{ +return x_27; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_27, 0); +x_54 = lean_ctor_get(x_27, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_27); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_22); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_56 = !lean_is_exclusive(x_23); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_23, 0); +lean_dec(x_57); +x_58 = lean_ctor_get(x_24, 0); +lean_inc(x_58); +lean_dec(x_24); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_23, 0, x_61); +return x_23; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_62 = lean_ctor_get(x_23, 1); +lean_inc(x_62); +lean_dec(x_23); +x_63 = lean_ctor_get(x_24, 0); +lean_inc(x_63); +lean_dec(x_24); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_62); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_22); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_68 = !lean_is_exclusive(x_23); +if (x_68 == 0) +{ +return x_23; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_23, 0); +x_70 = lean_ctor_get(x_23, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_23); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +} +} +lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__2___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: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_3); +return x_16; +} +} +lean_object* l_Lean_Meta_Split_simpMatch_pre___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Split_simpMatch_pre___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Meta_Split_simpMatch___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +lean_object* l_Lean_Meta_Split_simpMatch___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, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +} +static lean_object* _init_l_Lean_Meta_Split_simpMatch___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch_pre), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Split_simpMatch___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch___lambda__1___boxed), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Split_simpMatch___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Split_simpMatch___lambda__2___boxed), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Split_simpMatch___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Split_simpMatch___closed__1; +x_2 = l_Lean_Meta_Split_simpMatch___closed__2; +x_3 = l_Lean_Meta_Split_simpMatch___closed__3; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Meta_Split_simpMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg(x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_Meta_Split_simpMatch___closed__4; +x_11 = l_Lean_Meta_Simp_main(x_1, x_8, x_10, x_2, x_3, x_4, x_5, x_9); +return x_11; +} +} +lean_object* l_Lean_Meta_Split_simpMatch___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, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Split_simpMatch___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Meta_Split_simpMatch___lambda__2___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: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_Split_simpMatch___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -418,7 +1595,7 @@ lean_inc(x_2); x_20 = l_Lean_mkConst(x_2, x_19); x_21 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_21, 0, x_2); -x_22 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1; +x_22 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1; x_23 = lean_unsigned_to_nat(1000u); x_24 = 1; x_25 = 0; @@ -430,7 +1607,7 @@ lean_ctor_set(x_26, 3, x_23); lean_ctor_set(x_26, 4, x_21); lean_ctor_set_uint8(x_26, sizeof(void*)*5, x_24); lean_ctor_set_uint8(x_26, sizeof(void*)*5 + 1, x_25); -x_27 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2; lean_inc(x_3); x_28 = l_Lean_Meta_Simp_tryLemma_x3f(x_3, x_26, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_18); if (lean_obj_tag(x_28) == 0) @@ -618,111 +1795,39 @@ return x_67; } } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_8); -return x_12; -} -} -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___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, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__1___boxed), 8, 0); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__2___boxed), 8, 0); -return x_1; -} -} -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore(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: { 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; -x_9 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre___boxed), 10, 2); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_2); +x_10 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg(x_7, x_8); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___boxed), 10, 2); -lean_closure_set(x_12, 0, x_1); -lean_closure_set(x_12, 1, x_2); -x_13 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1; -x_14 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_Split_simpMatch___closed__2; +x_14 = l_Lean_Meta_Split_simpMatch___closed__3; x_15 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 0, x_9); lean_ctor_set(x_15, 1, x_13); lean_ctor_set(x_15, 2, x_14); -x_16 = l_Lean_Meta_Simp_main(x_3, x_10, x_15, x_4, x_5, x_6, x_7, x_11); +x_16 = l_Lean_Meta_Simp_main(x_3, x_11, x_15, x_4, x_5, x_6, x_7, x_12); return x_16; } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___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, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__2___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: -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -753,7 +1858,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_15 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch(x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_14); +x_15 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore(x_2, x_3, x_13, x_4, x_5, x_6, x_7, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; @@ -878,12 +1983,12 @@ return x_36; } } } -lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore(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: { lean_object* x_9; lean_object* x_10; lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget___lambda__1), 8, 3); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___lambda__1), 8, 3); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_2); lean_closure_set(x_9, 2, x_3); @@ -1276,36 +2381,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_splitMatch_match__2___rarg), return x_2; } } -lean_object* l_Lean_Meta_Split_splitMatch_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; -lean_dec(x_2); -x_4 = lean_apply_1(x_3, x_1); -return x_4; -} -else -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_apply_1(x_2, x_5); -return x_6; -} -} -} -lean_object* l_Lean_Meta_Split_splitMatch_match__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Split_splitMatch_match__3___rarg), 3, 0); -return x_2; -} -} lean_object* l_Lean_throwError___at_Lean_Meta_Split_splitMatch___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -1351,7 +2426,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_12 = lean_ctor_get(x_1, 0); x_13 = l_Lean_instInhabitedName; x_14 = lean_array_get(x_13, x_12, x_2); -x_15 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTarget(x_3, x_4, x_14, x_7, x_8, x_9, x_10, x_11); +x_15 = l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore(x_3, x_4, x_14, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -1549,7 +2624,7 @@ x_64 = lean_ctor_get(x_59, 1); lean_inc(x_64); lean_dec(x_59); lean_inc(x_1); -x_65 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_1, x_8, x_9, x_10, x_11, x_64); +x_65 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_1, x_8, x_9, x_10, x_11, x_64); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); @@ -1634,7 +2709,7 @@ x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); lean_inc(x_1); -x_47 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_1, x_46, x_8, x_9, x_10, x_11, x_32); +x_47 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_1, x_46, x_8, x_9, x_10, x_11, x_32); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -2391,7 +3466,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); lean_dec(x_36); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_21, x_3, x_4, x_5, x_6, x_42); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_21, x_3, x_4, x_5, x_6, x_42); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -2426,7 +3501,7 @@ x_29 = l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__2___closed__4; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_21, x_30, x_3, x_4, x_5, x_6, x_23); +x_31 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_21, x_30, x_3, x_4, x_5, x_6, x_23); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); @@ -5329,14 +6404,22 @@ l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__2); l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__3 = _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__3); -l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1 = _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__1); -l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2 = _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchPre___closed__2); -l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1 = _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__1); -l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2 = _init_l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatch___closed__2); +l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1 = _init_l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__2); +l_Lean_Meta_Split_simpMatch_pre___closed__1 = _init_l_Lean_Meta_Split_simpMatch_pre___closed__1(); +lean_mark_persistent(l_Lean_Meta_Split_simpMatch_pre___closed__1); +l_Lean_Meta_Split_simpMatch___closed__1 = _init_l_Lean_Meta_Split_simpMatch___closed__1(); +lean_mark_persistent(l_Lean_Meta_Split_simpMatch___closed__1); +l_Lean_Meta_Split_simpMatch___closed__2 = _init_l_Lean_Meta_Split_simpMatch___closed__2(); +lean_mark_persistent(l_Lean_Meta_Split_simpMatch___closed__2); +l_Lean_Meta_Split_simpMatch___closed__3 = _init_l_Lean_Meta_Split_simpMatch___closed__3(); +lean_mark_persistent(l_Lean_Meta_Split_simpMatch___closed__3); +l_Lean_Meta_Split_simpMatch___closed__4 = _init_l_Lean_Meta_Split_simpMatch___closed__4(); +lean_mark_persistent(l_Lean_Meta_Split_simpMatch___closed__4); l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c index 257f234b52..68f485aa06 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c +++ b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c @@ -18,7 +18,6 @@ lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_4_ lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_SplitIf_discharge_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___closed__2; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_SplitIf_discharge_x3f___spec__3___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); @@ -30,6 +29,7 @@ lean_object* l_Lean_Meta_getCongrLemmas___rarg(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_SplitIf_getSimpContext___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_ext___elambda__1___rarg___closed__2; lean_object* l_Lean_Meta_SplitIf_getSimpContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_splitIfTarget_x3f_match__1(lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___closed__1; lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -53,7 +53,6 @@ lean_object* l_Lean_Expr_appArg_x21(lean_object*); static lean_object* l_Lean_Meta_SplitIf_discharge_x3f___closed__7; lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_splitIfAt_x3f___closed__1; -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_ext___elambda__1___rarg___closed__4; lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_splitIfAt_x3f___closed__2; @@ -74,6 +73,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_SplitIf_getSimpContext___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_SplitIf_getSimpContext___spec__2___closed__1; +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_SplitIf_discharge_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_findIfToSplit_x3f___closed__3; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_SplitIf_getSimpContext___spec__2___closed__3; @@ -3674,7 +3674,7 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint x_30 = lean_ctor_get(x_24, 1); lean_inc(x_30); lean_dec(x_24); -x_31 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_9, x_4, x_5, x_6, x_7, x_30); +x_31 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_9, x_4, x_5, x_6, x_7, x_30); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); @@ -3709,7 +3709,7 @@ x_17 = l_Lean_Meta_SplitIf_discharge_x3f___closed__12; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_9, x_18, x_4, x_5, x_6, x_7, x_11); +x_19 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_9, x_18, x_4, x_5, x_6, x_7, x_11); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index 1faf700bd0..89b62605d0 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -37,6 +37,7 @@ lean_object* l_Lean_Meta_trySubst(lean_object*, lean_object*, lean_object*, lean lean_object* l_Lean_Meta_substCore___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__21___closed__21; lean_object* l_Lean_Meta_substCore___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__21(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_Meta_subst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__14___closed__1; @@ -103,6 +104,7 @@ static lean_object* l_Lean_Meta_substCore___lambda__14___closed__4; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__21___closed__28; +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5(size_t, size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_subst___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__14___closed__8; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -133,6 +135,7 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l_Lean_Meta_substCore___lambda__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__19___closed__1; +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__11(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__13___boxed(lean_object**); lean_object* l_Lean_Meta_subst_match__3(lean_object*); @@ -153,6 +156,7 @@ lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_o lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_subst_match__4(lean_object*); +extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_Lean_Meta_trySubst_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__17___boxed(lean_object**); lean_object* l_Lean_Meta_substCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -164,8 +168,8 @@ lean_object* l_Lean_Meta_substCore___lambda__21___boxed(lean_object*, lean_objec uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__21___closed__2; -lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__2(lean_object*); lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,7 +192,6 @@ lean_object* l_Lean_Meta_substCore_match__1(lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_Meta_substCore_match__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__21___closed__5; -extern lean_object* l_Lean_instInhabitedName; static lean_object* l_Lean_Meta_substCore___lambda__17___closed__2; static lean_object* l_Lean_Meta_substCore___lambda__20___closed__2; lean_object* l_Lean_Meta_substCore___lambda__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -196,7 +199,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_subst___spec__5___boxed(lea static lean_object* l_Lean_Meta_substCore___lambda__2___closed__6; static lean_object* l_Lean_Meta_subst___lambda__2___closed__6; lean_object* l_Lean_Meta_substCore___lambda__15___boxed(lean_object**); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2021_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2026_(lean_object*); lean_object* l_Lean_Meta_substCore___lambda__7(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,6 +219,7 @@ lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_objec lean_object* l_Lean_Meta_substCore___lambda__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__2___closed__3; lean_object* l_Nat_foldM_loop___at_Lean_Meta_substCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__21___closed__12; lean_object* l_Lean_Meta_substCore_match__2(lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__14___closed__7; @@ -344,7 +348,7 @@ x_16 = lean_nat_sub(x_15, x_13); lean_dec(x_15); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_add(x_16, x_17); -x_19 = l_Lean_instInhabitedName; +x_19 = l_Lean_instInhabitedFVarId; x_20 = lean_array_get(x_19, x_1, x_18); lean_dec(x_18); x_21 = lean_array_get(x_19, x_2, x_16); @@ -442,7 +446,7 @@ x_16 = lean_nat_sub(x_15, x_13); lean_dec(x_15); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_add(x_16, x_17); -x_19 = l_Lean_instInhabitedName; +x_19 = l_Lean_instInhabitedFVarId; x_20 = lean_array_get(x_19, x_1, x_18); lean_dec(x_18); x_21 = lean_array_get(x_19, x_2, x_16); @@ -481,7 +485,7 @@ x_16 = lean_nat_sub(x_15, x_13); lean_dec(x_15); x_17 = lean_unsigned_to_nat(2u); x_18 = lean_nat_add(x_16, x_17); -x_19 = l_Lean_instInhabitedName; +x_19 = l_Lean_instInhabitedFVarId; x_20 = lean_array_get(x_19, x_1, x_18); lean_dec(x_18); x_21 = lean_array_get(x_19, x_2, x_16); @@ -503,7 +507,35 @@ return x_25; } } } -lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = x_9; +x_13 = lean_array_uset(x_8, x_2, x_12); +x_2 = x_11; +x_3 = x_13; +goto _start; +} +} +} +lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2967,7 +2999,7 @@ _start: { 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_dec(x_14); -x_20 = l_Lean_instInhabitedName; +x_20 = l_Lean_instInhabitedFVarId; x_21 = lean_unsigned_to_nat(0u); x_22 = lean_array_get(x_20, x_1, x_21); lean_inc(x_22); @@ -3123,47 +3155,47 @@ return x_2; lean_object* l_Lean_Meta_substCore___lambda__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, uint8_t 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) { _start: { -uint8_t x_20; lean_object* x_21; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +uint8_t x_20; lean_object* x_21; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_dec(x_14); -x_36 = lean_st_ref_get(x_18, x_19); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 3); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_ctor_get_uint8(x_38, sizeof(void*)*1); -lean_dec(x_38); -if (x_39 == 0) +x_42 = lean_st_ref_get(x_18, x_19); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 3); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get_uint8(x_44, sizeof(void*)*1); +lean_dec(x_44); +if (x_45 == 0) { -lean_object* x_40; uint8_t x_41; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = 0; -x_20 = x_41; -x_21 = x_40; -goto block_35; +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_42, 1); +lean_inc(x_46); +lean_dec(x_42); +x_47 = 0; +x_20 = x_47; +x_21 = x_46; +goto block_41; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_dec(x_36); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +lean_dec(x_42); lean_inc(x_10); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_10, x_15, x_16, x_17, x_18, x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_unbox(x_44); -lean_dec(x_44); -x_20 = x_46; -x_21 = x_45; -goto block_35; +x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_10, x_15, x_16, x_17, x_18, x_48); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_unbox(x_50); +lean_dec(x_50); +x_20 = x_52; +x_21 = x_51; +goto block_41; } -block_35: +block_41: { if (x_20 == 0) { @@ -3174,30 +3206,37 @@ 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; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_24 = lean_array_get_size(x_4); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; lean_inc(x_4); -x_24 = lean_array_to_list(lean_box(0), x_4); +x_27 = x_4; +x_28 = l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5(x_25, x_26, x_27); +x_29 = x_28; +x_30 = lean_array_to_list(lean_box(0), x_29); lean_inc(x_5); -x_25 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__5(x_24, x_5); -x_26 = l_Lean_MessageData_ofList(x_25); -lean_dec(x_25); -x_27 = l_Lean_Meta_substCore___lambda__17___closed__2; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Meta_substCore___lambda__2___closed__6; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -lean_inc(x_10); -x_31 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_10, x_30, x_15, x_16, x_17, x_18, x_21); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); +x_31 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_30, x_5); +x_32 = l_Lean_MessageData_ofList(x_31); lean_dec(x_31); -x_34 = l_Lean_Meta_substCore___lambda__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_32, x_15, x_16, x_17, x_18, x_33); -return x_34; +x_33 = l_Lean_Meta_substCore___lambda__17___closed__2; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_Meta_substCore___lambda__2___closed__6; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_inc(x_10); +x_37 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_10, x_36, x_15, x_16, x_17, x_18, x_21); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Meta_substCore___lambda__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_38, x_15, x_16, x_17, x_18, x_39); +return x_40; } } } @@ -4519,6 +4558,18 @@ lean_dec(x_1); return x_11; } } +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Meta_substCore___spec__5(x_4, x_5, x_3); +return x_6; +} +} lean_object* l_Lean_Meta_substCore___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -8927,7 +8978,7 @@ return x_19; } } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2021_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2026_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -9101,7 +9152,7 @@ l_Lean_Meta_subst___lambda__2___closed__5 = _init_l_Lean_Meta_subst___lambda__2_ lean_mark_persistent(l_Lean_Meta_subst___lambda__2___closed__5); l_Lean_Meta_subst___lambda__2___closed__6 = _init_l_Lean_Meta_subst___lambda__2___closed__6(); lean_mark_persistent(l_Lean_Meta_subst___lambda__2___closed__6); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2021_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Subst___hyg_2026_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Util.c index 12c05706d2..8b307fa2b1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Util.c @@ -14,8 +14,6 @@ extern "C" { #endif static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_213____closed__4; -lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__5; lean_object* l_Lean_Meta_setMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); @@ -25,119 +23,128 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta_getNondepPropHyps___closed__1; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTagSuffix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); +uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkNotAssigned___closed__3; extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_saturate_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_exactlyOne_match__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_throwTacticEx___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkNotAssigned___closed__1; lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkNotAssigned___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(lean_object*, lean_object*); +lean_object* l_List_foldl___at_Lean_Meta_getNondepPropHyps___spec__5(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__8; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_setMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__3; lean_object* l_Lean_throwError___at_Lean_Meta_throwTacticEx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__1; +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_213____closed__3; static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__2; lean_object* l_Lean_throwError___at_Lean_Meta_ensureAtMostOne___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_saturate_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saturate_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_admit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_UInt64_toUSize(uint64_t); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_213____closed__2; lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Name_hasMacroScopes(lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__4; static lean_object* l_Lean_Meta_getNondepPropHyps_removeDeps___closed__1; -lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_headBetaMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_saturate_go___closed__1; +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_Name_hash(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_expand___at_Lean_Meta_getNondepPropHyps___spec__3(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_ensureAtMostOne___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashSet___at_Lean_Meta_getNondepPropHyps___spec__1(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instHashableExpr; lean_object* l_Lean_Meta_getMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_insert___at_Lean_Meta_getNondepPropHyps___spec__2(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12___boxed(lean_object*, lean_object*); +uint8_t l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_admit___closed__1; size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__1(lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saturate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_admit___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_saturate_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Lean_Meta_ensureAtMostOne_match__1(lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTagSuffix___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_admit___closed__2; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Meta_saturate_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_moveEntries___at_Lean_Meta_getNondepPropHyps___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_removeDeps_match__1(lean_object*); static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__7; lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_exactlyOne_match__1___rarg(lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); static lean_object* l_Lean_Meta_getNondepPropHyps___lambda__1___closed__1; +lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_hasValue(lean_object*); lean_object* l_Lean_Meta_exactlyOne(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -146,11 +153,11 @@ lean_object* l_Lean_Meta_saturate_go_match__1(lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_removeDeps_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_headBetaMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_match__1(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -158,15 +165,21 @@ lean_object* l_Lean_Meta_saturate_go(lean_object*, lean_object*, lean_object*, l lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_saturate_go___closed__2; +lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_throwTacticEx___spec__1(lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saturate_match__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_213____closed__1; static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_removeDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_ensureAtMostOne_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_213_(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,7 +187,8 @@ lean_object* l_Lean_Meta_saturate_go_match__1___rarg(lean_object*, lean_object*, lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(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: { @@ -1253,7 +1267,36 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_getNondepPropHyps_match__1___rarg), return x_2; } } -lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_name_eq(x_1, x_4); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1275,7 +1318,7 @@ x_7 = lean_name_eq(x_5, x_2); if (x_7 == 0) { lean_object* x_8; -x_8 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_6, x_2); +x_8 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_6, x_2); lean_ctor_set(x_1, 1, x_8); return x_1; } @@ -1298,7 +1341,7 @@ x_11 = lean_name_eq(x_9, x_2); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; -x_12 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_10, x_2); +x_12 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_10, x_2); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_9); lean_ctor_set(x_13, 1, x_12); @@ -1322,12 +1365,12 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); x_5 = lean_array_get_size(x_4); -x_6 = l_Lean_Name_hash(x_2); +x_6 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); x_7 = (size_t)x_6; x_8 = lean_usize_modn(x_7, x_5); lean_dec(x_5); x_9 = lean_array_uget(x_4, x_8); -x_10 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_2, x_9); +x_10 = l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_2, x_9); if (x_10 == 0) { lean_dec(x_9); @@ -1349,7 +1392,7 @@ lean_dec(x_13); x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_sub(x_3, x_14); lean_dec(x_3); -x_16 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_9, x_2); +x_16 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_9, x_2); x_17 = lean_array_uset(x_4, x_8, x_16); lean_ctor_set(x_1, 1, x_17); lean_ctor_set(x_1, 0, x_15); @@ -1362,7 +1405,7 @@ lean_dec(x_1); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_sub(x_3, x_18); lean_dec(x_3); -x_20 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_9, x_2); +x_20 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_9, x_2); x_21 = lean_array_uset(x_4, x_8, x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_19); @@ -1372,7 +1415,7 @@ return x_22; } } } -lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(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: { 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; @@ -1503,11 +1546,11 @@ x_37 = lean_ctor_get(x_1, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_1, 1); lean_inc(x_38); -x_39 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_39 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); lean_dec(x_39); -x_41 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_40); +x_41 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_40); x_16 = x_41; goto block_32; } @@ -1519,11 +1562,11 @@ x_42 = lean_ctor_get(x_1, 1); lean_inc(x_42); x_43 = lean_ctor_get(x_1, 2); lean_inc(x_43); -x_44 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_44 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); lean_dec(x_44); -x_46 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_45); +x_46 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_45); x_16 = x_46; goto block_32; } @@ -1535,11 +1578,11 @@ x_47 = lean_ctor_get(x_1, 1); lean_inc(x_47); x_48 = lean_ctor_get(x_1, 2); lean_inc(x_48); -x_49 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_49 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec(x_49); -x_51 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_51 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_50); x_16 = x_51; goto block_32; } @@ -1553,15 +1596,15 @@ x_53 = lean_ctor_get(x_1, 2); lean_inc(x_53); x_54 = lean_ctor_get(x_1, 3); lean_inc(x_54); -x_55 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_55 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); -x_57 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_56); +x_57 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_56); x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec(x_57); -x_59 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_58); +x_59 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_58); x_16 = x_59; goto block_32; } @@ -1571,7 +1614,7 @@ lean_object* x_60; lean_object* x_61; lean_dec(x_14); x_60 = lean_ctor_get(x_1, 1); lean_inc(x_60); -x_61 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_61 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_16 = x_61; goto block_32; } @@ -1581,7 +1624,7 @@ lean_object* x_62; lean_object* x_63; lean_dec(x_14); x_62 = lean_ctor_get(x_1, 2); lean_inc(x_62); -x_63 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_63 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_34); x_16 = x_63; goto block_32; } @@ -1668,7 +1711,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_18, x_29, x_23, x_3, x_4, x_5, x_6, x_30); +x_31 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_18, x_29, x_23, x_3, x_4, x_5, x_6, x_30); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -1791,11 +1834,22 @@ return x_15; } } } -lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_1, x_2); +x_3 = l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_1, x_2); lean_dec(x_2); return x_3; } @@ -1809,11 +1863,11 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4___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: { lean_object* x_9; -x_9 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -1823,7 +1877,292 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Std_mkHashSet___at_Lean_Meta_getNondepPropHyps___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashSetImp___rarg(x_1); +return x_2; +} +} +lean_object* l_List_foldl___at_Lean_Meta_getNondepPropHyps___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +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; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_array_get_size(x_1); +x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_4); +x_8 = (size_t)x_7; +x_9 = lean_usize_modn(x_8, x_6); +lean_dec(x_6); +x_10 = lean_array_uget(x_1, x_9); +lean_ctor_set(x_2, 1, x_10); +x_11 = lean_array_uset(x_1, x_9, x_2); +x_1 = x_11; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_2); +x_15 = lean_array_get_size(x_1); +x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_13); +x_17 = (size_t)x_16; +x_18 = lean_usize_modn(x_17, x_15); +lean_dec(x_15); +x_19 = lean_array_uget(x_1, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_array_uset(x_1, x_18, x_20); +x_1 = x_21; +x_2 = x_14; +goto _start; +} +} +} +} +lean_object* l_Std_HashSetImp_moveEntries___at_Lean_Meta_getNondepPropHyps___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_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +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_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_List_foldl___at_Lean_Meta_getNondepPropHyps___spec__5(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +lean_object* l_Std_HashSetImp_expand___at_Lean_Meta_getNondepPropHyps___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +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_Std_HashSetImp_moveEntries___at_Lean_Meta_getNondepPropHyps___spec__4(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_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_3); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_name_eq(x_6, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(x_7, x_2, x_3); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_dec(x_6); +lean_ctor_set(x_1, 0, x_3); +return x_1; +} +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_1); +x_12 = lean_name_eq(x_10, x_2); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(x_11, x_2, x_3); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +else +{ +lean_object* x_15; +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +} +} +} +} +lean_object* l_Std_HashSetImp_insert___at_Lean_Meta_getNondepPropHyps___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_array_get_size(x_5); +x_7 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_8 = (size_t)x_7; +x_9 = lean_usize_modn(x_8, x_6); +x_10 = lean_array_uget(x_5, x_9); +x_11 = l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(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; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_10); +x_15 = lean_array_uset(x_5, x_9, x_14); +x_16 = lean_nat_dec_le(x_13, x_6); +lean_dec(x_6); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_1); +x_17 = l_Std_HashSetImp_expand___at_Lean_Meta_getNondepPropHyps___spec__3(x_13, x_15); +return x_17; +} +else +{ +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_6); +lean_inc(x_2); +x_18 = l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(x_10, x_2, x_2); +lean_dec(x_2); +x_19 = lean_array_uset(x_5, x_9, x_18); +lean_ctor_set(x_1, 1, x_19); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = lean_array_get_size(x_21); +x_23 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_24 = (size_t)x_23; +x_25 = lean_usize_modn(x_24, x_22); +x_26 = lean_array_uget(x_21, x_25); +x_27 = l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_2, x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_20, x_28); +lean_dec(x_20); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_2); +lean_ctor_set(x_30, 1, x_26); +x_31 = lean_array_uset(x_21, x_25, x_30); +x_32 = lean_nat_dec_le(x_29, x_22); +lean_dec(x_22); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = l_Std_HashSetImp_expand___at_Lean_Meta_getNondepPropHyps___spec__3(x_29, x_31); +return x_33; +} +else +{ +lean_object* x_34; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_29); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_22); +lean_inc(x_2); +x_35 = l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(x_26, x_2, x_2); +lean_dec(x_2); +x_36 = lean_array_uset(x_21, x_25, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -1859,7 +2198,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_16); lean_inc(x_1); -x_18 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2(x_1, x_14, x_16, x_7, x_8, x_9, x_10, x_11); +x_18 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8(x_1, x_14, x_16, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; @@ -1964,7 +2303,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_35); lean_inc(x_1); -x_36 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2(x_1, x_14, x_35, x_7, x_8, x_9, x_10, x_11); +x_36 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8(x_1, x_14, x_35, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; @@ -2060,7 +2399,7 @@ return x_52; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -2114,7 +2453,7 @@ if (x_21 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; x_22 = l_Lean_LocalDecl_fvarId(x_2); -x_23 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_3, x_22); +x_23 = l_Std_HashSetImp_insert___at_Lean_Meta_getNondepPropHyps___spec__2(x_3, x_22); x_24 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_10, 0, x_24); @@ -2140,7 +2479,7 @@ if (x_27 == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_28 = l_Lean_LocalDecl_fvarId(x_2); -x_29 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_3, x_28); +x_29 = l_Std_HashSetImp_insert___at_Lean_Meta_getNondepPropHyps___spec__2(x_3, x_28); x_30 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_30, 0, x_29); x_31 = lean_alloc_ctor(0, 2, 0); @@ -2186,7 +2525,7 @@ return x_37; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -2263,7 +2602,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_46 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(x_40, x_38, x_42, x_45, x_6, x_7, x_8, x_9, x_43); +x_46 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(x_40, x_38, x_42, x_45, x_6, x_7, x_8, x_9, x_43); lean_dec(x_38); if (lean_obj_tag(x_46) == 0) { @@ -2331,7 +2670,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_58 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(x_40, x_38, x_55, x_57, x_6, x_7, x_8, x_9, x_56); +x_58 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(x_40, x_38, x_55, x_57, x_6, x_7, x_8, x_9, x_56); lean_dec(x_38); if (lean_obj_tag(x_58) == 0) { @@ -2551,7 +2890,7 @@ goto block_22; } } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; @@ -2563,7 +2902,7 @@ lean_ctor_set(x_9, 1, x_7); return x_9; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__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, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8(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: { if (lean_obj_tag(x_2) == 0) @@ -2584,7 +2923,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3(x_1, x_10, x_9, x_13, x_14, x_11, x_4, x_5, x_6, x_7, x_8); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(x_1, x_10, x_9, x_13, x_14, x_11, x_4, x_5, x_6, x_7, x_8); lean_dec(x_9); if (lean_obj_tag(x_15) == 0) { @@ -2603,7 +2942,7 @@ x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); lean_dec(x_16); x_20 = lean_box(0); -x_21 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(x_19, x_20, x_4, x_5, x_6, x_7, x_18); +x_21 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_19, x_20, x_4, x_5, x_6, x_7, x_18); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -2692,7 +3031,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_38 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4(x_33, x_32, x_36, x_37, x_34, x_4, x_5, x_6, x_7, x_8); +x_38 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(x_33, x_32, x_36, x_37, x_34, x_4, x_5, x_6, x_7, x_8); lean_dec(x_32); if (lean_obj_tag(x_38) == 0) { @@ -2711,7 +3050,7 @@ x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); lean_dec(x_39); x_43 = lean_box(0); -x_44 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(x_42, x_43, x_4, x_5, x_6, x_7, x_41); +x_44 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_42, x_43, x_4, x_5, x_6, x_7, x_41); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -2783,7 +3122,7 @@ return x_54; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -2860,7 +3199,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_51 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(x_45, x_43, x_47, x_50, x_6, x_7, x_8, x_9, x_48); +x_51 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(x_45, x_43, x_47, x_50, x_6, x_7, x_8, x_9, x_48); lean_dec(x_43); if (lean_obj_tag(x_51) == 0) { @@ -2928,7 +3267,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_63 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(x_45, x_43, x_60, x_62, x_6, x_7, x_8, x_9, x_61); +x_63 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(x_45, x_43, x_60, x_62, x_6, x_7, x_8, x_9, x_61); lean_dec(x_43); if (lean_obj_tag(x_63) == 0) { @@ -3174,7 +3513,7 @@ goto block_22; } } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; @@ -3184,7 +3523,7 @@ lean_ctor_set(x_8, 1, x_7); return x_8; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7(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; @@ -3195,7 +3534,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_9 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2(x_2, x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8(x_2, x_8, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -3256,7 +3595,7 @@ x_22 = lean_array_get_size(x_19); x_23 = lean_usize_of_nat(x_22); lean_dec(x_22); x_24 = 0; -x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5(x_20, x_19, x_23, x_24, x_21, x_3, x_4, x_5, x_6, x_17); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11(x_20, x_19, x_23, x_24, x_21, x_3, x_4, x_5, x_6, x_17); lean_dec(x_19); if (lean_obj_tag(x_25) == 0) { @@ -3380,7 +3719,23 @@ return x_47; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1055_(x_2); +x_6 = (size_t)x_5; +x_7 = lean_usize_modn(x_6, x_4); +lean_dec(x_4); +x_8 = lean_array_uget(x_3, x_7); +x_9 = l_List_elem___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(x_2, x_8); +lean_dec(x_8); +return x_9; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -3414,7 +3769,7 @@ lean_inc(x_8); lean_inc(x_17); lean_inc(x_2); lean_inc(x_1); -x_19 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(x_1, x_2, x_15, x_17, x_8, x_9, x_10, x_11, x_12); +x_19 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(x_1, x_2, x_15, x_17, x_8, x_9, x_10, x_11, x_12); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); if (lean_obj_tag(x_20) == 0) @@ -3483,7 +3838,7 @@ lean_inc(x_8); lean_inc(x_32); lean_inc(x_2); lean_inc(x_1); -x_33 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(x_1, x_2, x_15, x_32, x_8, x_9, x_10, x_11, x_12); +x_33 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(x_1, x_2, x_15, x_32, x_8, x_9, x_10, x_11, x_12); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); if (lean_obj_tag(x_34) == 0) @@ -3543,7 +3898,7 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -3609,7 +3964,7 @@ lean_inc(x_28); lean_dec(x_14); x_29 = l_Lean_LocalDecl_fvarId(x_28); lean_dec(x_28); -x_30 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_1, x_29); +x_30 = l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(x_1, x_29); if (x_30 == 0) { size_t x_31; size_t x_32; @@ -3645,7 +4000,7 @@ lean_inc(x_39); lean_dec(x_14); x_40 = l_Lean_LocalDecl_fvarId(x_39); lean_dec(x_39); -x_41 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_1, x_40); +x_41 = l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(x_1, x_40); if (x_41 == 0) { lean_object* x_42; size_t x_43; size_t x_44; @@ -3679,7 +4034,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(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* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_3) == 0) @@ -3698,7 +4053,7 @@ lean_dec(x_13); x_15 = 0; lean_inc(x_7); lean_inc(x_5); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8(x_1, x_2, x_11, x_10, x_14, x_15, x_12, x_5, x_6, x_7, x_8, x_9); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15(x_1, x_2, x_11, x_10, x_14, x_15, x_12, x_5, x_6, x_7, x_8, x_9); lean_dec(x_10); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -3714,7 +4069,7 @@ x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); x_21 = lean_box(0); -x_22 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(x_20, x_21, x_5, x_6, x_7, x_8, x_19); +x_22 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_20, x_21, x_5, x_6, x_7, x_8, x_19); lean_dec(x_7); lean_dec(x_5); return x_22; @@ -3768,7 +4123,7 @@ x_32 = lean_array_get_size(x_29); x_33 = lean_usize_of_nat(x_32); lean_dec(x_32); x_34 = 0; -x_35 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(x_1, x_30, x_29, x_33, x_34, x_31, x_5, x_6, x_7, x_8, x_9); +x_35 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16(x_1, x_30, x_29, x_33, x_34, x_31, x_5, x_6, x_7, x_8, x_9); lean_dec(x_29); lean_dec(x_1); x_36 = lean_ctor_get(x_35, 0); @@ -3785,7 +4140,7 @@ x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); lean_dec(x_36); x_40 = lean_box(0); -x_41 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(x_39, x_40, x_5, x_6, x_7, x_8, x_38); +x_41 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_39, x_40, x_5, x_6, x_7, x_8, x_38); lean_dec(x_7); lean_dec(x_5); return x_41; @@ -3826,7 +4181,7 @@ return x_47; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t 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* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -3892,7 +4247,7 @@ lean_inc(x_28); lean_dec(x_14); x_29 = l_Lean_LocalDecl_fvarId(x_28); lean_dec(x_28); -x_30 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_1, x_29); +x_30 = l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(x_1, x_29); if (x_30 == 0) { size_t x_31; size_t x_32; @@ -3928,7 +4283,7 @@ lean_inc(x_39); lean_dec(x_14); x_40 = l_Lean_LocalDecl_fvarId(x_39); lean_dec(x_39); -x_41 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_1, x_40); +x_41 = l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(x_1, x_40); if (x_41 == 0) { lean_object* x_42; size_t x_43; size_t x_44; @@ -3962,7 +4317,7 @@ goto _start; } } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -3972,7 +4327,7 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(x_1, x_3, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(x_1, x_3, x_9, x_3, x_4, x_5, x_6, x_7, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_11) == 0) @@ -4029,7 +4384,7 @@ x_23 = lean_array_get_size(x_20); x_24 = lean_usize_of_nat(x_23); lean_dec(x_23); x_25 = 0; -x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(x_1, x_21, x_20, x_24, x_25, x_22, x_4, x_5, x_6, x_7, x_18); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17(x_1, x_21, x_20, x_24, x_25, x_22, x_4, x_5, x_6, x_7, x_18); lean_dec(x_6); lean_dec(x_4); lean_dec(x_20); @@ -4125,7 +4480,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_9); -x_10 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1(x_9, x_1, x_3, x_4, x_5, x_6, x_7); +x_10 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7(x_9, x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -4167,7 +4522,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_free_object(x_16); x_23 = l_Lean_Meta_getNondepPropHyps___lambda__1___closed__1; -x_24 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6(x_18, x_9, x_23, x_3, x_4, x_5, x_6, x_19); +x_24 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13(x_18, x_9, x_23, x_3, x_4, x_5, x_6, x_19); lean_dec(x_6); lean_dec(x_4); x_25 = !lean_is_exclusive(x_24); @@ -4220,7 +4575,7 @@ if (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; x_35 = l_Lean_Meta_getNondepPropHyps___lambda__1___closed__1; -x_36 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6(x_30, x_9, x_35, x_3, x_4, x_5, x_6, x_31); +x_36 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13(x_30, x_9, x_35, x_3, x_4, x_5, x_6, x_31); lean_dec(x_6); lean_dec(x_4); x_37 = lean_ctor_get(x_36, 0); @@ -4370,94 +4725,13 @@ x_9 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean return x_9; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_3); -return x_14; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___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, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); +lean_object* x_4; +x_4 = l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(x_1, x_2, x_3); lean_dec(x_2); -return x_10; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -return x_13; -} -} -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___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: -{ -lean_object* x_8; -x_8 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__5(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -return x_13; -} -} -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1___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: -{ -lean_object* x_8; -x_8 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -size_t x_13; size_t x_14; lean_object* x_15; -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__8(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_4); -return x_15; +return x_4; } } lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -4469,26 +4743,99 @@ lean_dec(x_4); x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); lean_dec(x_3); -lean_dec(x_1); return x_14; } } -lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___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, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_2); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_13; +} +} +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___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: +{ +lean_object* x_8; +x_8 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_13; +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___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: +{ +lean_object* x_8; +x_8 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_HashSetImp_contains___at_Lean_Meta_getNondepPropHyps___spec__12(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_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__15(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_4); +return x_15; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -4496,7 +4843,7 @@ x_12 = lean_unbox_usize(x_4); lean_dec(x_4); x_13 = lean_unbox_usize(x_5); lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__10(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__16(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4506,11 +4853,39 @@ lean_dec(x_1); return x_14; } } -lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +return x_10; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__17(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +} +lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13___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: { lean_object* x_9; -x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); return x_9; diff --git a/stage0/stdlib/Lean/Meta/Transform.c b/stage0/stdlib/Lean/Meta/Transform.c index 22ae5c06bb..266af25d1e 100644 --- a/stage0/stdlib/Lean/Meta/Transform.c +++ b/stage0/stdlib/Lean/Meta/Transform.c @@ -870,7 +870,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(957u); +x_3 = lean_unsigned_to_nat(976u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -977,7 +977,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(943u); +x_3 = lean_unsigned_to_nat(962u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1084,7 +1084,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__1; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(985u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1222,7 +1222,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__1; -x_3 = lean_unsigned_to_nat(924u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1296,7 +1296,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__1; -x_3 = lean_unsigned_to_nat(929u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/UnificationHint.c b/stage0/stdlib/Lean/Meta/UnificationHint.c index fac4dbc5fc..572b2a97cc 100644 --- a/stage0/stdlib/Lean/Meta/UnificationHint.c +++ b/stage0/stdlib/Lean/Meta/UnificationHint.c @@ -23,6 +23,7 @@ lean_object* l_Lean_Meta_unificationHintExtension___lambda__6(lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___at_Lean_Meta_addUnificationHint___spec__3___boxed(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Std_Format_join(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Meta_UnificationHint_0__Lean_Meta_validateHint___spec__1___closed__3; lean_object* l_Lean_stringToMessageData(lean_object*); @@ -218,6 +219,7 @@ static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToForma static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__1; lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_73____closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18; lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_UnificationHints_add___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_unificationHintExtension___closed__5; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__14; @@ -235,7 +237,6 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decode___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__6; static lean_object* l_List_mapTRAux___at_Lean_Meta_instToFormatUnificationHints___spec__3___closed__8; -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Array_binInsertM___at_Lean_Meta_UnificationHints_add___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_value_x3f(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -301,7 +302,7 @@ uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__1; uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_309_(uint8_t, uint8_t); -lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; lean_object* l_Lean_ScopedEnvExtension_instInhabitedStateStack(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate_match__3(lean_object*); @@ -320,7 +321,6 @@ lean_object* l_Lean_Meta_DiscrTree_format___at_Lean_Meta_instToFormatUnification static lean_object* l_Lean_Meta_addUnificationHint___lambda__1___closed__1; static lean_object* l_Lean_Meta_DiscrTree_Trie_format___at_Lean_Meta_instToFormatUnificationHints___spec__2___closed__5; lean_object* l_Lean_Attribute_Builtin_ensureNoArgs(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instToFormatUnificationHints(lean_object*); static lean_object* l_List_format___at_Lean_Meta_instToFormatUnificationHints___spec__4___closed__2; lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -4059,8 +4059,20 @@ static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_instInhabitedUnificationHints___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__8; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -4072,7 +4084,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4084,24 +4096,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_instInhabitedUnificationHints___closed__2; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__12() { @@ -4119,6 +4119,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__13() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_instInhabitedUnificationHints___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__14() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -4127,7 +4139,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -4138,7 +4150,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4150,14 +4162,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__9; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__11; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__12; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__15; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__10; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__12; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__13; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__16; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -4169,18 +4181,18 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__8; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__16; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__9; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17; x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__5; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } @@ -4202,7 +4214,7 @@ x_9 = lean_st_ref_get(x_5, x_8); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); -x_11 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17; +x_11 = l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18; x_12 = lean_st_mk_ref(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -4826,7 +4838,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 0); lean_dec(x_11); -x_12 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_12 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -4865,7 +4877,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); -x_22 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3, x_4, x_5, x_6); +x_22 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -8548,7 +8560,7 @@ return x_1; lean_object* l_Lean_Meta_tryUnificationHints___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, lean_object* x_7, lean_object* x_8) { _start: { -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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; x_9 = lean_st_ref_get(x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -8561,138 +8573,139 @@ lean_dec(x_10); x_13 = l_Lean_Meta_unificationHintExtension; x_14 = l_Lean_ScopedEnvExtension_getState___at_Lean_Meta_addUnificationHint___spec__2(x_13, x_12); lean_dec(x_12); +x_15 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_15 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_14, x_1, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_14, x_1, x_15, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_array_get_size(x_16); -x_19 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_20 = 0; -x_21 = l_Lean_Meta_tryUnificationHints___lambda__2___closed__1; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_array_get_size(x_17); +x_20 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_21 = 0; +x_22 = l_Lean_Meta_tryUnificationHints___lambda__2___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___spec__1(x_1, x_2, x_21, x_16, x_19, x_20, x_21, x_4, x_5, x_6, x_7, x_17); -lean_dec(x_16); -if (lean_obj_tag(x_22) == 0) +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_tryUnificationHints___spec__1(x_1, x_2, x_22, x_17, x_20, x_21, x_22, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_17); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); +lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_22); -x_26 = l_Lean_Meta_tryUnificationHints___lambda__2___closed__2; -x_27 = lean_box(0); -x_28 = lean_apply_6(x_26, x_27, x_4, x_5, x_6, x_7, x_25); -return x_28; +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = l_Lean_Meta_tryUnificationHints___lambda__2___closed__2; +x_28 = lean_box(0); +x_29 = lean_apply_6(x_27, x_28, x_4, x_5, x_6, x_7, x_26); +return x_29; } else { -uint8_t x_29; +uint8_t x_30; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_29 = !lean_is_exclusive(x_22); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_23); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_22, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_24, 0); -lean_inc(x_31); -lean_dec(x_24); -lean_ctor_set(x_22, 0, x_31); -return x_22; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_22, 1); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_23, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_25, 0); lean_inc(x_32); -lean_dec(x_22); -x_33 = lean_ctor_get(x_24, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_32); +return x_23; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_23, 1); lean_inc(x_33); -lean_dec(x_24); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; +lean_dec(x_23); +x_34 = lean_ctor_get(x_25, 0); +lean_inc(x_34); +lean_dec(x_25); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; } } } else { -uint8_t x_35; +uint8_t x_36; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_35 = !lean_is_exclusive(x_22); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_23); +if (x_36 == 0) { -return x_22; +return x_23; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_22, 0); -x_37 = lean_ctor_get(x_22, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_23, 0); +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_22); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_dec(x_23); +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 { -uint8_t x_39; +uint8_t x_40; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_15); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_16); +if (x_40 == 0) { -return x_15; +return x_16; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_15, 0); -x_41 = lean_ctor_get(x_15, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_16, 0); +x_42 = lean_ctor_get(x_16, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_15); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_dec(x_16); +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; } } } @@ -9153,6 +9166,8 @@ l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___clo lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__16); l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__17); +l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__1___closed__18); l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__2___closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__2___closed__1(); lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__2___closed__1); l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__2___closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_673____lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 11c75aaa82..f656f8e7dc 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -35,7 +35,6 @@ lean_object* l_Lean_Meta_getStuckMVar_x3f_match__2(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Meta_whnfEasyCases_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceBinNatOp___closed__3; static lean_object* l_Lean_Meta_reduceNat_x3f___closed__16; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -55,6 +54,7 @@ lean_object* l_Nat_beq___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldProjInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__2; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_useWHNFCache_match__1(lean_object*); +static lean_object* l_Lean_Meta_whnfEasyCases___closed__6; static lean_object* l_Lean_Meta_reduceBinNatOp___closed__5; lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_matchConstAux_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_ExprStructEq_instHashableExprStructEq; @@ -110,6 +110,7 @@ lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2___lamb lean_object* l_Lean_Meta_reduceMatcher_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_Meta_reduceBoolNativeUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfUntil___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -149,6 +150,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_Meta_getStuckMVar_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceMatcher_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__7; +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,6 +194,7 @@ lean_object* l_Lean_Meta_unfoldDefinition_x3f_match__1(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isQuotRecStuck_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_name(lean_object*); lean_object* l_Lean_Meta_reduceBinNatOp___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Lean_evalConstCheck___at_Lean_Meta_reduceBoolNativeUnsafe___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceMatcher_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getStuckMVar_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -295,6 +298,7 @@ static lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2_ lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec_match__1(lean_object*); lean_object* l_Lean_Meta_getExprMVarAssignment_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -310,6 +314,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceNatNative(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -358,6 +363,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f lean_object* l_Lean_Meta_unfoldDefinition_x3f_match__2(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_getFirstCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_whnfEasyCases___closed__4; +lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__9; lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getTransparency(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -446,6 +452,7 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldProjInst_match__2___r lean_object* l_Lean_Meta_getStuckMVar_x3f_match__3(lean_object*); lean_object* l_Lean_Meta_whnfCore_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_reduceNative_x3f___closed__13; +lean_object* l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_instMonadControlT__1___rarg(lean_object*); static lean_object* l_Lean_Meta_reduceNat_x3f___closed__3; lean_object* l_Lean_Meta_reduceMatcher_x3f_match__1(lean_object*); @@ -5105,6 +5112,14 @@ x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } +static lean_object* _init_l_Lean_Meta_whnfEasyCases___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Name_quickCmp___boxed), 2, 0); +return x_1; +} +} lean_object* l_Lean_Meta_whnfEasyCases(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: { @@ -5183,18 +5198,18 @@ x_24 = lean_ctor_get(x_22, 0); x_25 = lean_ctor_get(x_22, 1); if (x_21 == 0) { -lean_object* x_52; +lean_object* x_54; lean_free_object(x_22); lean_dec(x_1); -x_52 = lean_box(0); -x_26 = x_52; -goto block_51; +x_54 = lean_box(0); +x_26 = x_54; +goto block_53; } else { -uint8_t x_53; -x_53 = lean_ctor_get_uint8(x_24, 6); -if (x_53 == 0) +uint8_t x_55; +x_55 = lean_ctor_get_uint8(x_24, 6); +if (x_55 == 0) { lean_dec(x_24); lean_dec(x_20); @@ -5209,15 +5224,15 @@ return x_22; } else { -lean_object* x_54; +lean_object* x_56; lean_free_object(x_22); lean_dec(x_1); -x_54 = lean_box(0); -x_26 = x_54; -goto block_51; +x_56 = lean_box(0); +x_26 = x_56; +goto block_53; } } -block_51: +block_53: { uint8_t x_27; lean_dec(x_26); @@ -5246,44 +5261,46 @@ lean_dec(x_31); x_34 = !lean_is_exclusive(x_32); if (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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_35 = lean_ctor_get(x_32, 2); -x_36 = lean_box(0); -x_37 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_35, x_12, x_36); -lean_ctor_set(x_32, 2, x_37); -x_38 = lean_st_ref_set(x_4, x_32, x_33); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); +x_36 = l_Lean_Meta_whnfEasyCases___closed__6; +x_37 = lean_box(0); +x_38 = l_Std_RBNode_insert___rarg(x_36, x_35, x_12, x_37); +lean_ctor_set(x_32, 2, x_38); +x_39 = lean_st_ref_set(x_4, x_32, x_33); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); x_1 = x_20; -x_7 = x_39; +x_7 = x_40; goto _start; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_41 = lean_ctor_get(x_32, 0); -x_42 = lean_ctor_get(x_32, 1); -x_43 = lean_ctor_get(x_32, 2); -x_44 = lean_ctor_get(x_32, 3); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +x_44 = lean_ctor_get(x_32, 2); +x_45 = lean_ctor_get(x_32, 3); +lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); lean_dec(x_32); -x_45 = lean_box(0); -x_46 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_43, x_12, x_45); -x_47 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_47, 0, x_41); -lean_ctor_set(x_47, 1, x_42); -lean_ctor_set(x_47, 2, x_46); -lean_ctor_set(x_47, 3, x_44); -x_48 = lean_st_ref_set(x_4, x_47, x_33); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); +x_46 = l_Lean_Meta_whnfEasyCases___closed__6; +x_47 = lean_box(0); +x_48 = l_Std_RBNode_insert___rarg(x_46, x_44, x_12, x_47); +x_49 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_49, 0, x_42); +lean_ctor_set(x_49, 1, x_43); +lean_ctor_set(x_49, 2, x_48); +lean_ctor_set(x_49, 3, x_45); +x_50 = lean_st_ref_set(x_4, x_49, x_33); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); x_1 = x_20; -x_7 = x_49; +x_7 = x_51; goto _start; } } @@ -5291,28 +5308,28 @@ goto _start; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_22, 0); -x_56 = lean_ctor_get(x_22, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_22, 0); +x_58 = lean_ctor_get(x_22, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_22); if (x_21 == 0) { -lean_object* x_77; +lean_object* x_80; lean_dec(x_1); -x_77 = lean_box(0); -x_57 = x_77; -goto block_76; +x_80 = lean_box(0); +x_59 = x_80; +goto block_79; } else { -uint8_t x_78; -x_78 = lean_ctor_get_uint8(x_55, 6); -if (x_78 == 0) +uint8_t x_81; +x_81 = lean_ctor_get_uint8(x_57, 6); +if (x_81 == 0) { -lean_object* x_79; -lean_dec(x_55); +lean_object* x_82; +lean_dec(x_57); lean_dec(x_20); lean_dec(x_12); lean_dec(x_6); @@ -5320,81 +5337,82 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_1); -lean_ctor_set(x_79, 1, x_56); -return x_79; +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_1); +lean_ctor_set(x_82, 1, x_58); +return x_82; } else { -lean_object* x_80; +lean_object* x_83; lean_dec(x_1); -x_80 = lean_box(0); -x_57 = x_80; -goto block_76; +x_83 = lean_box(0); +x_59 = x_83; +goto block_79; } } -block_76: +block_79: { -uint8_t x_58; +uint8_t x_60; +lean_dec(x_59); +x_60 = lean_ctor_get_uint8(x_57, 7); lean_dec(x_57); -x_58 = lean_ctor_get_uint8(x_55, 7); -lean_dec(x_55); -if (x_58 == 0) +if (x_60 == 0) { lean_dec(x_12); x_1 = x_20; -x_7 = x_56; +x_7 = x_58; goto _start; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_60 = lean_st_ref_get(x_6, x_56); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_st_ref_take(x_4, x_61); -x_63 = lean_ctor_get(x_62, 0); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_62 = lean_st_ref_get(x_6, x_58); +x_63 = lean_ctor_get(x_62, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); lean_dec(x_62); -x_65 = lean_ctor_get(x_63, 0); +x_64 = lean_st_ref_take(x_4, x_63); +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -x_66 = lean_ctor_get(x_63, 1); +x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_63, 2); +lean_dec(x_64); +x_67 = lean_ctor_get(x_65, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_63, 3); +x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - lean_ctor_release(x_63, 2); - lean_ctor_release(x_63, 3); - x_69 = x_63; +x_69 = lean_ctor_get(x_65, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 3); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + lean_ctor_release(x_65, 2); + lean_ctor_release(x_65, 3); + x_71 = x_65; } else { - lean_dec_ref(x_63); - x_69 = lean_box(0); + lean_dec_ref(x_65); + x_71 = lean_box(0); } -x_70 = lean_box(0); -x_71 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_67, x_12, x_70); -if (lean_is_scalar(x_69)) { - x_72 = lean_alloc_ctor(0, 4, 0); +x_72 = l_Lean_Meta_whnfEasyCases___closed__6; +x_73 = lean_box(0); +x_74 = l_Std_RBNode_insert___rarg(x_72, x_69, x_12, x_73); +if (lean_is_scalar(x_71)) { + x_75 = lean_alloc_ctor(0, 4, 0); } else { - x_72 = x_69; + x_75 = x_71; } -lean_ctor_set(x_72, 0, x_65); -lean_ctor_set(x_72, 1, x_66); -lean_ctor_set(x_72, 2, x_71); -lean_ctor_set(x_72, 3, x_68); -x_73 = lean_st_ref_set(x_4, x_72, x_64); -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); +lean_ctor_set(x_75, 0, x_67); +lean_ctor_set(x_75, 1, x_68); +lean_ctor_set(x_75, 2, x_74); +lean_ctor_set(x_75, 3, x_70); +x_76 = lean_st_ref_set(x_4, x_75, x_66); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); x_1 = x_20; -x_7 = x_74; +x_7 = x_77; goto _start; } } @@ -5403,7 +5421,7 @@ goto _start; } else { -uint8_t x_81; +uint8_t x_84; lean_dec(x_12); lean_dec(x_6); lean_dec(x_5); @@ -5411,123 +5429,123 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_13); -if (x_81 == 0) +x_84 = !lean_is_exclusive(x_13); +if (x_84 == 0) { return x_13; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_13, 0); -x_83 = lean_ctor_get(x_13, 1); -lean_inc(x_83); -lean_inc(x_82); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_13, 0); +x_86 = lean_ctor_get(x_13, 1); +lean_inc(x_86); +lean_inc(x_85); lean_dec(x_13); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } } case 2: { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_1, 0); -lean_inc(x_85); -x_86 = l_Lean_Meta_getExprMVarAssignment_x3f(x_85, x_3, x_4, x_5, x_6, x_7); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -if (lean_obj_tag(x_87) == 0) +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_1, 0); +lean_inc(x_88); +x_89 = l_Lean_Meta_getExprMVarAssignment_x3f(x_88, x_3, x_4, x_5, x_6, x_7); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +if (lean_obj_tag(x_90) == 0) { -uint8_t x_88; +uint8_t x_91; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_88 = !lean_is_exclusive(x_86); -if (x_88 == 0) +x_91 = !lean_is_exclusive(x_89); +if (x_91 == 0) { -lean_object* x_89; -x_89 = lean_ctor_get(x_86, 0); -lean_dec(x_89); -lean_ctor_set(x_86, 0, x_1); -return x_86; +lean_object* x_92; +x_92 = lean_ctor_get(x_89, 0); +lean_dec(x_92); +lean_ctor_set(x_89, 0, x_1); +return x_89; } else { -lean_object* x_90; lean_object* x_91; -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_1); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -else -{ -lean_object* x_92; lean_object* x_93; -lean_dec(x_1); -x_92 = lean_ctor_get(x_86, 1); -lean_inc(x_92); -lean_dec(x_86); -x_93 = lean_ctor_get(x_87, 0); +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_89, 1); lean_inc(x_93); -lean_dec(x_87); -x_1 = x_93; -x_7 = x_92; +lean_dec(x_89); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_1); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +else +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_1); +x_95 = lean_ctor_get(x_89, 1); +lean_inc(x_95); +lean_dec(x_89); +x_96 = lean_ctor_get(x_90, 0); +lean_inc(x_96); +lean_dec(x_90); +x_1 = x_96; +x_7 = x_95; goto _start; } } case 4: { -lean_object* x_95; -x_95 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); -return x_95; +lean_object* x_98; +x_98 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +return x_98; } case 5: { -lean_object* x_96; -x_96 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); -return x_96; +lean_object* x_99; +x_99 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +return x_99; } case 8: { -lean_object* x_97; -x_97 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); -return x_97; -} -case 10: -{ -lean_object* x_98; -x_98 = lean_ctor_get(x_1, 1); -lean_inc(x_98); -lean_dec(x_1); -x_1 = x_98; -goto _start; -} -case 11: -{ lean_object* x_100; x_100 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); return x_100; } -default: +case 10: { lean_object* x_101; +x_101 = lean_ctor_get(x_1, 1); +lean_inc(x_101); +lean_dec(x_1); +x_1 = x_101; +goto _start; +} +case 11: +{ +lean_object* x_103; +x_103 = lean_apply_6(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +return x_103; +} +default: +{ +lean_object* x_104; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_1); -lean_ctor_set(x_101, 1, x_7); -return x_101; +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_1); +lean_ctor_set(x_104, 1, x_7); +return x_104; } } } @@ -8406,6 +8424,2476 @@ return x_19; } } } +lean_object* l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_Meta_whnfCore___spec__4(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -9253,7 +11741,7 @@ if (x_33 == 0) lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_34 = lean_ctor_get(x_31, 2); x_35 = lean_box(0); -x_36 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_34, x_11, x_35); +x_36 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_34, x_11, x_35); lean_ctor_set(x_31, 2, x_36); x_37 = lean_st_ref_set(x_3, x_31, x_32); x_38 = lean_ctor_get(x_37, 1); @@ -9276,7 +11764,7 @@ lean_inc(x_41); lean_inc(x_40); lean_dec(x_31); x_44 = lean_box(0); -x_45 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_42, x_11, x_44); +x_45 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_42, x_11, x_44); x_46 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_46, 0, x_40); lean_ctor_set(x_46, 1, x_41); @@ -9382,7 +11870,7 @@ if (lean_is_exclusive(x_62)) { x_68 = lean_box(0); } x_69 = lean_box(0); -x_70 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_66, x_11, x_69); +x_70 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_66, x_11, x_69); if (lean_is_scalar(x_68)) { x_71 = lean_alloc_ctor(0, 4, 0); } else { @@ -13198,7 +15686,7 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_35 = lean_ctor_get(x_32, 2); x_36 = lean_box(0); -x_37 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_35, x_12, x_36); +x_37 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_35, x_12, x_36); lean_ctor_set(x_32, 2, x_37); x_38 = lean_st_ref_set(x_4, x_32, x_33); x_39 = lean_ctor_get(x_38, 1); @@ -13221,7 +15709,7 @@ lean_inc(x_42); lean_inc(x_41); lean_dec(x_32); x_45 = lean_box(0); -x_46 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_43, x_12, x_45); +x_46 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_43, x_12, x_45); x_47 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_47, 0, x_41); lean_ctor_set(x_47, 1, x_42); @@ -13327,7 +15815,7 @@ if (lean_is_exclusive(x_63)) { x_69 = lean_box(0); } x_70 = lean_box(0); -x_71 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_67, x_12, x_70); +x_71 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_67, x_12, x_70); if (lean_is_scalar(x_69)) { x_72 = lean_alloc_ctor(0, 4, 0); } else { @@ -22466,7 +24954,7 @@ if (x_33 == 0) lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_34 = lean_ctor_get(x_31, 2); x_35 = lean_box(0); -x_36 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_34, x_11, x_35); +x_36 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_34, x_11, x_35); lean_ctor_set(x_31, 2, x_36); x_37 = lean_st_ref_set(x_3, x_31, x_32); x_38 = lean_ctor_get(x_37, 1); @@ -22489,7 +24977,7 @@ lean_inc(x_41); lean_inc(x_40); lean_dec(x_31); x_44 = lean_box(0); -x_45 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_42, x_11, x_44); +x_45 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_42, x_11, x_44); x_46 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_46, 0, x_40); lean_ctor_set(x_46, 1, x_41); @@ -22595,7 +25083,7 @@ if (lean_is_exclusive(x_62)) { x_68 = lean_box(0); } x_69 = lean_box(0); -x_70 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_66, x_11, x_69); +x_70 = l_Std_RBNode_insert___at_Lean_Meta_whnfCore___spec__3(x_66, x_11, x_69); if (lean_is_scalar(x_68)) { x_71 = lean_alloc_ctor(0, 4, 0); } else { @@ -25208,6 +27696,8 @@ l_Lean_Meta_whnfEasyCases___closed__4 = _init_l_Lean_Meta_whnfEasyCases___closed lean_mark_persistent(l_Lean_Meta_whnfEasyCases___closed__4); l_Lean_Meta_whnfEasyCases___closed__5 = _init_l_Lean_Meta_whnfEasyCases___closed__5(); lean_mark_persistent(l_Lean_Meta_whnfEasyCases___closed__5); +l_Lean_Meta_whnfEasyCases___closed__6 = _init_l_Lean_Meta_whnfEasyCases___closed__6(); +lean_mark_persistent(l_Lean_Meta_whnfEasyCases___closed__6); l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__1 = _init_l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__1(); lean_mark_persistent(l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__1); l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__2 = _init_l___private_Lean_Meta_WHNF_0__Lean_Meta_isIdRhsApp___closed__2(); diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index 1a661898b2..b344b56e8f 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -204,7 +204,6 @@ lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_MkBinding_collectDeps___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__1; -extern lean_object* l_Lean_instHashableName; lean_object* l_Lean_MetavarContext_mkBinding(uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_MetavarContext_getDecl___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); @@ -535,7 +534,6 @@ lean_object* l_Nat_forM_loop___at_Lean_MetavarContext_MkBinding_collectDeps___sp lean_object* l_Lean_MetavarContext_LevelMVarToParam_State_cache___default; lean_object* l_Lean_MetavarContext_findExprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__18(lean_object*); lean_object* l_Lean_MetavarContext_instantiateLCtxMVars_match__2(lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars_match__2___rarg(lean_object*, lean_object*, lean_object*); @@ -642,6 +640,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); +uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__7(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__30___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -667,6 +666,7 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim_match__1(lean_object*); static lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_instToStringException___spec__2___closed__1; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_localDeclDependsOn___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instHashableMVarId; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getInScope___boxed(lean_object*, lean_object*); static lean_object* l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__4___closed__3; lean_object* l_List_mapM___at_Lean_MetavarContext_instantiateExprMVars___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -780,6 +780,7 @@ uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsO lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg___lambda__2___boxed__const__1; lean_object* l_Lean_LocalInstances_erase_match__1(lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContext_instantiateExprMVars___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_MetavarContext_lDepth___default___closed__1; uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__20(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg___lambda__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectDeps___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -796,6 +797,7 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_MetavarContext_instantiateExprMVars___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instBEqMVarId; static lean_object* l_Lean_MetavarContext_MkBinding_instToStringException___closed__5; extern uint8_t l_instInhabitedBool; lean_object* l_Lean_MetavarContext_MkBinding_instToStringException(lean_object*); @@ -1191,7 +1193,6 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_sh lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__7___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_localDeclDependsOn___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Name_instBEqName; lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__28___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectDeps___spec__58___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___spec__27(lean_object*, lean_object*, size_t, size_t); @@ -2093,11 +2094,23 @@ x_1 = lean_unsigned_to_nat(0u); return x_1; } } +static lean_object* _init_l_Lean_MetavarContext_lDepth___default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_instInhabitedMetavarDecl___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} static lean_object* _init_l_Lean_MetavarContext_lDepth___default() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_1 = l_Lean_MetavarContext_lDepth___default___closed__1; return x_1; } } @@ -2105,7 +2118,7 @@ static lean_object* _init_l_Lean_MetavarContext_decls___default() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_1 = l_Lean_MetavarContext_lDepth___default___closed__1; return x_1; } } @@ -2113,7 +2126,7 @@ static lean_object* _init_l_Lean_MetavarContext_lAssignment___default() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_1 = l_Lean_MetavarContext_lDepth___default___closed__1; return x_1; } } @@ -2121,7 +2134,7 @@ static lean_object* _init_l_Lean_MetavarContext_eAssignment___default() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_1 = l_Lean_MetavarContext_lDepth___default___closed__1; return x_1; } } @@ -2129,7 +2142,7 @@ static lean_object* _init_l_Lean_MetavarContext_dAssignment___default() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_1 = l_Lean_MetavarContext_lDepth___default___closed__1; return x_1; } } @@ -2175,7 +2188,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_instInhabitedMetavarDecl___closed__3; +x_2 = l_Lean_MetavarContext_lDepth___default___closed__1; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -2227,8 +2240,8 @@ lean_ctor_set(x_15, 4, x_5); lean_ctor_set(x_15, 5, x_8); lean_ctor_set(x_15, 6, x_11); lean_ctor_set_uint8(x_15, sizeof(void*)*7, x_7); -x_16 = l_Lean_Name_instBEqName; -x_17 = l_Lean_instHashableName; +x_16 = l_Lean_instBEqMVarId; +x_17 = l_Lean_instHashableMVarId; x_18 = l_Std_PersistentHashMap_insert___rarg(x_16, x_17, x_12, x_2, x_15); lean_ctor_set(x_1, 3, x_18); lean_ctor_set(x_1, 1, x_14); @@ -2264,8 +2277,8 @@ lean_ctor_set(x_28, 4, x_5); lean_ctor_set(x_28, 5, x_8); lean_ctor_set(x_28, 6, x_20); lean_ctor_set_uint8(x_28, sizeof(void*)*7, x_7); -x_29 = l_Lean_Name_instBEqName; -x_30 = l_Lean_instHashableName; +x_29 = l_Lean_instBEqMVarId; +x_30 = l_Lean_instHashableMVarId; x_31 = l_Std_PersistentHashMap_insert___rarg(x_29, x_30, x_22, x_2, x_28); x_32 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_32, 0, x_19); @@ -2318,8 +2331,8 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 2); -x_6 = l_Lean_Name_instBEqName; -x_7 = l_Lean_instHashableName; +x_6 = l_Lean_instBEqMVarId; +x_7 = l_Lean_instHashableMVarId; lean_inc(x_4); x_8 = l_Std_PersistentHashMap_insert___rarg(x_6, x_7, x_5, x_2, x_4); lean_ctor_set(x_1, 2, x_8); @@ -2343,8 +2356,8 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_dec(x_1); -x_16 = l_Lean_Name_instBEqName; -x_17 = l_Lean_instHashableName; +x_16 = l_Lean_instBEqMVarId; +x_17 = l_Lean_instHashableMVarId; lean_inc(x_9); x_18 = l_Std_PersistentHashMap_insert___rarg(x_16, x_17, x_11, x_2, x_9); x_19 = lean_alloc_ctor(0, 7, 0); @@ -2366,8 +2379,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -2447,8 +2460,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); if (lean_obj_tag(x_6) == 0) { @@ -2802,8 +2815,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = lean_box(0); x_7 = l_Std_PersistentHashMap_foldlM___at_Lean_MetavarContext_findUserName_x3f___spec__2(x_2, x_4, x_5, x_3, x_6); if (lean_obj_tag(x_7) == 0) @@ -2876,8 +2889,8 @@ if (x_6 == 0) lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_ctor_get(x_1, 3); lean_ctor_set_uint8(x_4, sizeof(void*)*7, x_3); -x_8 = l_Lean_Name_instBEqName; -x_9 = l_Lean_instHashableName; +x_8 = l_Lean_instBEqMVarId; +x_9 = l_Lean_instHashableMVarId; x_10 = l_Std_PersistentHashMap_insert___rarg(x_8, x_9, x_7, x_2, x_4); lean_ctor_set(x_1, 3, x_10); return x_1; @@ -2910,8 +2923,8 @@ lean_ctor_set(x_19, 4, x_16); lean_ctor_set(x_19, 5, x_17); lean_ctor_set(x_19, 6, x_18); lean_ctor_set_uint8(x_19, sizeof(void*)*7, x_3); -x_20 = l_Lean_Name_instBEqName; -x_21 = l_Lean_instHashableName; +x_20 = l_Lean_instBEqMVarId; +x_21 = l_Lean_instHashableMVarId; x_22 = l_Std_PersistentHashMap_insert___rarg(x_20, x_21, x_11, x_2, x_19); lean_ctor_set(x_1, 3, x_22); return x_1; @@ -2975,8 +2988,8 @@ lean_ctor_set(x_38, 4, x_34); lean_ctor_set(x_38, 5, x_35); lean_ctor_set(x_38, 6, x_36); lean_ctor_set_uint8(x_38, sizeof(void*)*7, x_3); -x_39 = l_Lean_Name_instBEqName; -x_40 = l_Lean_instHashableName; +x_39 = l_Lean_instBEqMVarId; +x_40 = l_Lean_instHashableMVarId; x_41 = l_Std_PersistentHashMap_insert___rarg(x_39, x_40, x_26, x_2, x_38); x_42 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_42, 0, x_23); @@ -3019,8 +3032,8 @@ x_7 = lean_ctor_get(x_1, 3); x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); lean_ctor_set(x_4, 0, x_3); -x_9 = l_Lean_Name_instBEqName; -x_10 = l_Lean_instHashableName; +x_9 = l_Lean_instBEqMVarId; +x_10 = l_Lean_instHashableMVarId; x_11 = l_Std_PersistentHashMap_insert___rarg(x_9, x_10, x_7, x_2, x_4); lean_ctor_set(x_1, 3, x_11); return x_1; @@ -3052,8 +3065,8 @@ lean_ctor_set(x_20, 4, x_16); lean_ctor_set(x_20, 5, x_18); lean_ctor_set(x_20, 6, x_19); lean_ctor_set_uint8(x_20, sizeof(void*)*7, x_17); -x_21 = l_Lean_Name_instBEqName; -x_22 = l_Lean_instHashableName; +x_21 = l_Lean_instBEqMVarId; +x_22 = l_Lean_instHashableMVarId; x_23 = l_Std_PersistentHashMap_insert___rarg(x_21, x_22, x_12, x_2, x_20); lean_ctor_set(x_1, 3, x_23); return x_1; @@ -3116,8 +3129,8 @@ lean_ctor_set(x_39, 4, x_34); lean_ctor_set(x_39, 5, x_36); lean_ctor_set(x_39, 6, x_37); lean_ctor_set_uint8(x_39, sizeof(void*)*7, x_35); -x_40 = l_Lean_Name_instBEqName; -x_41 = l_Lean_instHashableName; +x_40 = l_Lean_instBEqMVarId; +x_41 = l_Lean_instHashableMVarId; x_42 = l_Std_PersistentHashMap_insert___rarg(x_40, x_41, x_27, x_2, x_39); x_43 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_43, 0, x_24); @@ -3150,8 +3163,8 @@ x_7 = lean_ctor_get(x_1, 3); x_8 = lean_ctor_get(x_4, 2); lean_dec(x_8); lean_ctor_set(x_4, 2, x_3); -x_9 = l_Lean_Name_instBEqName; -x_10 = l_Lean_instHashableName; +x_9 = l_Lean_instBEqMVarId; +x_10 = l_Lean_instHashableMVarId; x_11 = l_Std_PersistentHashMap_insert___rarg(x_9, x_10, x_7, x_2, x_4); lean_ctor_set(x_1, 3, x_11); return x_1; @@ -3183,8 +3196,8 @@ lean_ctor_set(x_20, 4, x_16); lean_ctor_set(x_20, 5, x_18); lean_ctor_set(x_20, 6, x_19); lean_ctor_set_uint8(x_20, sizeof(void*)*7, x_17); -x_21 = l_Lean_Name_instBEqName; -x_22 = l_Lean_instHashableName; +x_21 = l_Lean_instBEqMVarId; +x_22 = l_Lean_instHashableMVarId; x_23 = l_Std_PersistentHashMap_insert___rarg(x_21, x_22, x_12, x_2, x_20); lean_ctor_set(x_1, 3, x_23); return x_1; @@ -3247,8 +3260,8 @@ lean_ctor_set(x_39, 4, x_34); lean_ctor_set(x_39, 5, x_36); lean_ctor_set(x_39, 6, x_37); lean_ctor_set_uint8(x_39, sizeof(void*)*7, x_35); -x_40 = l_Lean_Name_instBEqName; -x_41 = l_Lean_instHashableName; +x_40 = l_Lean_instBEqMVarId; +x_41 = l_Lean_instHashableMVarId; x_42 = l_Std_PersistentHashMap_insert___rarg(x_40, x_41, x_27, x_2, x_39); x_43 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_43, 0, x_24); @@ -3269,8 +3282,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 2); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -3473,8 +3486,8 @@ x_11 = lean_ctor_get(x_1, 3); x_12 = lean_ctor_get(x_8, 0); lean_dec(x_12); lean_ctor_set(x_8, 0, x_3); -x_13 = l_Lean_Name_instBEqName; -x_14 = l_Lean_instHashableName; +x_13 = l_Lean_instBEqMVarId; +x_14 = l_Lean_instHashableMVarId; x_15 = l_Std_PersistentHashMap_insert___rarg(x_13, x_14, x_11, x_2, x_8); lean_ctor_set(x_1, 3, x_15); return x_1; @@ -3506,8 +3519,8 @@ lean_ctor_set(x_24, 4, x_20); lean_ctor_set(x_24, 5, x_22); lean_ctor_set(x_24, 6, x_23); lean_ctor_set_uint8(x_24, sizeof(void*)*7, x_21); -x_25 = l_Lean_Name_instBEqName; -x_26 = l_Lean_instHashableName; +x_25 = l_Lean_instBEqMVarId; +x_26 = l_Lean_instHashableMVarId; x_27 = l_Std_PersistentHashMap_insert___rarg(x_25, x_26, x_16, x_2, x_24); lean_ctor_set(x_1, 3, x_27); return x_1; @@ -3570,8 +3583,8 @@ lean_ctor_set(x_43, 4, x_38); lean_ctor_set(x_43, 5, x_40); lean_ctor_set(x_43, 6, x_41); lean_ctor_set_uint8(x_43, sizeof(void*)*7, x_39); -x_44 = l_Lean_Name_instBEqName; -x_45 = l_Lean_instHashableName; +x_44 = l_Lean_instBEqMVarId; +x_45 = l_Lean_instHashableMVarId; x_46 = l_Std_PersistentHashMap_insert___rarg(x_44, x_45, x_31, x_2, x_43); x_47 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_47, 0, x_28); @@ -3595,8 +3608,8 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_1, 4); -x_6 = l_Lean_Name_instBEqName; -x_7 = l_Lean_instHashableName; +x_6 = l_Lean_instBEqMVarId; +x_7 = l_Lean_instHashableMVarId; x_8 = l_Std_PersistentHashMap_insert___rarg(x_6, x_7, x_5, x_2, x_3); lean_ctor_set(x_1, 4, x_8); return x_1; @@ -3619,8 +3632,8 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_dec(x_1); -x_16 = l_Lean_Name_instBEqName; -x_17 = l_Lean_instHashableName; +x_16 = l_Lean_instBEqMVarId; +x_17 = l_Lean_instHashableMVarId; x_18 = l_Std_PersistentHashMap_insert___rarg(x_16, x_17, x_13, x_2, x_3); x_19 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_19, 0, x_9); @@ -3643,8 +3656,8 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_1, 5); -x_6 = l_Lean_Name_instBEqName; -x_7 = l_Lean_instHashableName; +x_6 = l_Lean_instBEqMVarId; +x_7 = l_Lean_instHashableMVarId; x_8 = l_Std_PersistentHashMap_insert___rarg(x_6, x_7, x_5, x_2, x_3); lean_ctor_set(x_1, 5, x_8); return x_1; @@ -3667,8 +3680,8 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_dec(x_1); -x_16 = l_Lean_Name_instBEqName; -x_17 = l_Lean_instHashableName; +x_16 = l_Lean_instBEqMVarId; +x_17 = l_Lean_instHashableMVarId; x_18 = l_Std_PersistentHashMap_insert___rarg(x_16, x_17, x_14, x_2, x_3); x_19 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_19, 0, x_9); @@ -3695,8 +3708,8 @@ x_8 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_8, 0, x_3); lean_ctor_set(x_8, 1, x_4); lean_ctor_set(x_8, 2, x_5); -x_9 = l_Lean_Name_instBEqName; -x_10 = l_Lean_instHashableName; +x_9 = l_Lean_instBEqMVarId; +x_10 = l_Lean_instHashableMVarId; x_11 = l_Std_PersistentHashMap_insert___rarg(x_9, x_10, x_7, x_2, x_8); lean_ctor_set(x_1, 6, x_11); return x_1; @@ -3723,8 +3736,8 @@ x_19 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_19, 0, x_3); lean_ctor_set(x_19, 1, x_4); lean_ctor_set(x_19, 2, x_5); -x_20 = l_Lean_Name_instBEqName; -x_21 = l_Lean_instHashableName; +x_20 = l_Lean_instBEqMVarId; +x_21 = l_Lean_instHashableMVarId; x_22 = l_Std_PersistentHashMap_insert___rarg(x_20, x_21, x_18, x_2, x_19); x_23 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_23, 0, x_12); @@ -3745,8 +3758,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 4); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -3758,8 +3771,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 5); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -3771,8 +3784,8 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 6); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); return x_6; } @@ -3907,7 +3920,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_hash(x_2); +x_4 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_2); x_5 = (size_t)x_4; x_6 = l_Std_PersistentHashMap_containsAux___at_Lean_MetavarContext_isLevelAssigned___spec__2(x_3, x_5, x_2); lean_dec(x_2); @@ -4077,7 +4090,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_hash(x_2); +x_4 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_2); x_5 = (size_t)x_4; x_6 = l_Std_PersistentHashMap_containsAux___at_Lean_MetavarContext_isExprAssigned___spec__2(x_3, x_5, x_2); lean_dec(x_2); @@ -4247,7 +4260,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; uint8_t x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_hash(x_2); +x_4 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_205_(x_2); x_5 = (size_t)x_4; x_6 = l_Std_PersistentHashMap_containsAux___at_Lean_MetavarContext_isDelayedAssigned___spec__2(x_3, x_5, x_2); lean_dec(x_2); @@ -4316,8 +4329,8 @@ 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_1, 6); -x_5 = l_Lean_Name_instBEqName; -x_6 = l_Lean_instHashableName; +x_5 = l_Lean_instBEqMVarId; +x_6 = l_Lean_instHashableMVarId; x_7 = l_Std_PersistentHashMap_erase___rarg(x_5, x_6, x_4, x_2); lean_ctor_set(x_1, 6, x_7); return x_1; @@ -4340,8 +4353,8 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); -x_15 = l_Lean_Name_instBEqName; -x_16 = l_Lean_instHashableName; +x_15 = l_Lean_instBEqMVarId; +x_16 = l_Lean_instHashableMVarId; x_17 = l_Std_PersistentHashMap_erase___rarg(x_15, x_16, x_14, x_2); x_18 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_18, 0, x_8); @@ -4495,8 +4508,8 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 2); lean_inc(x_3); -x_4 = l_Lean_Name_instBEqName; -x_5 = l_Lean_instHashableName; +x_4 = l_Lean_instBEqMVarId; +x_5 = l_Lean_instHashableMVarId; x_6 = l_Std_PersistentHashMap_find_x3f___rarg(x_4, x_5, x_3, x_2); if (lean_obj_tag(x_6) == 0) { @@ -6459,7 +6472,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(487u); +x_3 = lean_unsigned_to_nat(506u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6542,7 +6555,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__2___closed__1; -x_3 = lean_unsigned_to_nat(496u); +x_3 = lean_unsigned_to_nat(515u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__2___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -6643,7 +6656,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(505u); +x_3 = lean_unsigned_to_nat(524u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__4___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11638,7 +11651,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__2; -x_3 = lean_unsigned_to_nat(907u); +x_3 = lean_unsigned_to_nat(926u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11721,7 +11734,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__1; -x_3 = lean_unsigned_to_nat(898u); +x_3 = lean_unsigned_to_nat(917u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11807,7 +11820,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__1; -x_3 = lean_unsigned_to_nat(957u); +x_3 = lean_unsigned_to_nat(976u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11914,7 +11927,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__1; -x_3 = lean_unsigned_to_nat(943u); +x_3 = lean_unsigned_to_nat(962u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12021,7 +12034,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__1; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(985u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12155,7 +12168,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__1; -x_3 = lean_unsigned_to_nat(924u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12241,7 +12254,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__1; -x_3 = lean_unsigned_to_nat(929u); +x_3 = lean_unsigned_to_nat(948u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -25353,8 +25366,8 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = lean_ctor_get(x_11, 3); lean_ctor_set(x_3, 2, x_12); lean_ctor_set(x_3, 1, x_8); -x_15 = l_Lean_Name_instBEqName; -x_16 = l_Lean_instHashableName; +x_15 = l_Lean_instBEqMVarId; +x_16 = l_Lean_instHashableMVarId; x_17 = l_Std_PersistentHashMap_insert___rarg(x_15, x_16, x_14, x_2, x_3); lean_ctor_set(x_11, 3, x_17); return x_11; @@ -25379,8 +25392,8 @@ lean_inc(x_18); lean_dec(x_11); lean_ctor_set(x_3, 2, x_12); lean_ctor_set(x_3, 1, x_8); -x_25 = l_Lean_Name_instBEqName; -x_26 = l_Lean_instHashableName; +x_25 = l_Lean_instBEqMVarId; +x_26 = l_Lean_instHashableMVarId; x_27 = l_Std_PersistentHashMap_insert___rarg(x_25, x_26, x_21, x_2, x_3); x_28 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_28, 0, x_18); @@ -25460,8 +25473,8 @@ lean_ctor_set(x_51, 4, x_33); lean_ctor_set(x_51, 5, x_35); lean_ctor_set(x_51, 6, x_36); lean_ctor_set_uint8(x_51, sizeof(void*)*7, x_34); -x_52 = l_Lean_Name_instBEqName; -x_53 = l_Lean_instHashableName; +x_52 = l_Lean_instBEqMVarId; +x_53 = l_Lean_instHashableMVarId; x_54 = l_Std_PersistentHashMap_insert___rarg(x_52, x_53, x_46, x_2, x_51); if (lean_is_scalar(x_50)) { x_55 = lean_alloc_ctor(0, 7, 0); @@ -53592,6 +53605,8 @@ l_Lean_MetavarContext_depth___default = _init_l_Lean_MetavarContext_depth___defa lean_mark_persistent(l_Lean_MetavarContext_depth___default); l_Lean_MetavarContext_mvarCounter___default = _init_l_Lean_MetavarContext_mvarCounter___default(); lean_mark_persistent(l_Lean_MetavarContext_mvarCounter___default); +l_Lean_MetavarContext_lDepth___default___closed__1 = _init_l_Lean_MetavarContext_lDepth___default___closed__1(); +lean_mark_persistent(l_Lean_MetavarContext_lDepth___default___closed__1); l_Lean_MetavarContext_lDepth___default = _init_l_Lean_MetavarContext_lDepth___default(); lean_mark_persistent(l_Lean_MetavarContext_lDepth___default); l_Lean_MetavarContext_decls___default = _init_l_Lean_MetavarContext_decls___default(); diff --git a/stage0/stdlib/Lean/ParserCompiler.c b/stage0/stdlib/Lean/ParserCompiler.c index 4e4bfea31f..982b3335d3 100644 --- a/stage0/stdlib/Lean/ParserCompiler.c +++ b/stage0/stdlib/Lean/ParserCompiler.c @@ -257,7 +257,6 @@ lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExp uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_value_x3f(lean_object*); @@ -365,6 +364,7 @@ lean_object* l_Lean_ParserCompiler_replaceParserTy___rarg(lean_object*, lean_obj lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__39___at_Lean_ParserCompiler_compileParserExpr___spec__40(lean_object*); lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32; static lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__10; lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8(lean_object*); @@ -26847,8 +26847,20 @@ static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4; +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__11; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -26860,7 +26872,7 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__12() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -26872,24 +26884,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); -return x_1; -} -} static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__14() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3; -x_2 = lean_unsigned_to_nat(0u); -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* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed), 1, 0); +return x_1; } } static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__15() { @@ -26907,6 +26907,18 @@ return x_3; static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__16() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__17() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Expr_instBEqExpr; x_2 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); @@ -26915,7 +26927,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__17() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__18() { _start: { lean_object* x_1; lean_object* x_2; @@ -26926,7 +26938,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__18() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -26938,14 +26950,14 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__19() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__12; -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__14; -x_3 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__15; -x_4 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__18; +x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__13; +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__15; +x_3 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__16; +x_4 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__19; x_5 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -26957,23 +26969,23 @@ lean_ctor_set(x_5, 6, x_4); return x_5; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__11; -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__19; -x_3 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__12; +x_3 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20; x_4 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__7; x_5 = lean_alloc_ctor(0, 4, 0); -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(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_1); lean_ctor_set(x_5, 3, x_4); return x_5; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__22() { _start: { lean_object* x_1; @@ -26982,7 +26994,7 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__22() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__23() { _start: { lean_object* x_1; @@ -26990,7 +27002,7 @@ x_1 = lean_mk_string("Lean.ParserCompiler"); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__23() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__24() { _start: { lean_object* x_1; @@ -26998,7 +27010,7 @@ x_1 = lean_mk_string("Lean.ParserCompiler.compileCategoryParser"); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__24() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__25() { _start: { lean_object* x_1; @@ -27006,20 +27018,20 @@ x_1 = lean_mk_string("unreachable code has been reached"); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__25() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__22; -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__23; +x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__23; +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__24; x_3 = lean_unsigned_to_nat(109u); x_4 = lean_unsigned_to_nat(6u); -x_5 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__24; +x_5 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__25; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__26() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__27() { _start: { lean_object* x_1; @@ -27027,17 +27039,17 @@ x_1 = lean_mk_string("Attr"); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__27() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___closed__4; -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__26; +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__27; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__28() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__29() { _start: { lean_object* x_1; @@ -27045,17 +27057,17 @@ x_1 = lean_mk_string("simple"); return x_1; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__29() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__27; -x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__28; +x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__28; +x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__29; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31() { _start: { lean_object* x_1; lean_object* x_2; @@ -27064,7 +27076,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31() { +static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32() { _start: { lean_object* x_1; lean_object* x_2; @@ -27084,7 +27096,7 @@ x_9 = lean_st_ref_get(x_5, x_6); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); -x_11 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20; +x_11 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21; x_12 = lean_st_mk_ref(x_11, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -27122,7 +27134,7 @@ x_24 = lean_ctor_get(x_18, 0); lean_inc(x_24); lean_dec(x_18); x_25 = lean_mk_syntax_ident(x_2); -x_26 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30; +x_26 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31; x_27 = lean_array_push(x_26, x_25); x_28 = l_Lean_nullKind; x_29 = lean_alloc_ctor(1, 2, 0); @@ -27142,10 +27154,10 @@ lean_inc(x_32); lean_dec(x_31); lean_inc(x_32); x_33 = lean_mk_syntax_ident(x_32); -x_34 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31; +x_34 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32; x_35 = lean_array_push(x_34, x_33); x_36 = lean_array_push(x_35, x_29); -x_37 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__29; +x_37 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -27167,10 +27179,10 @@ lean_inc(x_43); lean_dec(x_42); lean_inc(x_43); x_44 = lean_mk_syntax_ident(x_43); -x_45 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31; +x_45 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32; x_46 = lean_array_push(x_45, x_44); x_47 = lean_array_push(x_46, x_29); -x_48 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__29; +x_48 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); @@ -27188,8 +27200,8 @@ lean_dec(x_1); x_52 = lean_ctor_get(x_22, 1); lean_inc(x_52); lean_dec(x_22); -x_53 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21; -x_54 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__25; +x_53 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__22; +x_54 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__26; x_55 = lean_panic_fn(x_53, x_54); x_56 = lean_apply_3(x_55, x_4, x_5, x_52); return x_56; @@ -27896,7 +27908,7 @@ x_59 = lean_st_ref_get(x_6, x_10); x_60 = lean_ctor_get(x_59, 1); lean_inc(x_60); lean_dec(x_59); -x_61 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20; +x_61 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21; x_62 = lean_st_mk_ref(x_61, x_60); x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); @@ -28063,7 +28075,7 @@ x_15 = lean_st_ref_get(x_6, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__20; +x_17 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__21; x_18 = lean_st_mk_ref(x_17, x_16); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -28337,6 +28349,8 @@ l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30 = _init_l_Lean_P lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__30); l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31(); lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__31); +l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32(); +lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__32); l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1); l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/PrettyPrinter.c b/stage0/stdlib/Lean/PrettyPrinter.c index 8a41d06a29..0b16958b48 100644 --- a/stage0/stdlib/Lean/PrettyPrinter.c +++ b/stage0/stdlib/Lean/PrettyPrinter.c @@ -90,7 +90,6 @@ static lean_object* l_Lean_PPContext_runCoreM___rarg___closed__9; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_PPContext_runMetaM___rarg___closed__2; lean_object* l_Lean_PrettyPrinter_format(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_NameSet_empty; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PPContext_runCoreM___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_registerParserCompilers___closed__6; @@ -628,14 +627,14 @@ lean_ctor_set(x_9, 2, x_7); lean_ctor_set(x_9, 3, x_5); lean_ctor_set(x_9, 4, x_8); x_10 = lean_ctor_get(x_1, 1); -x_11 = l_Lean_PPContext_runMetaM___rarg___closed__12; -x_12 = l_Lean_NameSet_empty; +x_11 = lean_box(0); +x_12 = l_Lean_PPContext_runMetaM___rarg___closed__12; x_13 = l_Lean_PPContext_runCoreM___rarg___closed__7; lean_inc(x_10); x_14 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_11); -lean_ctor_set(x_14, 2, x_12); +lean_ctor_set(x_14, 1, x_12); +lean_ctor_set(x_14, 2, x_11); lean_ctor_set(x_14, 3, x_13); x_15 = lean_alloc_closure((void*)(l_Lean_Meta_MetaM_run_x27___rarg), 6, 3); lean_closure_set(x_15, 0, x_2); @@ -833,13 +832,13 @@ lean_ctor_set(x_12, 1, x_3); lean_ctor_set(x_12, 2, x_10); lean_ctor_set(x_12, 3, x_8); lean_ctor_set(x_12, 4, x_11); -x_13 = l_Lean_PPContext_runMetaM___rarg___closed__12; -x_14 = l_Lean_NameSet_empty; +x_13 = lean_box(0); +x_14 = l_Lean_PPContext_runMetaM___rarg___closed__12; x_15 = l_Lean_PPContext_runCoreM___rarg___closed__7; x_16 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_16, 0, x_2); -lean_ctor_set(x_16, 1, x_13); -lean_ctor_set(x_16, 2, x_14); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_16, 2, x_13); lean_ctor_set(x_16, 3, x_15); x_17 = l_Lean_Core_getMaxHeartbeats(x_4); x_18 = l_Lean_PPContext_runCoreM___rarg___closed__1; diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c index e540cbe70e..62c2273e4f 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c @@ -21,7 +21,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_mkAppUnexpanderAttribute___ static lean_object* l_Lean_PrettyPrinter_Delaborator_delab___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_annotatePos_match__2___rarg___closed__1; uint8_t lean_local_ctx_uses_user_name(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabFailureId; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_PrettyPrinter_Delaborator_delab___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_delab___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -55,6 +54,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabAttribute___lambda__1___boxed static lean_object* l_Lean_PrettyPrinter_delabCore___lambda__1___closed__1; lean_object* l_Lean_PrettyPrinter_Delaborator_getExprKind_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_getExprKind_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_mkDelabAttribute___closed__14; static lean_object* l_Lean_PrettyPrinter_Delaborator_instMonadQuotationDelabM___closed__5; @@ -112,7 +112,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_annotatePos_match__2___rarg static lean_object* l_Lean_PrettyPrinter_Delaborator_instMonadStateOfHoleIteratorDelabM___closed__2; lean_object* l_Lean_getPPAnalyzeTypeAscriptions___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAttribute___closed__1; -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_pp_proofs; static lean_object* l_Lean_PrettyPrinter_Delaborator_instInhabitedDelabM___closed__3; lean_object* l_Lean_PrettyPrinter_Delaborator_getUnusedName_bodyUsesSuggestion___boxed(lean_object*, lean_object*, lean_object*); @@ -162,6 +161,7 @@ extern lean_object* l_Lean_Core_instMonadRefCoreM; lean_object* l_Lean_PrettyPrinter_Delaborator_delab___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_instMonadStateOfHoleIteratorDelabM___lambda__1___boxed(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_instMonadStateOfHoleIteratorDelabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_getExprKind___closed__15; static lean_object* l_Lean_PrettyPrinter_Delaborator_addTermInfo_mkTermInfo___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_delab___lambda__1___closed__3; @@ -13991,7 +13991,7 @@ lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint x_32 = lean_ctor_get(x_26, 1); lean_inc(x_32); lean_dec(x_26); -x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_10, x_5, x_6, x_7, x_8, x_32); +x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_10, x_5, x_6, x_7, x_8, x_32); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -14027,7 +14027,7 @@ lean_ctor_set(x_19, 1, x_17); x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_10, x_20, x_5, x_6, x_7, x_8, x_12); +x_21 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_10, x_20, x_5, x_6, x_7, x_8, x_12); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c index 7da0f86369..3d5077ca39 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c @@ -29,7 +29,6 @@ lean_object* l_Lean_addTrace___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_ lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBool___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_isSimpleHOFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic___spec__2(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeLam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -41,6 +40,7 @@ lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownA lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_hasMVarAtCurrDepth_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_tryUnify(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_7621____closed__2; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__64; uint8_t l_Lean_Expr_isNatLit(lean_object*); @@ -92,6 +92,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeFVar lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectHigherOrders___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPAnalyze___boxed(lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__57; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_getPPAnalyzeTrustKnownFOType2TypeHOFuns(lean_object*); @@ -198,7 +199,6 @@ lean_object* l_Lean_getPPAnalyzeTypeAscriptions___boxed(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_inspectOutParams_inspectAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___closed__5; -lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeConst___closed__9; lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withBindingBody___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeLam___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectTrivialBottomUps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,6 +234,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_isStructureInstance___boxed(lean_o static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_151____closed__3; static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__59; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +size_t l_UInt64_toUSize(uint64_t); static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_223____closed__3; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHigherOrder___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_31____closed__3; @@ -265,6 +266,7 @@ uint8_t l_Lean_getPPProofsWithType(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___lambda__2___closed__4; static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isSubstLike___closed__2; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_2639_(lean_object*); +lean_object* l_Std_mkHashMap___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectBottomUps___lambda__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___closed__6; @@ -282,7 +284,9 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_isType2Type_match__1___rarg(lean_o lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeApp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___lambda__1___closed__1; +lean_object* l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_withKnowing___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___closed__3; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg_match__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -309,6 +313,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_pp_analyze; lean_object* l_Lean_Meta_withLocalDecl___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic_core___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_getExpr___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_maybeAddBlockImplicit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeMData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_pp_analyze___closed__1; static lean_object* l_Lean_addTrace___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___spec__3___closed__7; @@ -325,8 +330,8 @@ static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownA static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__56; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_inspectOutParams_inspectAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_hasLevelMVarAtCurrDepth___spec__2___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_hasLevelMVarAtCurrDepth___spec__3___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_isStructureInstance_match__1(lean_object*); +uint64_t l_Lean_Name_hash(lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeApp___closed__6; @@ -360,6 +365,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppSt static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__24; lean_object* l_Lean_CollectLevelParams_main(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeApp___closed__1; +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isTrivialBottomUp___closed__8; static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_maybeSetExplicit___closed__1; static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___closed__4; @@ -375,6 +381,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_instMonadWithReader lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_instInhabitedContext___closed__4; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic_match__1(lean_object*); +size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_55_(lean_object*); lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_31_(lean_object*); @@ -389,7 +396,6 @@ lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_ lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_199_(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__7; uint8_t l_Lean_getPPAnalysisHole(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeSort___rarg(lean_object*); @@ -421,7 +427,6 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___l uint8_t l_Lean_getPPAnalyzeCheckInstances(lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withLetBody___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_analyzeLet___spec__1___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_getPPInstanceTypes(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectHigherOrders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_maybeSetExplicit___spec__1(lean_object*, size_t, size_t); @@ -661,12 +666,13 @@ uint8_t l_Lean_getPPAnalysisNeedsType(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze_match__1(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_175____closed__4; static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__60; -lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getPPAnalysisSkip___closed__1; lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Std_mkHashMap___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1___boxed(lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectHigherOrders___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4___boxed(lean_object*, lean_object*); static lean_object* l_Lean_getPPAnalysisHole___closed__2; lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyze___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_canBottomUp_match__2(lean_object*); @@ -698,6 +704,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_isType2Type(lean_object*, lean_obj uint8_t l_List_foldr___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_hasLevelMVarAtCurrDepth___spec__2___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_hasLevelMVarAtCurrDepth___spec__3___lambda__1(lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_collectHigherOrders___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isHBinOp___lambda__1___closed__1; +lean_object* l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_7621_(lean_object*); lean_object* l_ReaderT_read___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_instMonadReaderOfSubExprAnalyzeM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_descend___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic_core___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4817,7 +4824,15 @@ x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Std_mkHashMap___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; @@ -4834,7 +4849,7 @@ else { 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; size_t x_19; size_t x_20; x_12 = lean_array_uget(x_1, x_3); -x_13 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_9); +x_13 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_9); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -4852,6 +4867,58 @@ goto _start; } } } +lean_object* l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_name_eq(x_4, x_1); +if (x_7 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_9; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +return x_9; +} +} +} +} +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_array_get_size(x_3); +x_5 = l_Lean_Name_hash(x_2); +x_6 = (size_t)x_5; +x_7 = lean_usize_modn(x_6, x_4); +lean_dec(x_4); +x_8 = lean_array_uget(x_3, x_7); +lean_dec(x_3); +x_9 = l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4(x_2, x_8); +lean_dec(x_8); +lean_dec(x_2); +return x_9; +} +} static lean_object* _init_l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___lambda__1___closed__1() { _start: { @@ -4898,7 +4965,7 @@ 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_4 = l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(x_1, x_3); +x_4 = l_Std_HashMapImp_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__3(x_1, x_3); if (lean_obj_tag(x_4) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -5006,7 +5073,7 @@ x_12 = lean_usize_of_nat(x_11); lean_dec(x_11); x_13 = 0; x_14 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___lambda__2___closed__4; -x_15 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(x_10, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7); +x_15 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2(x_10, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7); lean_dec(x_10); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) @@ -5077,7 +5144,16 @@ return x_10; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Std_mkHashMap___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMap___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { size_t x_10; size_t x_11; lean_object* x_12; @@ -5085,7 +5161,7 @@ x_10 = lean_unbox_usize(x_2); lean_dec(x_2); x_11 = lean_unbox_usize(x_3); lean_dec(x_3); -x_12 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__1(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Array_forInUnsafe_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__2(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5094,6 +5170,16 @@ lean_dec(x_1); return x_12; } } +lean_object* l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_AssocList_find_x3f___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___spec__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWithVars___lambda__2___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: { @@ -25905,7 +25991,7 @@ x_544 = lean_ctor_get(x_538, 1); lean_inc(x_544); lean_dec(x_538); x_545 = l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_7____closed__4; -x_546 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_545, x_2, x_3, x_4, x_5, x_544); +x_546 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_545, x_2, x_3, x_4, x_5, x_544); x_547 = lean_ctor_get(x_546, 0); lean_inc(x_547); x_548 = lean_ctor_get(x_546, 1); @@ -26117,7 +26203,7 @@ lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; x_156 = lean_ctor_get(x_151, 1); lean_inc(x_156); lean_dec(x_151); -x_157 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_140, x_2, x_3, x_4, x_5, x_156); +x_157 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_140, x_2, x_3, x_4, x_5, x_156); x_158 = lean_ctor_get(x_157, 0); lean_inc(x_158); x_159 = lean_ctor_get(x_157, 1); @@ -26152,7 +26238,7 @@ else lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_dec(x_139); x_144 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___closed__5; -x_145 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_140, x_144, x_2, x_3, x_4, x_5, x_142); +x_145 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_140, x_144, x_2, x_3, x_4, x_5, x_142); lean_dec(x_4); lean_dec(x_2); x_146 = !lean_is_exclusive(x_145); @@ -26321,7 +26407,7 @@ lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; x_212 = lean_ctor_get(x_207, 1); lean_inc(x_212); lean_dec(x_207); -x_213 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_197, x_167, x_3, x_4, x_5, x_212); +x_213 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_197, x_167, x_3, x_4, x_5, x_212); x_214 = lean_ctor_get(x_213, 0); lean_inc(x_214); x_215 = lean_ctor_get(x_213, 1); @@ -26356,7 +26442,7 @@ else lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_dec(x_196); x_201 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___closed__5; -x_202 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_197, x_201, x_167, x_3, x_4, x_5, x_199); +x_202 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_197, x_201, x_167, x_3, x_4, x_5, x_199); lean_dec(x_4); lean_dec(x_167); x_203 = lean_ctor_get(x_202, 1); @@ -26792,7 +26878,7 @@ lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; x_320 = lean_ctor_get(x_315, 1); lean_inc(x_320); lean_dec(x_315); -x_321 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_305, x_275, x_3, x_4, x_5, x_320); +x_321 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_305, x_275, x_3, x_4, x_5, x_320); x_322 = lean_ctor_get(x_321, 0); lean_inc(x_322); x_323 = lean_ctor_get(x_321, 1); @@ -26827,7 +26913,7 @@ else lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_dec(x_304); x_309 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___closed__5; -x_310 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_305, x_309, x_275, x_3, x_4, x_5, x_307); +x_310 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_305, x_309, x_275, x_3, x_4, x_5, x_307); lean_dec(x_4); lean_dec(x_275); x_311 = lean_ctor_get(x_310, 1); @@ -27202,7 +27288,7 @@ lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; x_433 = lean_ctor_get(x_428, 1); lean_inc(x_433); lean_dec(x_428); -x_434 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_418, x_388, x_3, x_4, x_5, x_433); +x_434 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_418, x_388, x_3, x_4, x_5, x_433); x_435 = lean_ctor_get(x_434, 0); lean_inc(x_435); x_436 = lean_ctor_get(x_434, 1); @@ -27237,7 +27323,7 @@ else lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_dec(x_417); x_422 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___closed__5; -x_423 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_418, x_422, x_388, x_3, x_4, x_5, x_420); +x_423 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_418, x_422, x_388, x_3, x_4, x_5, x_420); lean_dec(x_4); lean_dec(x_388); x_424 = lean_ctor_get(x_423, 1); @@ -27575,7 +27661,7 @@ lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; x_532 = lean_ctor_get(x_527, 1); lean_inc(x_532); lean_dec(x_527); -x_533 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__8(x_516, x_484, x_3, x_4, x_5, x_532); +x_533 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(x_516, x_484, x_3, x_4, x_5, x_532); x_534 = lean_ctor_get(x_533, 0); lean_inc(x_534); x_535 = lean_ctor_get(x_533, 1); @@ -27609,7 +27695,7 @@ else lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_dec(x_515); x_520 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___closed__5; -x_521 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__7(x_516, x_520, x_484, x_3, x_4, x_5, x_518); +x_521 = l_Lean_addTrace___at_Lean_Meta_mkCongrLemma___spec__9(x_516, x_520, x_484, x_3, x_4, x_5, x_518); lean_dec(x_484); x_522 = !lean_is_exclusive(x_521); if (x_522 == 0) diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index b07eb18e95..c67fd86184 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -48,7 +48,7 @@ lean_object* l_Lean_Server_FileWorker_handleDidChange_match__1___rarg(lean_objec static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__9; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_compileHeader___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_erase___at_Lean_Server_FileWorker_handleCancelRequest___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_List_toString___at_Lean_Server_FileWorker_handleRpcRelease___spec__1___closed__2; @@ -136,7 +136,7 @@ lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializePar static lean_object* l_Lean_Server_FileWorker_compileHeader___closed__1; static lean_object* l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__3___closed__1; extern lean_object* l_Lean_maxRecDepth; -lean_object* l_Lean_Server_FileWorker_compileHeader(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_queueRequest___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mainLoop_match__3(lean_object*); @@ -249,7 +249,7 @@ static uint8_t l_Lean_Server_FileWorker_handleDidChange___closed__2; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__59; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__31; lean_object* l_Lean_Server_RequestError_toLspResponseError(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_ordRequestID____x40_Lean_Data_JsonRpc___hyg_108_(lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -303,7 +303,7 @@ lean_object* lean_int_neg(lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__2(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__30; static lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__2; -lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg(lean_object*, lean_object*); @@ -321,7 +321,7 @@ lean_object* l_Lean_Server_FileWorker_handleRpcConnect___boxed(lean_object*, lea extern lean_object* l_Lean_MessageLog_empty; lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_getenv(lean_object*, lean_object*); -lean_object* lean_server_worker_main(lean_object*); +lean_object* lean_server_worker_main(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_queueRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__2(lean_object*); static lean_object* l_Lean_Server_FileWorker_parseParams___rarg___closed__2; @@ -416,7 +416,7 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__21; lean_object* l_Lean_Server_FileWorker_CancelToken_set(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_compileHeader___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_CancelToken_check___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__1___closed__2; static lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__8; @@ -424,7 +424,7 @@ lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, lean_object*, lean_ob static lean_object* l_Lean_Server_FileWorker_compileHeader___closed__3; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__50; static lean_object* l_Lean_Server_FileWorker_updateDocument___closed__1; -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_withExtension(lean_object*, lean_object*); @@ -3867,643 +3867,643 @@ x_3 = lean_nat_add(x_1, x_2); return x_3; } } -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 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; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_11 = lean_ctor_get(x_8, 0); -x_12 = lean_ctor_get(x_8, 1); +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; uint8_t x_22; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); lean_inc(x_1); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); -x_13 = l_Lean_Elab_Command_mkState(x_11, x_12, x_1); -x_14 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; -x_15 = lean_box(0); -x_16 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; -lean_inc_n(x_1, 3); -x_17 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_1); -lean_ctor_set(x_17, 2, x_15); -lean_ctor_set(x_17, 3, x_1); -lean_ctor_set(x_17, 4, x_1); -lean_ctor_set(x_17, 5, x_16); -lean_ctor_set(x_17, 6, x_16); +x_14 = l_Lean_Elab_Command_mkState(x_12, x_13, x_1); +x_15 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; +x_16 = lean_box(0); +x_17 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; +lean_inc_n(x_2, 2); lean_inc(x_1); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); +x_18 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_1); -x_19 = l_Lean_maxRecDepth; -x_20 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_1, x_19); +lean_ctor_set(x_18, 2, x_16); +lean_ctor_set(x_18, 3, x_2); +lean_ctor_set(x_18, 4, x_2); +lean_ctor_set(x_18, 5, x_17); +lean_ctor_set(x_18, 6, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_2); +x_20 = l_Lean_maxRecDepth; +x_21 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_1, x_20); lean_dec(x_1); -x_21 = !lean_is_exclusive(x_13); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_22 = lean_ctor_get(x_13, 7); -x_23 = lean_ctor_get(x_13, 5); -lean_dec(x_23); -x_24 = lean_ctor_get(x_13, 4); +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; uint8_t x_30; +x_23 = lean_ctor_get(x_14, 7); +x_24 = lean_ctor_get(x_14, 5); lean_dec(x_24); -x_25 = lean_ctor_get(x_13, 3); +x_25 = lean_ctor_get(x_14, 4); lean_dec(x_25); -x_26 = lean_ctor_get(x_13, 2); +x_26 = lean_ctor_get(x_14, 3); lean_dec(x_26); -x_27 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_14, 2); lean_dec(x_27); -x_28 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_14, 1); lean_dec(x_28); -x_29 = !lean_is_exclusive(x_22); -if (x_29 == 0) +x_29 = lean_ctor_get(x_14, 0); +lean_dec(x_29); +x_30 = !lean_is_exclusive(x_23); +if (x_30 == 0) { -uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = 1; -lean_ctor_set_uint8(x_22, sizeof(void*)*2, x_30); -x_31 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; -x_32 = lean_unsigned_to_nat(1u); -lean_inc(x_12); -lean_ctor_set(x_13, 5, x_32); -lean_ctor_set(x_13, 4, x_20); -lean_ctor_set(x_13, 3, x_31); -lean_ctor_set(x_13, 2, x_18); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_13, 0, x_11); -x_33 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_2, x_12, x_9); -if (lean_obj_tag(x_33) == 0) +uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = 1; +lean_ctor_set_uint8(x_23, sizeof(void*)*2, x_31); +x_32 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; +x_33 = lean_unsigned_to_nat(1u); +lean_inc(x_13); +lean_ctor_set(x_14, 5, x_33); +lean_ctor_set(x_14, 4, x_21); +lean_ctor_set(x_14, 3, x_32); +lean_ctor_set(x_14, 2, x_19); +lean_ctor_set(x_14, 1, x_13); +lean_ctor_set(x_14, 0, x_12); +x_34 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_3, x_13, x_10); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unsigned_to_nat(0u); -x_37 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_3); -lean_ctor_set(x_37, 2, x_4); -lean_ctor_set(x_37, 3, x_13); -lean_ctor_set(x_37, 4, x_34); -lean_inc(x_37); -x_38 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_37); -x_39 = l_Std_PersistentArray_toArray___rarg(x_38); -x_40 = l_Lean_Server_publishDiagnostics(x_5, x_39, x_6, x_35); -if (lean_obj_tag(x_40) == 0) +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_unsigned_to_nat(0u); +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_4); +lean_ctor_set(x_38, 2, x_5); +lean_ctor_set(x_38, 3, x_14); +lean_ctor_set(x_38, 4, x_35); +lean_inc(x_38); +x_39 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_38); +x_40 = l_Std_PersistentArray_toArray___rarg(x_39); +x_41 = l_Lean_Server_publishDiagnostics(x_6, x_40, x_7, x_36); +if (lean_obj_tag(x_41) == 0) { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +uint8_t x_42; +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -lean_object* x_42; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -lean_ctor_set(x_8, 1, x_7); -lean_ctor_set(x_8, 0, x_37); -lean_ctor_set(x_40, 0, x_8); -return x_40; +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 0, x_38); +lean_ctor_set(x_41, 0, x_9); +return x_41; } else { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -lean_ctor_set(x_8, 1, x_7); -lean_ctor_set(x_8, 0, x_37); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_8); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 0, x_38); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_9); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -uint8_t x_45; -lean_dec(x_37); -lean_free_object(x_8); -lean_dec(x_7); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -return x_40; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -uint8_t x_49; -lean_dec(x_13); -lean_free_object(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_49 = !lean_is_exclusive(x_33); -if (x_49 == 0) -{ -return x_33; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_33, 0); -x_51 = lean_ctor_get(x_33, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_33); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -else -{ -lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_53 = lean_ctor_get(x_22, 0); -x_54 = lean_ctor_get(x_22, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_22); -x_55 = 1; -x_56 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -lean_ctor_set_uint8(x_56, sizeof(void*)*2, x_55); -x_57 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; -x_58 = lean_unsigned_to_nat(1u); -lean_inc(x_12); -lean_ctor_set(x_13, 7, x_56); -lean_ctor_set(x_13, 5, x_58); -lean_ctor_set(x_13, 4, x_20); -lean_ctor_set(x_13, 3, x_57); -lean_ctor_set(x_13, 2, x_18); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_13, 0, x_11); -x_59 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_2, x_12, x_9); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = lean_unsigned_to_nat(0u); -x_63 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_3); -lean_ctor_set(x_63, 2, x_4); -lean_ctor_set(x_63, 3, x_13); -lean_ctor_set(x_63, 4, x_60); -lean_inc(x_63); -x_64 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_63); -x_65 = l_Std_PersistentArray_toArray___rarg(x_64); -x_66 = l_Lean_Server_publishDiagnostics(x_5, x_65, x_6, x_61); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); -} -lean_ctor_set(x_8, 1, x_7); -lean_ctor_set(x_8, 0, x_63); -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_8); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_63); -lean_free_object(x_8); -lean_dec(x_7); -x_70 = lean_ctor_get(x_66, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_66, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_72 = x_66; -} else { - lean_dec_ref(x_66); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -return x_73; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_13); -lean_free_object(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_74 = lean_ctor_get(x_59, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_59, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_76 = x_59; -} else { - lean_dec_ref(x_59); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; -} -} -} -else -{ -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; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_78 = lean_ctor_get(x_13, 7); -x_79 = lean_ctor_get(x_13, 6); -x_80 = lean_ctor_get(x_13, 8); -lean_inc(x_80); -lean_inc(x_78); -lean_inc(x_79); -lean_dec(x_13); -x_81 = lean_ctor_get(x_78, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_78, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_83 = x_78; -} else { - lean_dec_ref(x_78); - x_83 = lean_box(0); -} -x_84 = 1; -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 1); -} else { - x_85 = x_83; -} -lean_ctor_set(x_85, 0, x_81); -lean_ctor_set(x_85, 1, x_82); -lean_ctor_set_uint8(x_85, sizeof(void*)*2, x_84); -x_86 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; -x_87 = lean_unsigned_to_nat(1u); -lean_inc(x_12); -x_88 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_88, 0, x_11); -lean_ctor_set(x_88, 1, x_12); -lean_ctor_set(x_88, 2, x_18); -lean_ctor_set(x_88, 3, x_86); -lean_ctor_set(x_88, 4, x_20); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_79); -lean_ctor_set(x_88, 7, x_85); -lean_ctor_set(x_88, 8, x_80); -x_89 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_2, x_12, x_9); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_unsigned_to_nat(0u); -x_93 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_3); -lean_ctor_set(x_93, 2, x_4); -lean_ctor_set(x_93, 3, x_88); -lean_ctor_set(x_93, 4, x_90); -lean_inc(x_93); -x_94 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_93); -x_95 = l_Std_PersistentArray_toArray___rarg(x_94); -x_96 = l_Lean_Server_publishDiagnostics(x_5, x_95, x_6, x_91); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_98 = x_96; -} else { - lean_dec_ref(x_96); - x_98 = lean_box(0); -} -lean_ctor_set(x_8, 1, x_7); -lean_ctor_set(x_8, 0, x_93); -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_8); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -lean_dec(x_93); -lean_free_object(x_8); -lean_dec(x_7); -x_100 = lean_ctor_get(x_96, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_96, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_102 = x_96; -} else { - lean_dec_ref(x_96); - x_102 = lean_box(0); -} -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(1, 2, 0); -} else { - x_103 = x_102; -} -lean_ctor_set(x_103, 0, x_100); -lean_ctor_set(x_103, 1, x_101); -return x_103; -} -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_88); -lean_free_object(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_104 = lean_ctor_get(x_89, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_89, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_106 = x_89; -} else { - lean_dec_ref(x_89); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -return x_107; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_108 = lean_ctor_get(x_8, 0); -x_109 = lean_ctor_get(x_8, 1); -lean_inc(x_109); -lean_inc(x_108); +uint8_t x_46; +lean_dec(x_38); +lean_free_object(x_9); lean_dec(x_8); -lean_inc(x_1); -lean_inc(x_109); -lean_inc(x_108); -x_110 = l_Lean_Elab_Command_mkState(x_108, x_109, x_1); -x_111 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; -x_112 = lean_box(0); -x_113 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; -lean_inc_n(x_1, 3); -x_114 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_1); -lean_ctor_set(x_114, 2, x_112); -lean_ctor_set(x_114, 3, x_1); -lean_ctor_set(x_114, 4, x_1); -lean_ctor_set(x_114, 5, x_113); -lean_ctor_set(x_114, 6, x_113); -lean_inc(x_1); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_1); -x_116 = l_Lean_maxRecDepth; -x_117 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_1, x_116); -lean_dec(x_1); -x_118 = lean_ctor_get(x_110, 7); -lean_inc(x_118); -x_119 = lean_ctor_get(x_110, 6); -lean_inc(x_119); -x_120 = lean_ctor_get(x_110, 8); -lean_inc(x_120); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - lean_ctor_release(x_110, 2); - lean_ctor_release(x_110, 3); - lean_ctor_release(x_110, 4); - lean_ctor_release(x_110, 5); - lean_ctor_release(x_110, 6); - lean_ctor_release(x_110, 7); - lean_ctor_release(x_110, 8); - x_121 = x_110; -} else { - lean_dec_ref(x_110); - x_121 = lean_box(0); -} -x_122 = lean_ctor_get(x_118, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_118, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_124 = x_118; -} else { - lean_dec_ref(x_118); - x_124 = lean_box(0); -} -x_125 = 1; -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 1); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set_uint8(x_126, sizeof(void*)*2, x_125); -x_127 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; -x_128 = lean_unsigned_to_nat(1u); -lean_inc(x_109); -if (lean_is_scalar(x_121)) { - x_129 = lean_alloc_ctor(0, 9, 0); -} else { - x_129 = x_121; -} -lean_ctor_set(x_129, 0, x_108); -lean_ctor_set(x_129, 1, x_109); -lean_ctor_set(x_129, 2, x_115); -lean_ctor_set(x_129, 3, x_127); -lean_ctor_set(x_129, 4, x_117); -lean_ctor_set(x_129, 5, x_128); -lean_ctor_set(x_129, 6, x_119); -lean_ctor_set(x_129, 7, x_126); -lean_ctor_set(x_129, 8, x_120); -x_130 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_2, x_109, x_9); -if (lean_obj_tag(x_130) == 0) +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_unsigned_to_nat(0u); -x_134 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_3); -lean_ctor_set(x_134, 2, x_4); -lean_ctor_set(x_134, 3, x_129); -lean_ctor_set(x_134, 4, x_131); -lean_inc(x_134); -x_135 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_134); -x_136 = l_Std_PersistentArray_toArray___rarg(x_135); -x_137 = l_Lean_Server_publishDiagnostics(x_5, x_136, x_6, x_132); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_139 = x_137; -} else { - lean_dec_ref(x_137); - x_139 = lean_box(0); -} -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_134); -lean_ctor_set(x_140, 1, x_7); -if (lean_is_scalar(x_139)) { - x_141 = lean_alloc_ctor(0, 2, 0); -} else { - x_141 = x_139; -} -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_138); -return x_141; +return x_41; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_134); -lean_dec(x_7); -x_142 = lean_ctor_get(x_137, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_137, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_144 = x_137; -} else { - lean_dec_ref(x_137); - x_144 = lean_box(0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_41, 0); +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_41); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(1, 2, 0); -} else { - x_145 = x_144; -} -lean_ctor_set(x_145, 0, x_142); -lean_ctor_set(x_145, 1, x_143); -return x_145; } } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_129); +uint8_t x_50; +lean_dec(x_14); +lean_free_object(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_146 = lean_ctor_get(x_130, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_130, 1); +x_50 = !lean_is_exclusive(x_34); +if (x_50 == 0) +{ +return x_34; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_34, 0); +x_52 = lean_ctor_get(x_34, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_34); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_54 = lean_ctor_get(x_23, 0); +x_55 = lean_ctor_get(x_23, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_23); +x_56 = 1; +x_57 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_56); +x_58 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; +x_59 = lean_unsigned_to_nat(1u); +lean_inc(x_13); +lean_ctor_set(x_14, 7, x_57); +lean_ctor_set(x_14, 5, x_59); +lean_ctor_set(x_14, 4, x_21); +lean_ctor_set(x_14, 3, x_58); +lean_ctor_set(x_14, 2, x_19); +lean_ctor_set(x_14, 1, x_13); +lean_ctor_set(x_14, 0, x_12); +x_60 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_3, x_13, x_10); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_unsigned_to_nat(0u); +x_64 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_4); +lean_ctor_set(x_64, 2, x_5); +lean_ctor_set(x_64, 3, x_14); +lean_ctor_set(x_64, 4, x_61); +lean_inc(x_64); +x_65 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_64); +x_66 = l_Std_PersistentArray_toArray___rarg(x_65); +x_67 = l_Lean_Server_publishDiagnostics(x_6, x_66, x_7, x_62); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 0, x_64); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_9); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_64); +lean_free_object(x_9); +lean_dec(x_8); +x_71 = lean_ctor_get(x_67, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_73 = x_67; +} else { + lean_dec_ref(x_67); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_14); +lean_free_object(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_75 = lean_ctor_get(x_60, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_60, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_77 = x_60; +} else { + lean_dec_ref(x_60); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} +} +else +{ +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; lean_object* x_90; +x_79 = lean_ctor_get(x_14, 7); +x_80 = lean_ctor_get(x_14, 6); +x_81 = lean_ctor_get(x_14, 8); +lean_inc(x_81); +lean_inc(x_79); +lean_inc(x_80); +lean_dec(x_14); +x_82 = lean_ctor_get(x_79, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_84 = x_79; +} else { + lean_dec_ref(x_79); + x_84 = lean_box(0); +} +x_85 = 1; +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 2, 1); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_82); +lean_ctor_set(x_86, 1, x_83); +lean_ctor_set_uint8(x_86, sizeof(void*)*2, x_85); +x_87 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; +x_88 = lean_unsigned_to_nat(1u); +lean_inc(x_13); +x_89 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_89, 0, x_12); +lean_ctor_set(x_89, 1, x_13); +lean_ctor_set(x_89, 2, x_19); +lean_ctor_set(x_89, 3, x_87); +lean_ctor_set(x_89, 4, x_21); +lean_ctor_set(x_89, 5, x_88); +lean_ctor_set(x_89, 6, x_80); +lean_ctor_set(x_89, 7, x_86); +lean_ctor_set(x_89, 8, x_81); +x_90 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_3, x_13, x_10); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = lean_unsigned_to_nat(0u); +x_94 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_4); +lean_ctor_set(x_94, 2, x_5); +lean_ctor_set(x_94, 3, x_89); +lean_ctor_set(x_94, 4, x_91); +lean_inc(x_94); +x_95 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_94); +x_96 = l_Std_PersistentArray_toArray___rarg(x_95); +x_97 = l_Lean_Server_publishDiagnostics(x_6, x_96, x_7, x_92); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_99 = x_97; +} else { + lean_dec_ref(x_97); + x_99 = lean_box(0); +} +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 0, x_94); +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(0, 2, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_9); +lean_ctor_set(x_100, 1, x_98); +return x_100; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_94); +lean_free_object(x_9); +lean_dec(x_8); +x_101 = lean_ctor_get(x_97, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_97, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_103 = x_97; +} else { + lean_dec_ref(x_97); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_89); +lean_free_object(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_105 = lean_ctor_get(x_90, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_90, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_107 = x_90; +} else { + lean_dec_ref(x_90); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; 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; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_109 = lean_ctor_get(x_9, 0); +x_110 = lean_ctor_get(x_9, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_9); +lean_inc(x_1); +lean_inc(x_110); +lean_inc(x_109); +x_111 = l_Lean_Elab_Command_mkState(x_109, x_110, x_1); +x_112 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; +x_113 = lean_box(0); +x_114 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; +lean_inc_n(x_2, 2); +lean_inc(x_1); +x_115 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_1); +lean_ctor_set(x_115, 2, x_113); +lean_ctor_set(x_115, 3, x_2); +lean_ctor_set(x_115, 4, x_2); +lean_ctor_set(x_115, 5, x_114); +lean_ctor_set(x_115, 6, x_114); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_2); +x_117 = l_Lean_maxRecDepth; +x_118 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_1, x_117); +lean_dec(x_1); +x_119 = lean_ctor_get(x_111, 7); +lean_inc(x_119); +x_120 = lean_ctor_get(x_111, 6); +lean_inc(x_120); +x_121 = lean_ctor_get(x_111, 8); +lean_inc(x_121); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + lean_ctor_release(x_111, 2); + lean_ctor_release(x_111, 3); + lean_ctor_release(x_111, 4); + lean_ctor_release(x_111, 5); + lean_ctor_release(x_111, 6); + lean_ctor_release(x_111, 7); + lean_ctor_release(x_111, 8); + x_122 = x_111; +} else { + lean_dec_ref(x_111); + x_122 = lean_box(0); +} +x_123 = lean_ctor_get(x_119, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_119, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_125 = x_119; +} else { + lean_dec_ref(x_119); + x_125 = lean_box(0); +} +x_126 = 1; +if (lean_is_scalar(x_125)) { + x_127 = lean_alloc_ctor(0, 2, 1); +} else { + x_127 = x_125; +} +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_124); +lean_ctor_set_uint8(x_127, sizeof(void*)*2, x_126); +x_128 = l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__1; +x_129 = lean_unsigned_to_nat(1u); +lean_inc(x_110); +if (lean_is_scalar(x_122)) { + x_130 = lean_alloc_ctor(0, 9, 0); +} else { + x_130 = x_122; +} +lean_ctor_set(x_130, 0, x_109); +lean_ctor_set(x_130, 1, x_110); +lean_ctor_set(x_130, 2, x_116); +lean_ctor_set(x_130, 3, x_128); +lean_ctor_set(x_130, 4, x_118); +lean_ctor_set(x_130, 5, x_129); +lean_ctor_set(x_130, 6, x_120); +lean_ctor_set(x_130, 7, x_127); +lean_ctor_set(x_130, 8, x_121); +x_131 = l_Std_PersistentArray_mapM___at_Lean_Server_FileWorker_compileHeader___spec__1(x_3, x_110, x_10); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = lean_unsigned_to_nat(0u); +x_135 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_4); +lean_ctor_set(x_135, 2, x_5); +lean_ctor_set(x_135, 3, x_130); +lean_ctor_set(x_135, 4, x_132); +lean_inc(x_135); +x_136 = l_Lean_Server_Snapshots_Snapshot_diagnostics(x_135); +x_137 = l_Std_PersistentArray_toArray___rarg(x_136); +x_138 = l_Lean_Server_publishDiagnostics(x_6, x_137, x_7, x_133); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; +} else { + lean_dec_ref(x_138); + x_140 = lean_box(0); +} +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_135); +lean_ctor_set(x_141, 1, x_8); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_140; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_135); +lean_dec(x_8); +x_143 = lean_ctor_get(x_138, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_138, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_145 = x_138; +} else { + lean_dec_ref(x_138); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_130); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_147 = lean_ctor_get(x_131, 0); lean_inc(x_147); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_148 = x_130; +x_148 = lean_ctor_get(x_131, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_149 = x_131; } else { - lean_dec_ref(x_130); - x_148 = lean_box(0); + lean_dec_ref(x_131); + x_149 = lean_box(0); } -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); } else { - x_149 = x_148; + x_150 = x_149; } -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_148); +return x_150; } } } @@ -4589,196 +4589,197 @@ x_1 = lean_mk_string(""); return x_1; } } -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = l_System_FilePath_pathExists(x_7, x_12); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); +lean_object* x_14; lean_object* x_15; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = l_System_FilePath_pathExists(x_8, x_13); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_unbox(x_39); +lean_dec(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_8); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); lean_dec(x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_7); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_box(0); -lean_inc(x_10); +x_42 = lean_box(0); +lean_inc(x_11); lean_inc(x_1); -x_42 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_3, x_1, x_8, x_9, x_10, x_41, x_40); -lean_dec(x_9); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_4, x_1, x_9, x_10, x_11, x_42, x_41); lean_dec(x_10); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_11); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_43, 0); -lean_inc(x_46); lean_dec(x_43); -x_47 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_45, x_46, x_44); -return x_47; +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 0); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_46, x_47, x_45); +return x_48; } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_42, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_42, 1); +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_43, 0); lean_inc(x_49); -lean_dec(x_42); -x_13 = x_48; +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +lean_dec(x_43); x_14 = x_49; -goto block_36; +x_15 = x_50; +goto block_37; } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = l_Lean_Elab_headerToImports(x_3); -x_52 = l_List_redLength___rarg(x_51); -x_53 = lean_mk_empty_array_with_capacity(x_52); -lean_dec(x_52); -x_54 = l_List_toArrayAux___rarg(x_51, x_53); +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_38, 1); +lean_inc(x_51); +lean_dec(x_38); +x_52 = l_Lean_Elab_headerToImports(x_4); +x_53 = l_List_redLength___rarg(x_52); +x_54 = lean_mk_empty_array_with_capacity(x_53); +lean_dec(x_53); +x_55 = l_List_toArrayAux___rarg(x_52, x_54); +lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -x_55 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_7, x_5, x_54, x_6, x_50); -if (lean_obj_tag(x_55) == 0) +x_56 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_8, x_6, x_55, x_7, x_51); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -lean_inc(x_10); -x_58 = l_List_appendTR___rarg(x_10, x_56); -x_59 = lean_box(0); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +lean_inc(x_11); +x_59 = l_List_appendTR___rarg(x_11, x_57); +x_60 = lean_box(0); lean_inc(x_1); -x_60 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_3, x_1, x_8, x_9, x_58, x_59, x_57); -lean_dec(x_9); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_4, x_1, x_9, x_10, x_59, x_60, x_58); lean_dec(x_10); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_11); +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_60); x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_61, 0); -lean_inc(x_64); lean_dec(x_61); -x_65 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_63, x_64, x_62); -return x_65; +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_62, 0); +lean_inc(x_65); +lean_dec(x_62); +x_66 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_64, x_65, x_63); +return x_66; } else { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_60, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_60, 1); +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_61, 0); lean_inc(x_67); -lean_dec(x_60); -x_13 = x_66; -x_14 = x_67; -goto block_36; -} -} -else -{ -lean_object* x_68; lean_object* x_69; -lean_dec(x_9); -lean_dec(x_8); -x_68 = lean_ctor_get(x_55, 0); +x_68 = lean_ctor_get(x_61, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_55, 1); -lean_inc(x_69); -lean_dec(x_55); -x_13 = x_68; -x_14 = x_69; -goto block_36; +lean_dec(x_61); +x_14 = x_67; +x_15 = x_68; +goto block_37; } } -block_36: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint32_t x_26; lean_object* x_27; -x_15 = lean_box(0); -x_16 = lean_io_error_to_string(x_13); -x_17 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2; -x_20 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1; -x_21 = 2; -x_22 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; -x_23 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_23, 0, x_19); -lean_ctor_set(x_23, 1, x_20); -lean_ctor_set(x_23, 2, x_15); -lean_ctor_set(x_23, 3, x_22); -lean_ctor_set(x_23, 4, x_18); -lean_ctor_set_uint8(x_23, sizeof(void*)*5, x_21); -x_24 = l_Lean_MessageLog_empty; -x_25 = l_Std_PersistentArray_push___rarg(x_24, x_23); -x_26 = 0; -x_27 = lean_mk_empty_environment(x_26, x_14); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_25); -x_31 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_30, x_29); -return x_31; -} else { -uint8_t x_32; -lean_dec(x_25); +lean_object* x_69; lean_object* x_70; lean_dec(x_10); +lean_dec(x_9); +x_69 = lean_ctor_get(x_56, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_56, 1); +lean_inc(x_70); +lean_dec(x_56); +x_14 = x_69; +x_15 = x_70; +goto block_37; +} +} +block_37: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint32_t x_27; lean_object* x_28; +x_16 = lean_box(0); +x_17 = lean_io_error_to_string(x_14); +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2; +x_21 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1; +x_22 = 2; +x_23 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; +x_24 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_16); +lean_ctor_set(x_24, 3, x_23); +lean_ctor_set(x_24, 4, x_19); +lean_ctor_set_uint8(x_24, sizeof(void*)*5, x_22); +x_25 = l_Lean_MessageLog_empty; +x_26 = l_Std_PersistentArray_push___rarg(x_25, x_24); +x_27 = 0; +x_28 = lean_mk_empty_environment(x_27, x_15); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_26); +x_32 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_31, x_30); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_26); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_32 = !lean_is_exclusive(x_27); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_28); +if (x_33 == 0) { -return x_27; +return x_28; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_27, 0); -x_34 = lean_ctor_get(x_27, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_27); -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; +lean_dec(x_28); +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; } } } @@ -4833,7 +4834,7 @@ x_12 = l_System_FilePath_withExtension(x_9, x_11); x_13 = l_IO_appDir(x_10); 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; 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_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -4847,47 +4848,47 @@ x_20 = l_Lean_Server_FileWorker_compileHeader___lambda__4___closed__3; x_21 = l_System_FilePath_join(x_19, x_20); x_22 = l_Lean_Server_FileWorker_compileHeader___lambda__4___closed__4; x_23 = l_System_FilePath_join(x_21, x_22); -lean_inc(x_1); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_1); -x_25 = l_Lean_Server_FileWorker_compileHeader___lambda__4___closed__5; -x_26 = lean_io_getenv(x_25, x_15); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Server_FileWorker_compileHeader___lambda__4___closed__5; +x_27 = lean_io_getenv(x_26, x_15); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_box(0); -x_30 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_7, x_8, x_24, x_29, x_28); -return x_30; +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_box(0); +x_31 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_24, x_2, x_3, x_4, x_5, x_6, x_12, x_7, x_8, x_25, x_30, x_29); +return x_31; } 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; -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = lean_ctor_get(x_27, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_27, 1); lean_inc(x_32); lean_dec(x_27); -x_33 = l_System_SearchPath_parse(x_32); -x_34 = l_List_appendTR___rarg(x_24, x_33); -x_35 = lean_box(0); -x_36 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_7, x_8, x_34, x_35, x_31); -return x_36; +x_33 = lean_ctor_get(x_28, 0); +lean_inc(x_33); +lean_dec(x_28); +x_34 = l_System_SearchPath_parse(x_33); +x_35 = l_List_appendTR___rarg(x_25, x_34); +x_36 = lean_box(0); +x_37 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_24, x_2, x_3, x_4, x_5, x_6, x_12, x_7, x_8, x_35, x_36, x_32); +return x_37; } } else { -uint8_t x_37; -lean_dec(x_24); +uint8_t x_38; +lean_dec(x_25); lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -4897,29 +4898,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_26); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_27); +if (x_38 == 0) { -return x_26; +return x_27; } 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_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_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; +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 { -uint8_t x_41; +uint8_t x_42; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -4929,23 +4930,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_13); -if (x_41 == 0) +x_42 = !lean_is_exclusive(x_13); +if (x_42 == 0) { return x_13; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_13, 0); -x_43 = lean_ctor_get(x_13, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_13, 0); +x_44 = lean_ctor_get(x_13, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_13); -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; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -4982,11 +4983,10 @@ x_1 = lean_mk_string("bin"); return x_1; } } -lean_object* l_Lean_Server_FileWorker_compileHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_FileWorker_compileHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _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; -x_4 = lean_box(0); +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_1, 2); lean_inc(x_5); x_6 = lean_ctor_get(x_5, 0); @@ -4994,7 +4994,7 @@ lean_inc(x_6); x_7 = l_Lean_Server_FileWorker_compileHeader___closed__1; x_8 = l_Lean_Parser_mkInputContext(x_6, x_7); lean_inc(x_8); -x_9 = l_Lean_Parser_parseHeader(x_8, x_3); +x_9 = l_Lean_Parser_parseHeader(x_8, x_4); 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; lean_object* x_17; @@ -5037,7 +5037,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_Server_FileWorker_compileHeader___closed__3; x_24 = l_System_FilePath_join(x_21, x_23); -x_25 = l_Lean_Server_FileWorker_compileHeader___lambda__4(x_4, x_5, x_13, x_14, x_1, x_2, x_15, x_8, x_24, x_22); +x_25 = l_Lean_Server_FileWorker_compileHeader___lambda__4(x_3, x_5, x_13, x_14, x_1, x_2, x_15, x_8, x_24, x_22); return x_25; } else @@ -5048,6 +5048,7 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_8); lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_26 = !lean_is_exclusive(x_20); @@ -5083,7 +5084,7 @@ x_32 = l_Lean_Server_FileWorker_compileHeader___closed__4; x_33 = l_System_FilePath_join(x_31, x_32); x_34 = l_Lean_Server_FileWorker_compileHeader___closed__3; x_35 = l_System_FilePath_join(x_33, x_34); -x_36 = l_Lean_Server_FileWorker_compileHeader___lambda__4(x_4, x_5, x_13, x_14, x_1, x_2, x_15, x_8, x_35, x_30); +x_36 = l_Lean_Server_FileWorker_compileHeader___lambda__4(x_3, x_5, x_13, x_14, x_1, x_2, x_15, x_8, x_35, x_30); return x_36; } } @@ -5095,6 +5096,7 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_8); lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_37 = !lean_is_exclusive(x_17); @@ -5122,6 +5124,7 @@ else uint8_t x_41; lean_dec(x_8); lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_41 = !lean_is_exclusive(x_9); @@ -5194,13 +5197,13 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; -x_13 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -return x_13; +lean_object* x_14; +x_14 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +return x_14; } } lean_object* l_Lean_Server_FileWorker_initializeWorker_match__1___rarg(lean_object* x_1, lean_object* x_2) { @@ -5224,237 +5227,237 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_initializeWorker_match return x_2; } } -lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Server_FileWorker_initializeWorker(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_6; +lean_object* x_7; lean_inc(x_3); lean_inc(x_1); -x_6 = l_Lean_Server_FileWorker_compileHeader(x_1, x_3, x_5); -if (lean_obj_tag(x_6) == 0) +x_7 = l_Lean_Server_FileWorker_compileHeader(x_1, x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); -lean_dec(x_6); -x_9 = !lean_is_exclusive(x_7); -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; uint8_t x_16; lean_object* x_17; -x_10 = lean_ctor_get(x_7, 0); -x_11 = lean_ctor_get(x_7, 1); -x_12 = l_Lean_Server_FileWorker_CancelToken_new(x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_3); -lean_ctor_set(x_15, 2, x_4); -lean_ctor_set(x_15, 3, x_11); -x_16 = 1; -lean_inc(x_15); -lean_inc(x_13); -lean_inc(x_10); -lean_inc(x_1); -x_17 = l_Lean_Server_FileWorker_unfoldCmdSnaps(x_1, x_10, x_13, x_16, x_15, x_14); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -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_17, 0); -x_20 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_10); -lean_ctor_set(x_20, 2, x_19); -lean_ctor_set(x_20, 3, x_13); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -lean_ctor_set(x_22, 2, x_21); -lean_ctor_set(x_7, 1, x_22); -lean_ctor_set(x_7, 0, x_15); -lean_ctor_set(x_17, 0, x_7); -return x_17; -} -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_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_25, 0, x_1); -lean_ctor_set(x_25, 1, x_10); -lean_ctor_set(x_25, 2, x_23); -lean_ctor_set(x_25, 3, x_13); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -lean_ctor_set(x_27, 2, x_26); -lean_ctor_set(x_7, 1, x_27); -lean_ctor_set(x_7, 0, x_15); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_7); -lean_ctor_set(x_28, 1, x_24); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_15); -lean_dec(x_13); -lean_free_object(x_7); -lean_dec(x_10); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_17); -if (x_29 == 0) -{ -return x_17; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_17, 0); -x_31 = lean_ctor_get(x_17, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_17); -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; uint8_t x_39; lean_object* x_40; -x_33 = lean_ctor_get(x_7, 0); -x_34 = lean_ctor_get(x_7, 1); -lean_inc(x_34); -lean_inc(x_33); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); lean_dec(x_7); -x_35 = l_Lean_Server_FileWorker_CancelToken_new(x_8); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_38, 0, x_2); -lean_ctor_set(x_38, 1, x_3); -lean_ctor_set(x_38, 2, x_4); -lean_ctor_set(x_38, 3, x_34); -x_39 = 1; -lean_inc(x_38); -lean_inc(x_36); -lean_inc(x_33); +x_10 = !lean_is_exclusive(x_8); +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; uint8_t x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +x_13 = l_Lean_Server_FileWorker_CancelToken_new(x_9); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_12); +x_17 = 1; +lean_inc(x_16); +lean_inc(x_14); +lean_inc(x_11); lean_inc(x_1); -x_40 = l_Lean_Server_FileWorker_unfoldCmdSnaps(x_1, x_33, x_36, x_39, x_38, x_37); -if (lean_obj_tag(x_40) == 0) +x_18 = l_Lean_Server_FileWorker_unfoldCmdSnaps(x_1, x_11, x_14, x_17, x_16, x_15); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; -} else { - lean_dec_ref(x_40); - x_43 = lean_box(0); -} -x_44 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_44, 0, x_1); -lean_ctor_set(x_44, 1, x_33); -lean_ctor_set(x_44, 2, x_41); -lean_ctor_set(x_44, 3, x_36); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -lean_ctor_set(x_46, 2, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_38); -lean_ctor_set(x_47, 1, x_46); -if (lean_is_scalar(x_43)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_43; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_42); -return x_48; +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +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_18, 0); +x_21 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_11); +lean_ctor_set(x_21, 2, x_20); +lean_ctor_set(x_21, 3, x_14); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_22); +lean_ctor_set(x_8, 1, x_23); +lean_ctor_set(x_8, 0, x_16); +lean_ctor_set(x_18, 0, x_8); +return x_18; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_38); -lean_dec(x_36); -lean_dec(x_33); +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_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_18); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_1); +lean_ctor_set(x_26, 1, x_11); +lean_ctor_set(x_26, 2, x_24); +lean_ctor_set(x_26, 3, x_14); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_27); +lean_ctor_set(x_8, 1, x_28); +lean_ctor_set(x_8, 0, x_16); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_8); +lean_ctor_set(x_29, 1, x_25); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_16); +lean_dec(x_14); +lean_free_object(x_8); +lean_dec(x_11); lean_dec(x_1); -x_49 = lean_ctor_get(x_40, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_40, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_51 = x_40; -} else { - lean_dec_ref(x_40); - x_51 = lean_box(0); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) +{ +return x_18; } -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 +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_18, 0); +x_32 = lean_ctor_get(x_18, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_18); +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 { -uint8_t x_53; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; +x_34 = lean_ctor_get(x_8, 0); +x_35 = lean_ctor_get(x_8, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_8); +x_36 = l_Lean_Server_FileWorker_CancelToken_new(x_9); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_2); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set(x_39, 3, x_35); +x_40 = 1; +lean_inc(x_39); +lean_inc(x_37); +lean_inc(x_34); +lean_inc(x_1); +x_41 = l_Lean_Server_FileWorker_unfoldCmdSnaps(x_1, x_34, x_37, x_40, x_39, x_38); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_44 = x_41; +} else { + lean_dec_ref(x_41); + x_44 = lean_box(0); +} +x_45 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_34); +lean_ctor_set(x_45, 2, x_42); +lean_ctor_set(x_45, 3, x_37); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +if (lean_is_scalar(x_44)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_44; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_43); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_1); +x_50 = lean_ctor_get(x_41, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_41, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_52 = x_41; +} else { + lean_dec_ref(x_41); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +} +else +{ +uint8_t x_54; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_6); -if (x_53 == 0) +x_54 = !lean_is_exclusive(x_7); +if (x_54 == 0) { -return x_6; +return x_7; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_6, 0); -x_55 = lean_ctor_get(x_6, 1); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_7, 0); +x_56 = lean_ctor_get(x_7, 1); +lean_inc(x_56); lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_6); -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; +lean_dec(x_7); +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; } } } @@ -19630,394 +19633,399 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_5 = l_Lean_Server_FileWorker_initAndRunWorker___closed__1; -x_6 = 0; -x_7 = l_Lean_Server_maybeTee(x_5, x_6, x_1, x_4); -if (lean_obj_tag(x_7) == 0) +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = l_Lean_Server_FileWorker_initAndRunWorker___closed__1; +x_7 = 0; +x_8 = l_Lean_Server_maybeTee(x_6, x_7, x_1, x_5); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t 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_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_Server_FileWorker_initAndRunWorker___closed__2; -x_11 = 1; -x_12 = l_Lean_Server_maybeTee(x_10, x_11, x_2, x_9); -if (lean_obj_tag(x_12) == 0) +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Server_FileWorker_initAndRunWorker___closed__2; +x_12 = 1; +x_13 = l_Lean_Server_maybeTee(x_11, x_12, x_2, x_10); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Server_FileWorker_initAndRunWorker___closed__3; -lean_inc(x_8); -x_16 = l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__1(x_8, x_15, x_14); -if (lean_obj_tag(x_16) == 0) +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Server_FileWorker_initAndRunWorker___closed__3; +lean_inc(x_9); +x_17 = l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__1(x_9, x_16, x_15); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Server_FileWorker_initAndRunWorker___closed__4; -lean_inc(x_8); -x_19 = l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__3(x_8, x_18, x_17); -if (lean_obj_tag(x_19) == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Server_FileWorker_initAndRunWorker___closed__4; +lean_inc(x_9); +x_20 = l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__3(x_9, x_19, x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_20, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_ctor_get(x_19, 1); +x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 2); -lean_inc(x_24); -x_25 = lean_ctor_get(x_21, 3); -lean_inc(x_25); lean_dec(x_21); -x_26 = l_Lean_FileMap_ofString(x_25); +x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_23); -lean_ctor_set(x_27, 1, x_24); -lean_ctor_set(x_27, 2, x_26); -x_55 = l_List_toString___at_Lean_Server_FileWorker_handleRpcRelease___spec__1___closed__2; -x_56 = lean_string_append(x_55, x_23); -lean_dec(x_23); -x_57 = l_Lean_Server_FileWorker_initAndRunWorker___closed__6; -x_58 = lean_string_append(x_56, x_57); -x_59 = l_IO_FS_Stream_withPrefix(x_3, x_58); -lean_inc(x_59); -x_60 = lean_get_set_stderr(x_59, x_22); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_20); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 2); +lean_inc(x_25); +x_26 = lean_ctor_get(x_22, 3); +lean_inc(x_26); +lean_dec(x_22); +x_27 = l_Lean_FileMap_ofString(x_26); +lean_inc(x_24); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_25); +lean_ctor_set(x_28, 2, x_27); +x_56 = l_List_toString___at_Lean_Server_FileWorker_handleRpcRelease___spec__1___closed__2; +x_57 = lean_string_append(x_56, x_24); +lean_dec(x_24); +x_58 = l_Lean_Server_FileWorker_initAndRunWorker___closed__6; +x_59 = lean_string_append(x_57, x_58); +x_60 = l_IO_FS_Stream_withPrefix(x_3, x_59); +lean_inc(x_60); +x_61 = lean_get_set_stderr(x_60, x_23); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -lean_inc(x_13); -lean_inc(x_27); -x_62 = l_Lean_Server_FileWorker_initializeWorker(x_27, x_8, x_13, x_59, x_61); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_63 = lean_ctor_get(x_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_ctor_get(x_63, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_st_mk_ref(x_66, x_64); -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); -lean_inc(x_68); -x_70 = l_Lean_Server_FileWorker_mainLoop(x_65, x_68, x_69); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_27); -lean_dec(x_13); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = lean_st_ref_get(x_68, x_71); -lean_dec(x_68); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -x_75 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__2; -lean_ctor_set(x_72, 0, x_75); -return x_72; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_72, 1); -lean_inc(x_76); -lean_dec(x_72); -x_77 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__2; -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -return x_78; -} -} -else -{ -lean_object* x_79; lean_object* x_80; -lean_dec(x_68); -x_79 = lean_ctor_get(x_70, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_70, 1); -lean_inc(x_80); -lean_dec(x_70); -x_28 = x_79; -x_29 = x_80; -goto block_54; -} -} -else -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_62, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_62, 1); -lean_inc(x_82); -lean_dec(x_62); -x_28 = x_81; -x_29 = x_82; -goto block_54; -} -} -else -{ -uint8_t x_83; -lean_dec(x_59); -lean_dec(x_27); -lean_dec(x_13); -lean_dec(x_8); -x_83 = !lean_is_exclusive(x_60); -if (x_83 == 0) -{ -return x_60; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_60, 0); -x_85 = lean_ctor_get(x_60, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_60); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -block_54: -{ -lean_object* x_30; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +lean_inc(x_14); lean_inc(x_28); -x_30 = l_IO_eprintln___at_Lean_Server_FileWorker_initAndRunWorker___spec__5(x_28, x_29); -if (lean_obj_tag(x_30) == 0) +x_63 = l_Lean_Server_FileWorker_initializeWorker(x_28, x_9, x_14, x_60, x_4, x_62); +if (lean_obj_tag(x_63) == 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; lean_object* x_39; -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_box(0); -x_33 = lean_io_error_to_string(x_28); -x_34 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr___closed__2; -x_35 = l_Lean_Server_FileWorker_initAndRunWorker___closed__5; -x_36 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_34); -lean_ctor_set(x_36, 2, x_35); -lean_ctor_set(x_36, 3, x_32); -lean_ctor_set(x_36, 4, x_32); -lean_ctor_set(x_36, 5, x_33); -lean_ctor_set(x_36, 6, x_32); -lean_ctor_set(x_36, 7, x_32); -x_37 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr___closed__4; -x_38 = lean_array_push(x_37, x_36); -x_39 = l_Lean_Server_publishDiagnostics(x_27, x_38, x_13, x_31); -if (lean_obj_tag(x_39) == 0) +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_dec(x_64); +x_68 = lean_st_mk_ref(x_67, x_65); +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); +lean_inc(x_69); +x_71 = l_Lean_Server_FileWorker_mainLoop(x_66, x_69, x_70); +if (lean_obj_tag(x_71) == 0) { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -x_42 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__1; -lean_ctor_set(x_39, 0, x_42); -return x_39; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 1); -lean_inc(x_43); -lean_dec(x_39); -x_44 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__1; -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -} -else -{ -uint8_t x_46; -x_46 = !lean_is_exclusive(x_39); -if (x_46 == 0) -{ -return x_39; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_39, 0); -x_48 = lean_ctor_get(x_39, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_39); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -uint8_t x_50; +lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_13); -x_50 = !lean_is_exclusive(x_30); -if (x_50 == 0) +lean_dec(x_14); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_st_ref_get(x_69, x_72); +lean_dec(x_69); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) { -return x_30; +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +x_76 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__2; +lean_ctor_set(x_73, 0, x_76); +return x_73; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_30, 0); -x_52 = lean_ctor_get(x_30, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_73, 1); +lean_inc(x_77); +lean_dec(x_73); +x_78 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__2; +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_69); +x_80 = lean_ctor_get(x_71, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_71, 1); +lean_inc(x_81); +lean_dec(x_71); +x_29 = x_80; +x_30 = x_81; +goto block_55; +} +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_63, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_63, 1); +lean_inc(x_83); +lean_dec(x_63); +x_29 = x_82; +x_30 = x_83; +goto block_55; +} +} +else +{ +uint8_t x_84; +lean_dec(x_60); +lean_dec(x_28); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_4); +x_84 = !lean_is_exclusive(x_61); +if (x_84 == 0) +{ +return x_61; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_61, 0); +x_86 = lean_ctor_get(x_61, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_61); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +block_55: +{ +lean_object* x_31; +lean_inc(x_29); +x_31 = l_IO_eprintln___at_Lean_Server_FileWorker_initAndRunWorker___spec__5(x_29, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_box(0); +x_34 = lean_io_error_to_string(x_29); +x_35 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr___closed__2; +x_36 = l_Lean_Server_FileWorker_initAndRunWorker___closed__5; +x_37 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_37, 2, x_36); +lean_ctor_set(x_37, 3, x_33); +lean_ctor_set(x_37, 4, x_33); +lean_ctor_set(x_37, 5, x_34); +lean_ctor_set(x_37, 6, x_33); +lean_ctor_set(x_37, 7, x_33); +x_38 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr___closed__4; +x_39 = lean_array_push(x_38, x_37); +x_40 = l_Lean_Server_publishDiagnostics(x_28, x_39, x_14, x_32); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +x_43 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__1; +lean_ctor_set(x_40, 0, x_43); +return x_40; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +x_45 = l_Lean_Server_FileWorker_initAndRunWorker___boxed__const__1; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +else +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_40); +if (x_47 == 0) +{ +return x_40; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_40, 0); +x_49 = lean_ctor_get(x_40, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_40); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_14); +x_51 = !lean_is_exclusive(x_31); +if (x_51 == 0) +{ +return x_31; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_31, 0); +x_53 = lean_ctor_get(x_31, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_30); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_31); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } } else { -uint8_t x_87; -lean_dec(x_13); -lean_dec(x_8); +uint8_t x_88; +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_4); lean_dec(x_3); -x_87 = !lean_is_exclusive(x_19); -if (x_87 == 0) +x_88 = !lean_is_exclusive(x_20); +if (x_88 == 0) { -return x_19; +return x_20; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_19, 0); -x_89 = lean_ctor_get(x_19, 1); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_20, 0); +x_90 = lean_ctor_get(x_20, 1); +lean_inc(x_90); lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_19); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +lean_dec(x_20); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } else { -uint8_t x_91; -lean_dec(x_13); -lean_dec(x_8); +uint8_t x_92; +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_4); lean_dec(x_3); -x_91 = !lean_is_exclusive(x_16); -if (x_91 == 0) +x_92 = !lean_is_exclusive(x_17); +if (x_92 == 0) { -return x_16; +return x_17; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_16, 0); -x_93 = lean_ctor_get(x_16, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_17, 0); +x_94 = lean_ctor_get(x_17, 1); +lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_16); -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; +lean_dec(x_17); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } else { -uint8_t x_95; -lean_dec(x_8); +uint8_t x_96; +lean_dec(x_9); +lean_dec(x_4); lean_dec(x_3); -x_95 = !lean_is_exclusive(x_12); -if (x_95 == 0) +x_96 = !lean_is_exclusive(x_13); +if (x_96 == 0) { -return x_12; +return x_13; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_12, 0); -x_97 = lean_ctor_get(x_12, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_13, 0); +x_98 = lean_ctor_get(x_13, 1); +lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_12); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_dec(x_13); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; } } } else { -uint8_t x_99; +uint8_t x_100; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_99 = !lean_is_exclusive(x_7); -if (x_99 == 0) +x_100 = !lean_is_exclusive(x_8); +if (x_100 == 0) { -return x_7; +return x_8; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_7, 0); -x_101 = lean_ctor_get(x_7, 1); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_8, 0); +x_102 = lean_ctor_get(x_8, 1); +lean_inc(x_102); lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_7); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_dec(x_8); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; } } } @@ -20076,310 +20084,314 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* lean_server_worker_main(lean_object* x_1) { +lean_object* lean_server_worker_main(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = lean_get_stdin(x_1); -if (lean_obj_tag(x_2) == 0) +lean_object* x_3; +x_3 = lean_get_stdin(x_2); +if (lean_obj_tag(x_3) == 0) { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); -lean_dec(x_2); -x_5 = lean_get_stdout(x_4); -if (lean_obj_tag(x_5) == 0) +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_get_stdout(x_5); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_get_stderr(x_7); -if (lean_obj_tag(x_8) == 0) +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_get_stderr(x_8); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_30; lean_object* x_31; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_31; lean_object* x_32; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -x_30 = 8; -x_31 = lean_io_get_random_bytes(x_30, x_10); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; uint64_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = l_ByteArray_toUInt64LE_x21(x_32); -lean_dec(x_32); -x_35 = lean_uint64_to_nat(x_34); -x_36 = l_IO_setRandSeed(x_35, x_33); -lean_dec(x_35); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -lean_inc(x_9); -lean_inc(x_6); -x_38 = l_Lean_Server_FileWorker_initAndRunWorker(x_3, x_6, x_9, 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; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_ctor_get(x_6, 1); -lean_inc(x_41); -lean_dec(x_6); -x_42 = lean_apply_1(x_41, x_40); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_ctor_get(x_9, 1); -lean_inc(x_44); -x_45 = lean_apply_1(x_44, x_43); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; uint32_t x_47; uint8_t x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = lean_unbox_uint32(x_39); -lean_dec(x_39); -x_48 = ((uint8_t)x_47); -x_49 = lean_io_exit(x_48, x_46); -if (lean_obj_tag(x_49) == 0) -{ -uint8_t x_50; +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); lean_dec(x_9); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) +x_31 = 8; +x_32 = lean_io_get_random_bytes(x_31, x_11); +if (lean_obj_tag(x_32) == 0) { -return x_49; +lean_object* x_33; lean_object* x_34; uint64_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_ByteArray_toUInt64LE_x21(x_33); +lean_dec(x_33); +x_36 = lean_uint64_to_nat(x_35); +x_37 = l_IO_setRandSeed(x_36, x_34); +lean_dec(x_36); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +lean_inc(x_10); +lean_inc(x_7); +x_39 = l_Lean_Server_FileWorker_initAndRunWorker(x_4, x_7, x_10, x_1, 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; +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_ctor_get(x_7, 1); +lean_inc(x_42); +lean_dec(x_7); +x_43 = lean_apply_1(x_42, x_41); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_10, 1); +lean_inc(x_45); +x_46 = lean_apply_1(x_45, x_44); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; uint32_t x_48; uint8_t x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_unbox_uint32(x_40); +lean_dec(x_40); +x_49 = ((uint8_t)x_48); +x_50 = lean_io_exit(x_49, x_47); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +lean_dec(x_10); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +return x_50; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_49, 0); -x_52 = lean_ctor_get(x_49, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_49, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_49, 1); +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_50, 0); lean_inc(x_55); -lean_dec(x_49); -x_11 = x_54; -x_12 = x_55; -goto block_29; -} -} -else -{ -lean_object* x_56; lean_object* x_57; -lean_dec(x_39); -x_56 = lean_ctor_get(x_45, 0); +x_56 = lean_ctor_get(x_50, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_45, 1); +lean_dec(x_50); +x_12 = x_55; +x_13 = x_56; +goto block_30; +} +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_40); +x_57 = lean_ctor_get(x_46, 0); lean_inc(x_57); -lean_dec(x_45); -x_11 = x_56; -x_12 = x_57; -goto block_29; -} -} -else -{ -lean_object* x_58; lean_object* x_59; -lean_dec(x_39); -x_58 = lean_ctor_get(x_42, 0); +x_58 = lean_ctor_get(x_46, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_42, 1); +lean_dec(x_46); +x_12 = x_57; +x_13 = x_58; +goto block_30; +} +} +else +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_40); +x_59 = lean_ctor_get(x_43, 0); lean_inc(x_59); -lean_dec(x_42); -x_11 = x_58; -x_12 = x_59; -goto block_29; -} -} -else -{ -lean_object* x_60; lean_object* x_61; -lean_dec(x_6); -x_60 = lean_ctor_get(x_38, 0); +x_60 = lean_ctor_get(x_43, 1); lean_inc(x_60); -x_61 = lean_ctor_get(x_38, 1); +lean_dec(x_43); +x_12 = x_59; +x_13 = x_60; +goto block_30; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_7); +x_61 = lean_ctor_get(x_39, 0); lean_inc(x_61); -lean_dec(x_38); -x_11 = x_60; -x_12 = x_61; -goto block_29; -} -} -else -{ -lean_object* x_62; lean_object* x_63; -lean_dec(x_6); -lean_dec(x_3); -x_62 = lean_ctor_get(x_31, 0); +x_62 = lean_ctor_get(x_39, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_31, 1); +lean_dec(x_39); +x_12 = x_61; +x_13 = x_62; +goto block_30; +} +} +else +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_63 = lean_ctor_get(x_32, 0); lean_inc(x_63); -lean_dec(x_31); -x_11 = x_62; +x_64 = lean_ctor_get(x_32, 1); +lean_inc(x_64); +lean_dec(x_32); x_12 = x_63; -goto block_29; +x_13 = x_64; +goto block_30; } -block_29: +block_30: { -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_13 = lean_io_error_to_string(x_11); -x_14 = l_Lean_Server_FileWorker_workerMain___closed__1; -x_15 = lean_string_append(x_14, x_13); -lean_dec(x_13); -x_16 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; -x_17 = lean_string_append(x_15, x_16); -x_18 = l_IO_FS_Stream_putStrLn(x_9, x_17, x_12); -if (lean_obj_tag(x_18) == 0) +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_14 = lean_io_error_to_string(x_12); +x_15 = l_Lean_Server_FileWorker_workerMain___closed__1; +x_16 = lean_string_append(x_15, x_14); +lean_dec(x_14); +x_17 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath_match__1___rarg___closed__1; +x_18 = lean_string_append(x_16, x_17); +x_19 = l_IO_FS_Stream_putStrLn(x_10, x_18, x_13); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -x_21 = l_Lean_Server_FileWorker_workerMain___boxed__const__1; -lean_ctor_set(x_18, 0, x_21); -return x_18; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +x_22 = l_Lean_Server_FileWorker_workerMain___boxed__const__1; +lean_ctor_set(x_19, 0, x_22); +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = l_Lean_Server_FileWorker_workerMain___boxed__const__1; -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -return x_24; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = l_Lean_Server_FileWorker_workerMain___boxed__const__1; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; } } else { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) { -return x_18; +return x_19; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_18, 0); -x_27 = lean_ctor_get(x_18, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_18); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_dec(x_19); +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 { -uint8_t x_64; -lean_dec(x_6); -lean_dec(x_3); -x_64 = !lean_is_exclusive(x_8); -if (x_64 == 0) +uint8_t x_65; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_9); +if (x_65 == 0) { -return x_8; +return x_9; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_8, 0); -x_66 = lean_ctor_get(x_8, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_9, 0); +x_67 = lean_ctor_get(x_9, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_8); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +lean_dec(x_9); +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 { -uint8_t x_68; -lean_dec(x_3); -x_68 = !lean_is_exclusive(x_5); -if (x_68 == 0) +uint8_t x_69; +lean_dec(x_4); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_6); +if (x_69 == 0) { -return x_5; +return x_6; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_5, 0); -x_70 = lean_ctor_get(x_5, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_6, 0); +x_71 = lean_ctor_get(x_6, 1); +lean_inc(x_71); lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_5); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_dec(x_6); +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 { -uint8_t x_72; -x_72 = !lean_is_exclusive(x_2); -if (x_72 == 0) +uint8_t x_73; +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_3); +if (x_73 == 0) { -return x_2; +return x_3; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_2, 0); -x_74 = lean_ctor_get(x_2, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_3, 0); +x_75 = lean_ctor_get(x_3, 1); +lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_2); -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; +lean_dec(x_3); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } diff --git a/stage0/stdlib/Lean/Server/FileWorker/Utils.c b/stage0/stdlib/Lean/Server/FileWorker/Utils.c index 72794168dc..ecc49d4923 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/Utils.c +++ b/stage0/stdlib/Lean/Server/FileWorker/Utils.c @@ -29,6 +29,7 @@ size_t l_USize_sub(size_t, size_t); static lean_object* l_Lean_Server_FileWorker_logSnapContent___closed__1; static lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__13; lean_object* l_Lean_Server_FileWorker_logSnapContent___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23; lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); @@ -544,9 +545,21 @@ return x_3; static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__18() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__8; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__19() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; -x_2 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__9; +x_2 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__18; x_3 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__16; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -555,7 +568,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__19() { +static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__20() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -567,7 +580,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__20() { +static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21() { _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; @@ -576,8 +589,8 @@ x_2 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__13; x_3 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__16; x_4 = lean_unsigned_to_nat(0u); x_5 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__17; -x_6 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__18; -x_7 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__19; +x_6 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__19; +x_7 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__20; x_8 = lean_alloc_ctor(0, 9, 0); lean_ctor_set(x_8, 0, x_2); lean_ctor_set(x_8, 1, x_3); @@ -591,14 +604,14 @@ lean_ctor_set(x_8, 8, x_7); return x_8; } } -static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21() { +static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_box(0); x_3 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__5; -x_4 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__20; +x_4 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21; x_5 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__16; x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -609,13 +622,13 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22() { +static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = lean_box(2); x_2 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__4; -x_3 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21; +x_3 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22; x_4 = lean_box(0); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_2); @@ -629,7 +642,7 @@ static lean_object* _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument _start: { lean_object* x_1; -x_1 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22; +x_1 = l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23; return x_1; } } @@ -1471,6 +1484,8 @@ l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21 = _init_l_Le lean_mark_persistent(l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__21); l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22 = _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22(); lean_mark_persistent(l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__22); +l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23 = _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23(); +lean_mark_persistent(l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__23); l_Lean_Server_FileWorker_instInhabitedEditableDocument = _init_l_Lean_Server_FileWorker_instInhabitedEditableDocument(); lean_mark_persistent(l_Lean_Server_FileWorker_instInhabitedEditableDocument); l_Lean_Server_FileWorker_RpcSession_keepAliveTimeMs = _init_l_Lean_Server_FileWorker_RpcSession_keepAliveTimeMs(); diff --git a/stage0/stdlib/Lean/Server/Snapshots.c b/stage0/stdlib/Lean/Server/Snapshots.c index a757cfba08..4a37b00a06 100644 --- a/stage0/stdlib/Lean/Server/Snapshots.c +++ b/stage0/stdlib/Lean/Server/Snapshots.c @@ -85,6 +85,7 @@ lean_object* l_Lean_Server_Snapshots_Snapshot_diagnostics(lean_object*); lean_object* l_Lean_Server_Snapshots_parseNextCmd(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_isAtEnd___boxed(lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +static lean_object* l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19; lean_object* l_Lean_Parser_parseCommand_parse(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t l_String_isEmpty(lean_object*); @@ -294,9 +295,21 @@ return x_3; static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__15() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__4; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__16() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; -x_2 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__5; +x_2 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__15; x_3 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__13; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -305,7 +318,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__16() { +static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -317,7 +330,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17() { +static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18() { _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; @@ -326,8 +339,8 @@ x_2 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__10; x_3 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__13; x_4 = lean_unsigned_to_nat(0u); x_5 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__14; -x_6 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__15; -x_7 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__16; +x_6 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__16; +x_7 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17; x_8 = lean_alloc_ctor(0, 9, 0); lean_ctor_set(x_8, 0, x_2); lean_ctor_set(x_8, 1, x_3); @@ -341,14 +354,14 @@ lean_ctor_set(x_8, 8, x_7); return x_8; } } -static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18() { +static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_box(0); x_3 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__1; -x_4 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17; +x_4 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18; x_5 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__13; x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -363,7 +376,7 @@ static lean_object* _init_l_Lean_Server_Snapshots_instInhabitedSnapshot() { _start: { lean_object* x_1; -x_1 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18; +x_1 = l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19; return x_1; } } @@ -2279,6 +2292,8 @@ l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17 = _init_l_Lean_Server lean_mark_persistent(l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__17); l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18 = _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18(); lean_mark_persistent(l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__18); +l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19 = _init_l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19(); +lean_mark_persistent(l_Lean_Server_Snapshots_instInhabitedSnapshot___closed__19); l_Lean_Server_Snapshots_instInhabitedSnapshot = _init_l_Lean_Server_Snapshots_instInhabitedSnapshot(); lean_mark_persistent(l_Lean_Server_Snapshots_instInhabitedSnapshot); l_Lean_Server_Snapshots_reparseHeader___closed__1 = _init_l_Lean_Server_Snapshots_reparseHeader___closed__1(); diff --git a/stage0/stdlib/Lean/Util/CollectFVars.c b/stage0/stdlib/Lean/Util/CollectFVars.c index e19fbbe9e0..e82e4e96c8 100644 --- a/stage0/stdlib/Lean/Util/CollectFVars.c +++ b/stage0/stdlib/Lean/Util/CollectFVars.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -21,24 +20,28 @@ lean_object* l_Lean_CollectFVars_State_fvarSet___default; lean_object* l_Lean_collectFVars(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_CollectFVars_main_match__1(lean_object*); lean_object* l_List_foldl___at_Lean_CollectFVars_visit___spec__6(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); size_t l_UInt64_toUSize(uint64_t); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectFVars_visit___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_CollectFVars_visit___spec__2(lean_object*, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); lean_object* l_List_elem___at_Lean_CollectFVars_visit___spec__2___boxed(lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); static lean_object* l_Lean_CollectFVars_instInhabitedState___closed__2; -extern lean_object* l_Lean_NameSet_empty; lean_object* l_List_replace___at_Lean_CollectFVars_visit___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_visit(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Std_HashSetImp_expand___at_Lean_CollectFVars_visit___spec__4(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_State_visitedExpr___default; lean_object* lean_nat_mul(lean_object*, lean_object*); @@ -82,7 +85,7 @@ static lean_object* _init_l_Lean_CollectFVars_State_fvarSet___default() { _start: { lean_object* x_1; -x_1 = l_Lean_NameSet_empty; +x_1 = lean_box(0); return x_1; } } @@ -99,11 +102,11 @@ static lean_object* _init_l_Lean_CollectFVars_instInhabitedState___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_CollectFVars_instInhabitedState___closed__1; -x_2 = l_Lean_NameSet_empty; +x_1 = lean_box(0); +x_2 = l_Lean_CollectFVars_instInhabitedState___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -708,6 +711,2476 @@ x_2 = lean_alloc_closure((void*)(l_Lean_CollectFVars_main_match__1___rarg), 9, 0 return x_2; } } +lean_object* l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = 0; +x_6 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = l_Lean_Name_quickCmp(x_2, x_10); +switch (x_13) { +case 0: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_9, x_2, x_3); +x_15 = 0; +lean_ctor_set(x_1, 0, x_14); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); +return x_1; +} +case 1: +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = 0; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); +return x_1; +} +default: +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_12, x_2, x_3); +x_18 = 0; +lean_ctor_set(x_1, 3, x_17); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); +return x_1; +} +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 3); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_23 = l_Lean_Name_quickCmp(x_2, x_20); +switch (x_23) { +case 0: +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_19, x_2, x_3); +x_25 = 0; +x_26 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_20); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_25); +return x_26; +} +case 1: +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +x_27 = 0; +x_28 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); +return x_28; +} +default: +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_22, x_2, x_3); +x_30 = 0; +x_31 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +lean_ctor_set(x_31, 2, x_21); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*4, x_30); +return x_31; +} +} +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_1); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_1, 0); +x_34 = lean_ctor_get(x_1, 1); +x_35 = lean_ctor_get(x_1, 2); +x_36 = lean_ctor_get(x_1, 3); +x_37 = l_Lean_Name_quickCmp(x_2, x_34); +switch (x_37) { +case 0: +{ +uint8_t x_38; +x_38 = l_Std_RBNode_isRed___rarg(x_33); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_33, x_2, x_3); +x_40 = 1; +lean_ctor_set(x_1, 0, x_39); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_33, x_2, x_3); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_41, 3); +lean_dec(x_45); +x_46 = lean_ctor_get(x_41, 0); +lean_dec(x_46); +x_47 = 0; +lean_ctor_set(x_41, 0, x_43); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_47); +x_48 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); +return x_1; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_41, 1); +x_50 = lean_ctor_get(x_41, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +x_51 = 0; +x_52 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_49); +lean_ctor_set(x_52, 2, x_50); +lean_ctor_set(x_52, 3, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_51); +x_53 = 1; +lean_ctor_set(x_1, 0, x_52); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_53); +return x_1; +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_41); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_56 = lean_ctor_get(x_41, 1); +x_57 = lean_ctor_get(x_41, 2); +x_58 = lean_ctor_get(x_41, 3); +lean_dec(x_58); +x_59 = lean_ctor_get(x_41, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_43); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; +x_61 = lean_ctor_get(x_43, 0); +x_62 = lean_ctor_get(x_43, 1); +x_63 = lean_ctor_get(x_43, 2); +x_64 = lean_ctor_get(x_43, 3); +x_65 = 1; +lean_ctor_set(x_43, 3, x_61); +lean_ctor_set(x_43, 2, x_57); +lean_ctor_set(x_43, 1, x_56); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_65); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_64); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_65); +x_66 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_63); +lean_ctor_set(x_1, 1, x_62); +lean_ctor_set(x_1, 0, x_43); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_66); +return x_1; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +x_69 = lean_ctor_get(x_43, 2); +x_70 = lean_ctor_get(x_43, 3); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_71 = 1; +x_72 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_56); +lean_ctor_set(x_72, 2, x_57); +lean_ctor_set(x_72, 3, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_71); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_70); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_71); +x_73 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_69); +lean_ctor_set(x_1, 1, x_68); +lean_ctor_set(x_1, 0, x_72); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_73); +return x_1; +} +} +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; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_74 = lean_ctor_get(x_41, 1); +x_75 = lean_ctor_get(x_41, 2); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_41); +x_76 = lean_ctor_get(x_43, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_43, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_43, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_43, 3); +lean_inc(x_79); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + lean_ctor_release(x_43, 3); + x_80 = x_43; +} else { + lean_dec_ref(x_43); + x_80 = lean_box(0); +} +x_81 = 1; +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(1, 4, 1); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_42); +lean_ctor_set(x_82, 1, x_74); +lean_ctor_set(x_82, 2, x_75); +lean_ctor_set(x_82, 3, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_81); +x_83 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_34); +lean_ctor_set(x_83, 2, x_35); +lean_ctor_set(x_83, 3, x_36); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_81); +x_84 = 0; +lean_ctor_set(x_1, 3, x_83); +lean_ctor_set(x_1, 2, x_78); +lean_ctor_set(x_1, 1, x_77); +lean_ctor_set(x_1, 0, x_82); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_84); +return x_1; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_41); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_41, 3); +lean_dec(x_86); +x_87 = lean_ctor_get(x_41, 0); +lean_dec(x_87); +x_88 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_88); +x_89 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_89); +return x_1; +} +else +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_41, 1); +x_91 = lean_ctor_get(x_41, 2); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = 0; +x_93 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_93, 0, x_42); +lean_ctor_set(x_93, 1, x_90); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_43); +lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_92); +x_94 = 1; +lean_ctor_set(x_1, 0, x_93); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_94); +return x_1; +} +} +} +} +else +{ +uint8_t x_95; +x_95 = lean_ctor_get_uint8(x_42, sizeof(void*)*4); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_41); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_97 = lean_ctor_get(x_41, 1); +x_98 = lean_ctor_get(x_41, 2); +x_99 = lean_ctor_get(x_41, 3); +x_100 = lean_ctor_get(x_41, 0); +lean_dec(x_100); +x_101 = !lean_is_exclusive(x_42); +if (x_101 == 0) +{ +uint8_t x_102; uint8_t x_103; +x_102 = 1; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_102); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_102); +x_103 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_42); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_103); +return x_1; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; uint8_t x_110; +x_104 = lean_ctor_get(x_42, 0); +x_105 = lean_ctor_get(x_42, 1); +x_106 = lean_ctor_get(x_42, 2); +x_107 = lean_ctor_get(x_42, 3); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_42); +x_108 = 1; +x_109 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_106); +lean_ctor_set(x_109, 3, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*4, x_108); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 1, x_34); +lean_ctor_set(x_41, 0, x_99); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_108); +x_110 = 0; +lean_ctor_set(x_1, 3, x_41); +lean_ctor_set(x_1, 2, x_98); +lean_ctor_set(x_1, 1, x_97); +lean_ctor_set(x_1, 0, x_109); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110); +return x_1; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_111 = lean_ctor_get(x_41, 1); +x_112 = lean_ctor_get(x_41, 2); +x_113 = lean_ctor_get(x_41, 3); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_41); +x_114 = lean_ctor_get(x_42, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_42, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_42, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_42, 3); +lean_inc(x_117); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_118 = x_42; +} else { + lean_dec_ref(x_42); + x_118 = lean_box(0); +} +x_119 = 1; +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(1, 4, 1); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set_uint8(x_120, sizeof(void*)*4, x_119); +x_121 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_34); +lean_ctor_set(x_121, 2, x_35); +lean_ctor_set(x_121, 3, x_36); +lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_119); +x_122 = 0; +lean_ctor_set(x_1, 3, x_121); +lean_ctor_set(x_1, 2, x_112); +lean_ctor_set(x_1, 1, x_111); +lean_ctor_set(x_1, 0, x_120); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_122); +return x_1; +} +} +else +{ +lean_object* x_123; +x_123 = lean_ctor_get(x_41, 3); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +uint8_t x_124; +x_124 = !lean_is_exclusive(x_41); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_41, 3); +lean_dec(x_125); +x_126 = lean_ctor_get(x_41, 0); +lean_dec(x_126); +x_127 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_127); +x_128 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_128); +return x_1; +} +else +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_41, 1); +x_130 = lean_ctor_get(x_41, 2); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_41); +x_131 = 0; +x_132 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_132, 0, x_42); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set(x_132, 2, x_130); +lean_ctor_set(x_132, 3, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*4, x_131); +x_133 = 1; +lean_ctor_set(x_1, 0, x_132); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_133); +return x_1; +} +} +else +{ +uint8_t x_134; +x_134 = lean_ctor_get_uint8(x_123, sizeof(void*)*4); +if (x_134 == 0) +{ +uint8_t x_135; +lean_free_object(x_1); +x_135 = !lean_is_exclusive(x_41); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_136 = lean_ctor_get(x_41, 1); +x_137 = lean_ctor_get(x_41, 2); +x_138 = lean_ctor_get(x_41, 3); +lean_dec(x_138); +x_139 = lean_ctor_get(x_41, 0); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_123); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; +x_141 = lean_ctor_get(x_123, 0); +x_142 = lean_ctor_get(x_123, 1); +x_143 = lean_ctor_get(x_123, 2); +x_144 = lean_ctor_get(x_123, 3); +x_145 = 1; +lean_inc(x_42); +lean_ctor_set(x_123, 3, x_141); +lean_ctor_set(x_123, 2, x_137); +lean_ctor_set(x_123, 1, x_136); +lean_ctor_set(x_123, 0, x_42); +x_146 = !lean_is_exclusive(x_42); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_42, 3); +lean_dec(x_147); +x_148 = lean_ctor_get(x_42, 2); +lean_dec(x_148); +x_149 = lean_ctor_get(x_42, 1); +lean_dec(x_149); +x_150 = lean_ctor_get(x_42, 0); +lean_dec(x_150); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +lean_ctor_set(x_42, 3, x_36); +lean_ctor_set(x_42, 2, x_35); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 0, x_144); +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_145); +x_151 = 0; +lean_ctor_set(x_41, 3, x_42); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_151); +return x_41; +} +else +{ +lean_object* x_152; uint8_t x_153; +lean_dec(x_42); +lean_ctor_set_uint8(x_123, sizeof(void*)*4, x_145); +x_152 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_152, 0, x_144); +lean_ctor_set(x_152, 1, x_34); +lean_ctor_set(x_152, 2, x_35); +lean_ctor_set(x_152, 3, x_36); +lean_ctor_set_uint8(x_152, sizeof(void*)*4, x_145); +x_153 = 0; +lean_ctor_set(x_41, 3, x_152); +lean_ctor_set(x_41, 2, x_143); +lean_ctor_set(x_41, 1, x_142); +lean_ctor_set(x_41, 0, x_123); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_153); +return x_41; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_154 = lean_ctor_get(x_123, 0); +x_155 = lean_ctor_get(x_123, 1); +x_156 = lean_ctor_get(x_123, 2); +x_157 = lean_ctor_get(x_123, 3); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_123); +x_158 = 1; +lean_inc(x_42); +x_159 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_159, 0, x_42); +lean_ctor_set(x_159, 1, x_136); +lean_ctor_set(x_159, 2, x_137); +lean_ctor_set(x_159, 3, x_154); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_160 = x_42; +} else { + lean_dec_ref(x_42); + x_160 = lean_box(0); +} +lean_ctor_set_uint8(x_159, sizeof(void*)*4, x_158); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 4, 1); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_157); +lean_ctor_set(x_161, 1, x_34); +lean_ctor_set(x_161, 2, x_35); +lean_ctor_set(x_161, 3, x_36); +lean_ctor_set_uint8(x_161, sizeof(void*)*4, x_158); +x_162 = 0; +lean_ctor_set(x_41, 3, x_161); +lean_ctor_set(x_41, 2, x_156); +lean_ctor_set(x_41, 1, x_155); +lean_ctor_set(x_41, 0, x_159); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_162); +return x_41; +} +} +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; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; +x_163 = lean_ctor_get(x_41, 1); +x_164 = lean_ctor_get(x_41, 2); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_41); +x_165 = lean_ctor_get(x_123, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_123, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_123, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_123, 3); +lean_inc(x_168); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + lean_ctor_release(x_123, 2); + lean_ctor_release(x_123, 3); + x_169 = x_123; +} else { + lean_dec_ref(x_123); + x_169 = lean_box(0); +} +x_170 = 1; +lean_inc(x_42); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 4, 1); +} else { + x_171 = x_169; +} +lean_ctor_set(x_171, 0, x_42); +lean_ctor_set(x_171, 1, x_163); +lean_ctor_set(x_171, 2, x_164); +lean_ctor_set(x_171, 3, x_165); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_172 = x_42; +} else { + lean_dec_ref(x_42); + x_172 = lean_box(0); +} +lean_ctor_set_uint8(x_171, sizeof(void*)*4, x_170); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 4, 1); +} else { + x_173 = x_172; +} +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_34); +lean_ctor_set(x_173, 2, x_35); +lean_ctor_set(x_173, 3, x_36); +lean_ctor_set_uint8(x_173, sizeof(void*)*4, x_170); +x_174 = 0; +x_175 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_166); +lean_ctor_set(x_175, 2, x_167); +lean_ctor_set(x_175, 3, x_173); +lean_ctor_set_uint8(x_175, sizeof(void*)*4, x_174); +return x_175; +} +} +else +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_41); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_41, 3); +lean_dec(x_177); +x_178 = lean_ctor_get(x_41, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_42); +if (x_179 == 0) +{ +uint8_t x_180; uint8_t x_181; +lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_134); +x_180 = 0; +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_180); +x_181 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_181); +return x_1; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; +x_182 = lean_ctor_get(x_42, 0); +x_183 = lean_ctor_get(x_42, 1); +x_184 = lean_ctor_get(x_42, 2); +x_185 = lean_ctor_get(x_42, 3); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_42); +x_186 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_183); +lean_ctor_set(x_186, 2, x_184); +lean_ctor_set(x_186, 3, x_185); +lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_134); +x_187 = 0; +lean_ctor_set(x_41, 0, x_186); +lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_187); +x_188 = 1; +lean_ctor_set(x_1, 0, x_41); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_188); +return x_1; +} +} +else +{ +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; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_189 = lean_ctor_get(x_41, 1); +x_190 = lean_ctor_get(x_41, 2); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_41); +x_191 = lean_ctor_get(x_42, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_42, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_42, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_42, 3); +lean_inc(x_194); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + x_195 = x_42; +} else { + lean_dec_ref(x_42); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 4, 1); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_192); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_134); +x_197 = 0; +x_198 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_189); +lean_ctor_set(x_198, 2, x_190); +lean_ctor_set(x_198, 3, x_123); +lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_197); +x_199 = 1; +lean_ctor_set(x_1, 0, x_198); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199); +return x_1; +} +} +} +} +} +} +} +case 1: +{ +uint8_t x_200; +lean_dec(x_35); +lean_dec(x_34); +x_200 = 1; +lean_ctor_set(x_1, 2, x_3); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); +return x_1; +} +default: +{ +uint8_t x_201; +x_201 = l_Std_RBNode_isRed___rarg(x_36); +if (x_201 == 0) +{ +lean_object* x_202; uint8_t x_203; +x_202 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_36, x_2, x_3); +x_203 = 1; +lean_ctor_set(x_1, 3, x_202); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_203); +return x_1; +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_36, x_2, x_3); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 3); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; +x_208 = lean_ctor_get(x_204, 3); +lean_dec(x_208); +x_209 = lean_ctor_get(x_204, 0); +lean_dec(x_209); +x_210 = 0; +lean_ctor_set(x_204, 0, x_206); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_210); +x_211 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211); +return x_1; +} +else +{ +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; uint8_t x_216; +x_212 = lean_ctor_get(x_204, 1); +x_213 = lean_ctor_get(x_204, 2); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_204); +x_214 = 0; +x_215 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_215, 0, x_206); +lean_ctor_set(x_215, 1, x_212); +lean_ctor_set(x_215, 2, x_213); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set_uint8(x_215, sizeof(void*)*4, x_214); +x_216 = 1; +lean_ctor_set(x_1, 3, x_215); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_216); +return x_1; +} +} +else +{ +uint8_t x_217; +x_217 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +if (x_217 == 0) +{ +uint8_t x_218; +x_218 = !lean_is_exclusive(x_204); +if (x_218 == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_219 = lean_ctor_get(x_204, 1); +x_220 = lean_ctor_get(x_204, 2); +x_221 = lean_ctor_get(x_204, 3); +lean_dec(x_221); +x_222 = lean_ctor_get(x_204, 0); +lean_dec(x_222); +x_223 = !lean_is_exclusive(x_206); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; +x_224 = lean_ctor_get(x_206, 0); +x_225 = lean_ctor_get(x_206, 1); +x_226 = lean_ctor_get(x_206, 2); +x_227 = lean_ctor_get(x_206, 3); +x_228 = 1; +lean_ctor_set(x_206, 3, x_205); +lean_ctor_set(x_206, 2, x_35); +lean_ctor_set(x_206, 1, x_34); +lean_ctor_set(x_206, 0, x_33); +lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_228); +lean_ctor_set(x_204, 3, x_227); +lean_ctor_set(x_204, 2, x_226); +lean_ctor_set(x_204, 1, x_225); +lean_ctor_set(x_204, 0, x_224); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_228); +x_229 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_206); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_229); +return x_1; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; +x_230 = lean_ctor_get(x_206, 0); +x_231 = lean_ctor_get(x_206, 1); +x_232 = lean_ctor_get(x_206, 2); +x_233 = lean_ctor_get(x_206, 3); +lean_inc(x_233); +lean_inc(x_232); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_206); +x_234 = 1; +x_235 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_235, 0, x_33); +lean_ctor_set(x_235, 1, x_34); +lean_ctor_set(x_235, 2, x_35); +lean_ctor_set(x_235, 3, x_205); +lean_ctor_set_uint8(x_235, sizeof(void*)*4, x_234); +lean_ctor_set(x_204, 3, x_233); +lean_ctor_set(x_204, 2, x_232); +lean_ctor_set(x_204, 1, x_231); +lean_ctor_set(x_204, 0, x_230); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_234); +x_236 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_220); +lean_ctor_set(x_1, 1, x_219); +lean_ctor_set(x_1, 0, x_235); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_236); +return x_1; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_237 = lean_ctor_get(x_204, 1); +x_238 = lean_ctor_get(x_204, 2); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_204); +x_239 = lean_ctor_get(x_206, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_206, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_206, 2); +lean_inc(x_241); +x_242 = lean_ctor_get(x_206, 3); +lean_inc(x_242); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + lean_ctor_release(x_206, 3); + x_243 = x_206; +} else { + lean_dec_ref(x_206); + x_243 = lean_box(0); +} +x_244 = 1; +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(1, 4, 1); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_33); +lean_ctor_set(x_245, 1, x_34); +lean_ctor_set(x_245, 2, x_35); +lean_ctor_set(x_245, 3, x_205); +lean_ctor_set_uint8(x_245, sizeof(void*)*4, x_244); +x_246 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_246, 0, x_239); +lean_ctor_set(x_246, 1, x_240); +lean_ctor_set(x_246, 2, x_241); +lean_ctor_set(x_246, 3, x_242); +lean_ctor_set_uint8(x_246, sizeof(void*)*4, x_244); +x_247 = 0; +lean_ctor_set(x_1, 3, x_246); +lean_ctor_set(x_1, 2, x_238); +lean_ctor_set(x_1, 1, x_237); +lean_ctor_set(x_1, 0, x_245); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_247); +return x_1; +} +} +else +{ +uint8_t x_248; +x_248 = !lean_is_exclusive(x_204); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; +x_249 = lean_ctor_get(x_204, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_204, 0); +lean_dec(x_250); +x_251 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_251); +x_252 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); +return x_1; +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_204, 1); +x_254 = lean_ctor_get(x_204, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_204); +x_255 = 0; +x_256 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_256, 0, x_205); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_254); +lean_ctor_set(x_256, 3, x_206); +lean_ctor_set_uint8(x_256, sizeof(void*)*4, x_255); +x_257 = 1; +lean_ctor_set(x_1, 3, x_256); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_257); +return x_1; +} +} +} +} +else +{ +uint8_t x_258; +x_258 = lean_ctor_get_uint8(x_205, sizeof(void*)*4); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = !lean_is_exclusive(x_204); +if (x_259 == 0) +{ +lean_object* x_260; uint8_t x_261; +x_260 = lean_ctor_get(x_204, 0); +lean_dec(x_260); +x_261 = !lean_is_exclusive(x_205); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; +x_262 = lean_ctor_get(x_205, 0); +x_263 = lean_ctor_get(x_205, 1); +x_264 = lean_ctor_get(x_205, 2); +x_265 = lean_ctor_get(x_205, 3); +x_266 = 1; +lean_ctor_set(x_205, 3, x_262); +lean_ctor_set(x_205, 2, x_35); +lean_ctor_set(x_205, 1, x_34); +lean_ctor_set(x_205, 0, x_33); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_266); +lean_ctor_set(x_204, 0, x_265); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_266); +x_267 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_264); +lean_ctor_set(x_1, 1, x_263); +lean_ctor_set(x_1, 0, x_205); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_267); +return x_1; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; +x_268 = lean_ctor_get(x_205, 0); +x_269 = lean_ctor_get(x_205, 1); +x_270 = lean_ctor_get(x_205, 2); +x_271 = lean_ctor_get(x_205, 3); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_205); +x_272 = 1; +x_273 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_273, 0, x_33); +lean_ctor_set(x_273, 1, x_34); +lean_ctor_set(x_273, 2, x_35); +lean_ctor_set(x_273, 3, x_268); +lean_ctor_set_uint8(x_273, sizeof(void*)*4, x_272); +lean_ctor_set(x_204, 0, x_271); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_272); +x_274 = 0; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set(x_1, 2, x_270); +lean_ctor_set(x_1, 1, x_269); +lean_ctor_set(x_1, 0, x_273); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_274); +return x_1; +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_275 = lean_ctor_get(x_204, 1); +x_276 = lean_ctor_get(x_204, 2); +x_277 = lean_ctor_get(x_204, 3); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_204); +x_278 = lean_ctor_get(x_205, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_205, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_205, 2); +lean_inc(x_280); +x_281 = lean_ctor_get(x_205, 3); +lean_inc(x_281); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_282 = x_205; +} else { + lean_dec_ref(x_205); + x_282 = lean_box(0); +} +x_283 = 1; +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(1, 4, 1); +} else { + x_284 = x_282; +} +lean_ctor_set(x_284, 0, x_33); +lean_ctor_set(x_284, 1, x_34); +lean_ctor_set(x_284, 2, x_35); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283); +x_285 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_275); +lean_ctor_set(x_285, 2, x_276); +lean_ctor_set(x_285, 3, x_277); +lean_ctor_set_uint8(x_285, sizeof(void*)*4, x_283); +x_286 = 0; +lean_ctor_set(x_1, 3, x_285); +lean_ctor_set(x_1, 2, x_280); +lean_ctor_set(x_1, 1, x_279); +lean_ctor_set(x_1, 0, x_284); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_286); +return x_1; +} +} +else +{ +lean_object* x_287; +x_287 = lean_ctor_get(x_204, 3); +lean_inc(x_287); +if (lean_obj_tag(x_287) == 0) +{ +uint8_t x_288; +x_288 = !lean_is_exclusive(x_204); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; +x_289 = lean_ctor_get(x_204, 3); +lean_dec(x_289); +x_290 = lean_ctor_get(x_204, 0); +lean_dec(x_290); +x_291 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_291); +x_292 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_292); +return x_1; +} +else +{ +lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; uint8_t x_297; +x_293 = lean_ctor_get(x_204, 1); +x_294 = lean_ctor_get(x_204, 2); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_204); +x_295 = 0; +x_296 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_296, 0, x_205); +lean_ctor_set(x_296, 1, x_293); +lean_ctor_set(x_296, 2, x_294); +lean_ctor_set(x_296, 3, x_287); +lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_295); +x_297 = 1; +lean_ctor_set(x_1, 3, x_296); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297); +return x_1; +} +} +else +{ +uint8_t x_298; +x_298 = lean_ctor_get_uint8(x_287, sizeof(void*)*4); +if (x_298 == 0) +{ +uint8_t x_299; +lean_free_object(x_1); +x_299 = !lean_is_exclusive(x_204); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_300 = lean_ctor_get(x_204, 3); +lean_dec(x_300); +x_301 = lean_ctor_get(x_204, 0); +lean_dec(x_301); +x_302 = !lean_is_exclusive(x_287); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; uint8_t x_308; +x_303 = lean_ctor_get(x_287, 0); +x_304 = lean_ctor_get(x_287, 1); +x_305 = lean_ctor_get(x_287, 2); +x_306 = lean_ctor_get(x_287, 3); +x_307 = 1; +lean_inc(x_205); +lean_ctor_set(x_287, 3, x_205); +lean_ctor_set(x_287, 2, x_35); +lean_ctor_set(x_287, 1, x_34); +lean_ctor_set(x_287, 0, x_33); +x_308 = !lean_is_exclusive(x_205); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_309 = lean_ctor_get(x_205, 3); +lean_dec(x_309); +x_310 = lean_ctor_get(x_205, 2); +lean_dec(x_310); +x_311 = lean_ctor_get(x_205, 1); +lean_dec(x_311); +x_312 = lean_ctor_get(x_205, 0); +lean_dec(x_312); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +lean_ctor_set(x_205, 3, x_306); +lean_ctor_set(x_205, 2, x_305); +lean_ctor_set(x_205, 1, x_304); +lean_ctor_set(x_205, 0, x_303); +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_307); +x_313 = 0; +lean_ctor_set(x_204, 3, x_205); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_313); +return x_204; +} +else +{ +lean_object* x_314; uint8_t x_315; +lean_dec(x_205); +lean_ctor_set_uint8(x_287, sizeof(void*)*4, x_307); +x_314 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_304); +lean_ctor_set(x_314, 2, x_305); +lean_ctor_set(x_314, 3, x_306); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_307); +x_315 = 0; +lean_ctor_set(x_204, 3, x_314); +lean_ctor_set(x_204, 0, x_287); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_315); +return x_204; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_316 = lean_ctor_get(x_287, 0); +x_317 = lean_ctor_get(x_287, 1); +x_318 = lean_ctor_get(x_287, 2); +x_319 = lean_ctor_get(x_287, 3); +lean_inc(x_319); +lean_inc(x_318); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_287); +x_320 = 1; +lean_inc(x_205); +x_321 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_321, 0, x_33); +lean_ctor_set(x_321, 1, x_34); +lean_ctor_set(x_321, 2, x_35); +lean_ctor_set(x_321, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_322 = x_205; +} else { + lean_dec_ref(x_205); + x_322 = lean_box(0); +} +lean_ctor_set_uint8(x_321, sizeof(void*)*4, x_320); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 4, 1); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_316); +lean_ctor_set(x_323, 1, x_317); +lean_ctor_set(x_323, 2, x_318); +lean_ctor_set(x_323, 3, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*4, x_320); +x_324 = 0; +lean_ctor_set(x_204, 3, x_323); +lean_ctor_set(x_204, 0, x_321); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_324); +return x_204; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; lean_object* x_337; +x_325 = lean_ctor_get(x_204, 1); +x_326 = lean_ctor_get(x_204, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_204); +x_327 = lean_ctor_get(x_287, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_287, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_287, 2); +lean_inc(x_329); +x_330 = lean_ctor_get(x_287, 3); +lean_inc(x_330); +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + lean_ctor_release(x_287, 2); + lean_ctor_release(x_287, 3); + x_331 = x_287; +} else { + lean_dec_ref(x_287); + x_331 = lean_box(0); +} +x_332 = 1; +lean_inc(x_205); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 4, 1); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_33); +lean_ctor_set(x_333, 1, x_34); +lean_ctor_set(x_333, 2, x_35); +lean_ctor_set(x_333, 3, x_205); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_334 = x_205; +} else { + lean_dec_ref(x_205); + x_334 = lean_box(0); +} +lean_ctor_set_uint8(x_333, sizeof(void*)*4, x_332); +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 4, 1); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_327); +lean_ctor_set(x_335, 1, x_328); +lean_ctor_set(x_335, 2, x_329); +lean_ctor_set(x_335, 3, x_330); +lean_ctor_set_uint8(x_335, sizeof(void*)*4, x_332); +x_336 = 0; +x_337 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_337, 0, x_333); +lean_ctor_set(x_337, 1, x_325); +lean_ctor_set(x_337, 2, x_326); +lean_ctor_set(x_337, 3, x_335); +lean_ctor_set_uint8(x_337, sizeof(void*)*4, x_336); +return x_337; +} +} +else +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_204); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_204, 3); +lean_dec(x_339); +x_340 = lean_ctor_get(x_204, 0); +lean_dec(x_340); +x_341 = !lean_is_exclusive(x_205); +if (x_341 == 0) +{ +uint8_t x_342; uint8_t x_343; +lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_298); +x_342 = 0; +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_342); +x_343 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); +return x_1; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; uint8_t x_350; +x_344 = lean_ctor_get(x_205, 0); +x_345 = lean_ctor_get(x_205, 1); +x_346 = lean_ctor_get(x_205, 2); +x_347 = lean_ctor_get(x_205, 3); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_205); +x_348 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_346); +lean_ctor_set(x_348, 3, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_298); +x_349 = 0; +lean_ctor_set(x_204, 0, x_348); +lean_ctor_set_uint8(x_204, sizeof(void*)*4, x_349); +x_350 = 1; +lean_ctor_set(x_1, 3, x_204); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_350); +return x_1; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; uint8_t x_361; +x_351 = lean_ctor_get(x_204, 1); +x_352 = lean_ctor_get(x_204, 2); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_204); +x_353 = lean_ctor_get(x_205, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_205, 1); +lean_inc(x_354); +x_355 = lean_ctor_get(x_205, 2); +lean_inc(x_355); +x_356 = lean_ctor_get(x_205, 3); +lean_inc(x_356); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + lean_ctor_release(x_205, 3); + x_357 = x_205; +} else { + lean_dec_ref(x_205); + x_357 = lean_box(0); +} +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(1, 4, 1); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_354); +lean_ctor_set(x_358, 2, x_355); +lean_ctor_set(x_358, 3, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_298); +x_359 = 0; +x_360 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_351); +lean_ctor_set(x_360, 2, x_352); +lean_ctor_set(x_360, 3, x_287); +lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); +x_361 = 1; +lean_ctor_set(x_1, 3, x_360); +lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_361); +return x_1; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_362 = lean_ctor_get(x_1, 0); +x_363 = lean_ctor_get(x_1, 1); +x_364 = lean_ctor_get(x_1, 2); +x_365 = lean_ctor_get(x_1, 3); +lean_inc(x_365); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_1); +x_366 = l_Lean_Name_quickCmp(x_2, x_363); +switch (x_366) { +case 0: +{ +uint8_t x_367; +x_367 = l_Std_RBNode_isRed___rarg(x_362); +if (x_367 == 0) +{ +lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_368 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_362, x_2, x_3); +x_369 = 1; +x_370 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_363); +lean_ctor_set(x_370, 2, x_364); +lean_ctor_set(x_370, 3, x_365); +lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_369); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; +x_371 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_362, x_2, x_3); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; +x_373 = lean_ctor_get(x_371, 3); +lean_inc(x_373); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; +x_374 = lean_ctor_get(x_371, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_371, 2); +lean_inc(x_375); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_376 = x_371; +} else { + lean_dec_ref(x_371); + x_376 = lean_box(0); +} +x_377 = 0; +if (lean_is_scalar(x_376)) { + x_378 = lean_alloc_ctor(1, 4, 1); +} else { + x_378 = x_376; +} +lean_ctor_set(x_378, 0, x_373); +lean_ctor_set(x_378, 1, x_374); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_373); +lean_ctor_set_uint8(x_378, sizeof(void*)*4, x_377); +x_379 = 1; +x_380 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_380, 0, x_378); +lean_ctor_set(x_380, 1, x_363); +lean_ctor_set(x_380, 2, x_364); +lean_ctor_set(x_380, 3, x_365); +lean_ctor_set_uint8(x_380, sizeof(void*)*4, x_379); +return x_380; +} +else +{ +uint8_t x_381; +x_381 = lean_ctor_get_uint8(x_373, sizeof(void*)*4); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; +x_382 = lean_ctor_get(x_371, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_371, 2); +lean_inc(x_383); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_384 = x_371; +} else { + lean_dec_ref(x_371); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_373, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_373, 1); +lean_inc(x_386); +x_387 = lean_ctor_get(x_373, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_373, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + lean_ctor_release(x_373, 3); + x_389 = x_373; +} else { + lean_dec_ref(x_373); + x_389 = lean_box(0); +} +x_390 = 1; +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(1, 4, 1); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_372); +lean_ctor_set(x_391, 1, x_382); +lean_ctor_set(x_391, 2, x_383); +lean_ctor_set(x_391, 3, x_385); +lean_ctor_set_uint8(x_391, sizeof(void*)*4, x_390); +if (lean_is_scalar(x_384)) { + x_392 = lean_alloc_ctor(1, 4, 1); +} else { + x_392 = x_384; +} +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_363); +lean_ctor_set(x_392, 2, x_364); +lean_ctor_set(x_392, 3, x_365); +lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_390); +x_393 = 0; +x_394 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_386); +lean_ctor_set(x_394, 2, x_387); +lean_ctor_set(x_394, 3, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_371, 1); +lean_inc(x_395); +x_396 = lean_ctor_get(x_371, 2); +lean_inc(x_396); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_397 = x_371; +} else { + lean_dec_ref(x_371); + x_397 = lean_box(0); +} +x_398 = 0; +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(1, 4, 1); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_372); +lean_ctor_set(x_399, 1, x_395); +lean_ctor_set(x_399, 2, x_396); +lean_ctor_set(x_399, 3, x_373); +lean_ctor_set_uint8(x_399, sizeof(void*)*4, x_398); +x_400 = 1; +x_401 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_363); +lean_ctor_set(x_401, 2, x_364); +lean_ctor_set(x_401, 3, x_365); +lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400); +return x_401; +} +} +} +else +{ +uint8_t x_402; +x_402 = lean_ctor_get_uint8(x_372, sizeof(void*)*4); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_371, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_371, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_371, 3); +lean_inc(x_405); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_406 = x_371; +} else { + lean_dec_ref(x_371); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_372, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_372, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_372, 2); +lean_inc(x_409); +x_410 = lean_ctor_get(x_372, 3); +lean_inc(x_410); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_411 = x_372; +} else { + lean_dec_ref(x_372); + x_411 = lean_box(0); +} +x_412 = 1; +if (lean_is_scalar(x_411)) { + x_413 = lean_alloc_ctor(1, 4, 1); +} else { + x_413 = x_411; +} +lean_ctor_set(x_413, 0, x_407); +lean_ctor_set(x_413, 1, x_408); +lean_ctor_set(x_413, 2, x_409); +lean_ctor_set(x_413, 3, x_410); +lean_ctor_set_uint8(x_413, sizeof(void*)*4, x_412); +if (lean_is_scalar(x_406)) { + x_414 = lean_alloc_ctor(1, 4, 1); +} else { + x_414 = x_406; +} +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_363); +lean_ctor_set(x_414, 2, x_364); +lean_ctor_set(x_414, 3, x_365); +lean_ctor_set_uint8(x_414, sizeof(void*)*4, x_412); +x_415 = 0; +x_416 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_403); +lean_ctor_set(x_416, 2, x_404); +lean_ctor_set(x_416, 3, x_414); +lean_ctor_set_uint8(x_416, sizeof(void*)*4, x_415); +return x_416; +} +else +{ +lean_object* x_417; +x_417 = lean_ctor_get(x_371, 3); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; uint8_t x_423; lean_object* x_424; +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +x_419 = lean_ctor_get(x_371, 2); +lean_inc(x_419); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_420 = x_371; +} else { + lean_dec_ref(x_371); + x_420 = lean_box(0); +} +x_421 = 0; +if (lean_is_scalar(x_420)) { + x_422 = lean_alloc_ctor(1, 4, 1); +} else { + x_422 = x_420; +} +lean_ctor_set(x_422, 0, x_372); +lean_ctor_set(x_422, 1, x_418); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_417); +lean_ctor_set_uint8(x_422, sizeof(void*)*4, x_421); +x_423 = 1; +x_424 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_363); +lean_ctor_set(x_424, 2, x_364); +lean_ctor_set(x_424, 3, x_365); +lean_ctor_set_uint8(x_424, sizeof(void*)*4, x_423); +return x_424; +} +else +{ +uint8_t x_425; +x_425 = lean_ctor_get_uint8(x_417, sizeof(void*)*4); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; +x_426 = lean_ctor_get(x_371, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_371, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_428 = x_371; +} else { + lean_dec_ref(x_371); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_417, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 3); +lean_inc(x_432); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + lean_ctor_release(x_417, 2); + lean_ctor_release(x_417, 3); + x_433 = x_417; +} else { + lean_dec_ref(x_417); + x_433 = lean_box(0); +} +x_434 = 1; +lean_inc(x_372); +if (lean_is_scalar(x_433)) { + x_435 = lean_alloc_ctor(1, 4, 1); +} else { + x_435 = x_433; +} +lean_ctor_set(x_435, 0, x_372); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_427); +lean_ctor_set(x_435, 3, x_429); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_436 = x_372; +} else { + lean_dec_ref(x_372); + x_436 = lean_box(0); +} +lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434); +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 4, 1); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_432); +lean_ctor_set(x_437, 1, x_363); +lean_ctor_set(x_437, 2, x_364); +lean_ctor_set(x_437, 3, x_365); +lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_434); +x_438 = 0; +if (lean_is_scalar(x_428)) { + x_439 = lean_alloc_ctor(1, 4, 1); +} else { + x_439 = x_428; +} +lean_ctor_set(x_439, 0, x_435); +lean_ctor_set(x_439, 1, x_430); +lean_ctor_set(x_439, 2, x_431); +lean_ctor_set(x_439, 3, x_437); +lean_ctor_set_uint8(x_439, sizeof(void*)*4, x_438); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; uint8_t x_451; lean_object* x_452; +x_440 = lean_ctor_get(x_371, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_371, 2); +lean_inc(x_441); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + lean_ctor_release(x_371, 2); + lean_ctor_release(x_371, 3); + x_442 = x_371; +} else { + lean_dec_ref(x_371); + x_442 = lean_box(0); +} +x_443 = lean_ctor_get(x_372, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_372, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_372, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_372, 3); +lean_inc(x_446); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + x_447 = x_372; +} else { + lean_dec_ref(x_372); + x_447 = lean_box(0); +} +if (lean_is_scalar(x_447)) { + x_448 = lean_alloc_ctor(1, 4, 1); +} else { + x_448 = x_447; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_425); +x_449 = 0; +if (lean_is_scalar(x_442)) { + x_450 = lean_alloc_ctor(1, 4, 1); +} else { + x_450 = x_442; +} +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_440); +lean_ctor_set(x_450, 2, x_441); +lean_ctor_set(x_450, 3, x_417); +lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449); +x_451 = 1; +x_452 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_363); +lean_ctor_set(x_452, 2, x_364); +lean_ctor_set(x_452, 3, x_365); +lean_ctor_set_uint8(x_452, sizeof(void*)*4, x_451); +return x_452; +} +} +} +} +} +} +case 1: +{ +uint8_t x_453; lean_object* x_454; +lean_dec(x_364); +lean_dec(x_363); +x_453 = 1; +x_454 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_454, 0, x_362); +lean_ctor_set(x_454, 1, x_2); +lean_ctor_set(x_454, 2, x_3); +lean_ctor_set(x_454, 3, x_365); +lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); +return x_454; +} +default: +{ +uint8_t x_455; +x_455 = l_Std_RBNode_isRed___rarg(x_365); +if (x_455 == 0) +{ +lean_object* x_456; uint8_t x_457; lean_object* x_458; +x_456 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_365, x_2, x_3); +x_457 = 1; +x_458 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_458, 0, x_362); +lean_ctor_set(x_458, 1, x_363); +lean_ctor_set(x_458, 2, x_364); +lean_ctor_set(x_458, 3, x_456); +lean_ctor_set_uint8(x_458, sizeof(void*)*4, x_457); +return x_458; +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_365, x_2, x_3); +x_460 = lean_ctor_get(x_459, 0); +lean_inc(x_460); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +x_461 = lean_ctor_get(x_459, 3); +lean_inc(x_461); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); +x_463 = lean_ctor_get(x_459, 2); +lean_inc(x_463); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_464 = x_459; +} else { + lean_dec_ref(x_459); + x_464 = lean_box(0); +} +x_465 = 0; +if (lean_is_scalar(x_464)) { + x_466 = lean_alloc_ctor(1, 4, 1); +} else { + x_466 = x_464; +} +lean_ctor_set(x_466, 0, x_461); +lean_ctor_set(x_466, 1, x_462); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_461); +lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); +x_467 = 1; +x_468 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_468, 0, x_362); +lean_ctor_set(x_468, 1, x_363); +lean_ctor_set(x_468, 2, x_364); +lean_ctor_set(x_468, 3, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467); +return x_468; +} +else +{ +uint8_t x_469; +x_469 = lean_ctor_get_uint8(x_461, sizeof(void*)*4); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_470 = lean_ctor_get(x_459, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_459, 2); +lean_inc(x_471); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_472 = x_459; +} else { + lean_dec_ref(x_459); + x_472 = lean_box(0); +} +x_473 = lean_ctor_get(x_461, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_461, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_461, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_461, 3); +lean_inc(x_476); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + lean_ctor_release(x_461, 3); + x_477 = x_461; +} else { + lean_dec_ref(x_461); + x_477 = lean_box(0); +} +x_478 = 1; +if (lean_is_scalar(x_477)) { + x_479 = lean_alloc_ctor(1, 4, 1); +} else { + x_479 = x_477; +} +lean_ctor_set(x_479, 0, x_362); +lean_ctor_set(x_479, 1, x_363); +lean_ctor_set(x_479, 2, x_364); +lean_ctor_set(x_479, 3, x_460); +lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478); +if (lean_is_scalar(x_472)) { + x_480 = lean_alloc_ctor(1, 4, 1); +} else { + x_480 = x_472; +} +lean_ctor_set(x_480, 0, x_473); +lean_ctor_set(x_480, 1, x_474); +lean_ctor_set(x_480, 2, x_475); +lean_ctor_set(x_480, 3, x_476); +lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478); +x_481 = 0; +x_482 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_482, 0, x_479); +lean_ctor_set(x_482, 1, x_470); +lean_ctor_set(x_482, 2, x_471); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481); +return x_482; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; lean_object* x_487; uint8_t x_488; lean_object* x_489; +x_483 = lean_ctor_get(x_459, 1); +lean_inc(x_483); +x_484 = lean_ctor_get(x_459, 2); +lean_inc(x_484); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_485 = x_459; +} else { + lean_dec_ref(x_459); + x_485 = lean_box(0); +} +x_486 = 0; +if (lean_is_scalar(x_485)) { + x_487 = lean_alloc_ctor(1, 4, 1); +} else { + x_487 = x_485; +} +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_483); +lean_ctor_set(x_487, 2, x_484); +lean_ctor_set(x_487, 3, x_461); +lean_ctor_set_uint8(x_487, sizeof(void*)*4, x_486); +x_488 = 1; +x_489 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_489, 0, x_362); +lean_ctor_set(x_489, 1, x_363); +lean_ctor_set(x_489, 2, x_364); +lean_ctor_set(x_489, 3, x_487); +lean_ctor_set_uint8(x_489, sizeof(void*)*4, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +x_490 = lean_ctor_get_uint8(x_460, sizeof(void*)*4); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; +x_491 = lean_ctor_get(x_459, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_459, 2); +lean_inc(x_492); +x_493 = lean_ctor_get(x_459, 3); +lean_inc(x_493); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_494 = x_459; +} else { + lean_dec_ref(x_459); + x_494 = lean_box(0); +} +x_495 = lean_ctor_get(x_460, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_460, 1); +lean_inc(x_496); +x_497 = lean_ctor_get(x_460, 2); +lean_inc(x_497); +x_498 = lean_ctor_get(x_460, 3); +lean_inc(x_498); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_499 = x_460; +} else { + lean_dec_ref(x_460); + x_499 = lean_box(0); +} +x_500 = 1; +if (lean_is_scalar(x_499)) { + x_501 = lean_alloc_ctor(1, 4, 1); +} else { + x_501 = x_499; +} +lean_ctor_set(x_501, 0, x_362); +lean_ctor_set(x_501, 1, x_363); +lean_ctor_set(x_501, 2, x_364); +lean_ctor_set(x_501, 3, x_495); +lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500); +if (lean_is_scalar(x_494)) { + x_502 = lean_alloc_ctor(1, 4, 1); +} else { + x_502 = x_494; +} +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_491); +lean_ctor_set(x_502, 2, x_492); +lean_ctor_set(x_502, 3, x_493); +lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_500); +x_503 = 0; +x_504 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_504, 0, x_501); +lean_ctor_set(x_504, 1, x_496); +lean_ctor_set(x_504, 2, x_497); +lean_ctor_set(x_504, 3, x_502); +lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503); +return x_504; +} +else +{ +lean_object* x_505; +x_505 = lean_ctor_get(x_459, 3); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; +x_506 = lean_ctor_get(x_459, 1); +lean_inc(x_506); +x_507 = lean_ctor_get(x_459, 2); +lean_inc(x_507); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_508 = x_459; +} else { + lean_dec_ref(x_459); + x_508 = lean_box(0); +} +x_509 = 0; +if (lean_is_scalar(x_508)) { + x_510 = lean_alloc_ctor(1, 4, 1); +} else { + x_510 = x_508; +} +lean_ctor_set(x_510, 0, x_460); +lean_ctor_set(x_510, 1, x_506); +lean_ctor_set(x_510, 2, x_507); +lean_ctor_set(x_510, 3, x_505); +lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_509); +x_511 = 1; +x_512 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_512, 0, x_362); +lean_ctor_set(x_512, 1, x_363); +lean_ctor_set(x_512, 2, x_364); +lean_ctor_set(x_512, 3, x_510); +lean_ctor_set_uint8(x_512, sizeof(void*)*4, x_511); +return x_512; +} +else +{ +uint8_t x_513; +x_513 = lean_ctor_get_uint8(x_505, sizeof(void*)*4); +if (x_513 == 0) +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; +x_514 = lean_ctor_get(x_459, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_459, 2); +lean_inc(x_515); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_516 = x_459; +} else { + lean_dec_ref(x_459); + x_516 = lean_box(0); +} +x_517 = lean_ctor_get(x_505, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_505, 1); +lean_inc(x_518); +x_519 = lean_ctor_get(x_505, 2); +lean_inc(x_519); +x_520 = lean_ctor_get(x_505, 3); +lean_inc(x_520); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + lean_ctor_release(x_505, 2); + lean_ctor_release(x_505, 3); + x_521 = x_505; +} else { + lean_dec_ref(x_505); + x_521 = lean_box(0); +} +x_522 = 1; +lean_inc(x_460); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(1, 4, 1); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_362); +lean_ctor_set(x_523, 1, x_363); +lean_ctor_set(x_523, 2, x_364); +lean_ctor_set(x_523, 3, x_460); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_524 = x_460; +} else { + lean_dec_ref(x_460); + x_524 = lean_box(0); +} +lean_ctor_set_uint8(x_523, sizeof(void*)*4, x_522); +if (lean_is_scalar(x_524)) { + x_525 = lean_alloc_ctor(1, 4, 1); +} else { + x_525 = x_524; +} +lean_ctor_set(x_525, 0, x_517); +lean_ctor_set(x_525, 1, x_518); +lean_ctor_set(x_525, 2, x_519); +lean_ctor_set(x_525, 3, x_520); +lean_ctor_set_uint8(x_525, sizeof(void*)*4, x_522); +x_526 = 0; +if (lean_is_scalar(x_516)) { + x_527 = lean_alloc_ctor(1, 4, 1); +} else { + x_527 = x_516; +} +lean_ctor_set(x_527, 0, x_523); +lean_ctor_set(x_527, 1, x_514); +lean_ctor_set(x_527, 2, x_515); +lean_ctor_set(x_527, 3, x_525); +lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526); +return x_527; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_528 = lean_ctor_get(x_459, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_459, 2); +lean_inc(x_529); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + x_530 = x_459; +} else { + lean_dec_ref(x_459); + x_530 = lean_box(0); +} +x_531 = lean_ctor_get(x_460, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_460, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_460, 2); +lean_inc(x_533); +x_534 = lean_ctor_get(x_460, 3); +lean_inc(x_534); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + x_535 = x_460; +} else { + lean_dec_ref(x_460); + x_535 = lean_box(0); +} +if (lean_is_scalar(x_535)) { + x_536 = lean_alloc_ctor(1, 4, 1); +} else { + x_536 = x_535; +} +lean_ctor_set(x_536, 0, x_531); +lean_ctor_set(x_536, 1, x_532); +lean_ctor_set(x_536, 2, x_533); +lean_ctor_set(x_536, 3, x_534); +lean_ctor_set_uint8(x_536, sizeof(void*)*4, x_513); +x_537 = 0; +if (lean_is_scalar(x_530)) { + x_538 = lean_alloc_ctor(1, 4, 1); +} else { + x_538 = x_530; +} +lean_ctor_set(x_538, 0, x_536); +lean_ctor_set(x_538, 1, x_528); +lean_ctor_set(x_538, 2, x_529); +lean_ctor_set(x_538, 3, x_505); +lean_ctor_set_uint8(x_538, sizeof(void*)*4, x_537); +x_539 = 1; +x_540 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_540, 0, x_362); +lean_ctor_set(x_540, 1, x_363); +lean_ctor_set(x_540, 2, x_364); +lean_ctor_set(x_540, 3, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539); +return x_540; +} +} +} +} +} +} +} +} +} +} +} +} +lean_object* l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Std_RBNode_isRed___rarg(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_1, x_2, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = l_Std_RBNode_ins___at_Lean_CollectFVars_main___spec__2(x_1, x_2, x_3); +x_7 = l_Std_RBNode_setBlack___rarg(x_6); +return x_7; +} +} +} lean_object* l_Lean_CollectFVars_main(lean_object* x_1, lean_object* x_2) { _start: { @@ -724,7 +3197,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); x_6 = lean_box(0); -x_7 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_5, x_3, x_6); +x_7 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_5, x_3, x_6); lean_ctor_set(x_2, 1, x_7); return x_2; } @@ -737,7 +3210,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); x_10 = lean_box(0); -x_11 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_9, x_3, x_10); +x_11 = l_Std_RBNode_insert___at_Lean_CollectFVars_main___spec__1(x_9, x_3, x_10); x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_8); lean_ctor_set(x_12, 1, x_11); diff --git a/stage0/stdlib/Lean/Util/PPExt.c b/stage0/stdlib/Lean/Util/PPExt.c index 2c1c923b70..57a6a00fc6 100644 --- a/stage0/stdlib/Lean/Util/PPExt.c +++ b/stage0/stdlib/Lean/Util/PPExt.c @@ -108,6 +108,7 @@ static lean_object* l_Lean_initFn____x40_Lean_Util_PPExt___hyg_265____closed__1; static lean_object* l_Lean_ppExpr___closed__6; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Util_PPExt___hyg_52____closed__3; +static lean_object* l_Lean_PPContext_lctx___default___closed__5; static lean_object* l_Lean_ppExpr___closed__2; lean_object* l_Lean_ppTerm(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_findCore(lean_object*, lean_object*); @@ -433,29 +434,41 @@ return x_1; static lean_object* _init_l_Lean_PPContext_lctx___default___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_PPContext_mctx___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +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; } } static lean_object* _init_l_Lean_PPContext_lctx___default___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_PPContext_lctx___default___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_PPContext_lctx___default___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PPContext_lctx___default___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_PPContext_lctx___default___closed__4() { +_start: +{ size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_PPContext_lctx___default___closed__2; -x_3 = l_Lean_PPContext_lctx___default___closed__1; +x_2 = l_Lean_PPContext_lctx___default___closed__3; +x_3 = l_Lean_PPContext_lctx___default___closed__2; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -466,12 +479,12 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_PPContext_lctx___default___closed__4() { +static lean_object* _init_l_Lean_PPContext_lctx___default___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_PPContext_mctx___default___closed__3; -x_2 = l_Lean_PPContext_lctx___default___closed__3; +x_1 = l_Lean_PPContext_lctx___default___closed__1; +x_2 = l_Lean_PPContext_lctx___default___closed__4; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -482,7 +495,7 @@ static lean_object* _init_l_Lean_PPContext_lctx___default() { _start: { lean_object* x_1; -x_1 = l_Lean_PPContext_lctx___default___closed__4; +x_1 = l_Lean_PPContext_lctx___default___closed__5; return x_1; } } @@ -1562,6 +1575,8 @@ l_Lean_PPContext_lctx___default___closed__3 = _init_l_Lean_PPContext_lctx___defa lean_mark_persistent(l_Lean_PPContext_lctx___default___closed__3); l_Lean_PPContext_lctx___default___closed__4 = _init_l_Lean_PPContext_lctx___default___closed__4(); lean_mark_persistent(l_Lean_PPContext_lctx___default___closed__4); +l_Lean_PPContext_lctx___default___closed__5 = _init_l_Lean_PPContext_lctx___default___closed__5(); +lean_mark_persistent(l_Lean_PPContext_lctx___default___closed__5); l_Lean_PPContext_lctx___default = _init_l_Lean_PPContext_lctx___default(); lean_mark_persistent(l_Lean_PPContext_lctx___default); l_Lean_PPContext_opts___default = _init_l_Lean_PPContext_opts___default(); diff --git a/stage0/stdlib/Lean/Widget/InteractiveCode.c b/stage0/stdlib/Lean/Widget/InteractiveCode.c index afce515888..72969f1218 100644 --- a/stage0/stdlib/Lean/Widget/InteractiveCode.c +++ b/stage0/stdlib/Lean/Widget/InteractiveCode.c @@ -31,7 +31,7 @@ lean_object* l_Lean_PrettyPrinter_formatTerm(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Widget_exprToInteractive_match__1(lean_object*); lean_object* l_Lean_Widget_Lean_Widget_InfoWithCtx_instRpcEncodingWithRpcRefInfoWithCtxRpcRef; lean_object* l_Lean_Widget_TaggedText_prettyTagged(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__17; +static size_t l_Lean_Widget_instInhabitedInfoWithCtx___closed__17; lean_object* l_Lean_Widget_exprToInteractive_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Widget_Lean_Widget_CodeToken_instRpcEncodingCodeTokenRpcEncodingPacket___lambda__1(lean_object*, size_t); static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__8; @@ -87,6 +87,7 @@ static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__13; lean_object* l_Lean_Widget_Lean_Widget_CodeToken_instRpcEncodingCodeTokenRpcEncodingPacket; lean_object* l_Lean_Widget_Lean_Widget_InfoWithCtx_instRpcEncodingWithRpcRefInfoWithCtxRpcRef___lambda__2(lean_object*, lean_object*, lean_object*, size_t); lean_object* l_Lean_Widget_exprToInteractiveExplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__23; static lean_object* l_Lean_Widget_formatExplicitInfos___closed__5; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonRpcRef____x40_Lean_Data_Lsp_Extra___hyg_772_(size_t); lean_object* l_Lean_Widget_tagExprInfos_go_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -109,6 +110,7 @@ lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_formatWithOpts_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encode____x40_Lean_Widget_InteractiveCode___hyg_5____rarg___boxed__const__1; lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_CodeToken_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveCode___hyg_214____boxed(lean_object*); +static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__22; uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encode____x40_Lean_Widget_InteractiveCode___hyg_5_(lean_object*); lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_formatWithOpts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -135,7 +137,7 @@ static lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_ static lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____rarg___closed__6; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_traverse_go_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l_Lean_Widget_instInhabitedInfoWithCtx___closed__15; +static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__15; static lean_object* l_Lean_Widget_instInhabitedInfoWithCtx___closed__18; static lean_object* l_Lean_Widget_Lean_Widget_InfoWithCtx_instRpcEncodingWithRpcRefInfoWithCtxRpcRef___closed__1; lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____rarg(lean_object*, lean_object*, lean_object*); @@ -293,8 +295,20 @@ static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__12() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__4; +x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__12; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -306,14 +320,14 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__13() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__9; x_3 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__11; -x_4 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__12; +x_4 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__13; x_5 = lean_box(0); x_6 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_6, 0, x_2); @@ -325,7 +339,19 @@ lean_ctor_set(x_6, 5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__14() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -335,7 +361,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static size_t _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__15() { +static size_t _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__17() { _start: { lean_object* x_1; size_t x_2; @@ -344,14 +370,14 @@ x_2 = lean_usize_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__16() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__14; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__16; x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__6; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__15; +x_4 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__17; x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -361,19 +387,19 @@ lean_ctor_set_usize(x_5, 4, x_4); return x_5; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__17() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__4; -x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__16; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__15; +x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__18; 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; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__18() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -385,13 +411,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__19() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); -x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__18; -x_3 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__12; +x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__20; +x_3 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__13; x_4 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); @@ -401,23 +427,23 @@ lean_ctor_set(x_4, 4, x_1); return x_4; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__20() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__19; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__21; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__21() { +static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__13; -x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__17; -x_3 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__20; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__14; +x_2 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__19; +x_3 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__22; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -429,7 +455,7 @@ static lean_object* _init_l_Lean_Widget_instInhabitedInfoWithCtx() { _start: { lean_object* x_1; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__21; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__23; return x_1; } } @@ -709,7 +735,7 @@ static lean_object* _init_l_Lean_Widget_instInhabitedCodeToken() { _start: { lean_object* x_1; -x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__21; +x_1 = l_Lean_Widget_instInhabitedInfoWithCtx___closed__23; return x_1; } } @@ -5181,10 +5207,10 @@ lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__13); l_Lean_Widget_instInhabitedInfoWithCtx___closed__14 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__14(); lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__14); l_Lean_Widget_instInhabitedInfoWithCtx___closed__15 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__15(); +lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__15); l_Lean_Widget_instInhabitedInfoWithCtx___closed__16 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__16(); lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__16); l_Lean_Widget_instInhabitedInfoWithCtx___closed__17 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__17(); -lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__17); l_Lean_Widget_instInhabitedInfoWithCtx___closed__18 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__18(); lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__18); l_Lean_Widget_instInhabitedInfoWithCtx___closed__19 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__19(); @@ -5193,6 +5219,10 @@ l_Lean_Widget_instInhabitedInfoWithCtx___closed__20 = _init_l_Lean_Widget_instIn lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__20); l_Lean_Widget_instInhabitedInfoWithCtx___closed__21 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__21(); lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__21); +l_Lean_Widget_instInhabitedInfoWithCtx___closed__22 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__22(); +lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__22); +l_Lean_Widget_instInhabitedInfoWithCtx___closed__23 = _init_l_Lean_Widget_instInhabitedInfoWithCtx___closed__23(); +lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx___closed__23); l_Lean_Widget_instInhabitedInfoWithCtx = _init_l_Lean_Widget_instInhabitedInfoWithCtx(); lean_mark_persistent(l_Lean_Widget_instInhabitedInfoWithCtx); l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_encodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____rarg___closed__1(); diff --git a/stage0/stdlib/Lean/Widget/InteractiveDiagnostic.c b/stage0/stdlib/Lean/Widget/InteractiveDiagnostic.c index 07a9e6b5a3..90814c6fa0 100644 --- a/stage0/stdlib/Lean/Widget/InteractiveDiagnostic.c +++ b/stage0/stdlib/Lean/Widget/InteractiveDiagnostic.c @@ -288,6 +288,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_MsgEmbed_instRpcEncodingMsg lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___spec__12___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Widget_instInhabitedEmbedFmt___closed__18; lean_object* l_ExceptT_bindCont___at_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___spec__57___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__23___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__12___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -296,7 +297,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_InteractiveDiagnostic_instR lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___spec__32___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_tagExprInfos_go(lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l_Lean_Widget_instInhabitedEmbedFmt___closed__14; +static lean_object* l_Lean_Widget_instInhabitedEmbedFmt___closed__14; extern lean_object* l_Lean_instInhabitedJson; static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_toJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_495____at___private_Lean_Widget_InteractiveDiagnostic_0__Lean_Widget_MsgEmbed_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveDiagnostic___hyg_394____spec__1___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__41___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -402,6 +403,7 @@ lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_MsgEmbed_instRpcEnco lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__37(lean_object*); lean_object* l_Lean_Widget_msgToInteractive_match__1(lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__14(lean_object*); +static lean_object* l_Lean_Widget_instInhabitedEmbedFmt___closed__19; lean_object* l_ExceptT_bindCont___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__47(lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_InteractiveDiagnostic_0__Lean_Widget_Lean_MessageData_decode____x40_Lean_Widget_InteractiveDiagnostic___hyg_4____rarg___closed__2; @@ -446,7 +448,7 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___spec__31___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__37___rarg___lambda__7(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Widget_InteractiveDiagnostic_0__Lean_Widget_mkPPContext___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Widget_instInhabitedEmbedFmt___closed__16; +static size_t l_Lean_Widget_instInhabitedEmbedFmt___closed__16; lean_object* l_ExceptT_bindCont___at_Lean_Widget_InteractiveDiagnostic_instRpcEncodingInteractiveDiagnosticRpcEncodingPacket___spec__20(lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___spec__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_MsgEmbed_instRpcEncodingMsgEmbedRpcEncodingPacket___lambda__8(lean_object*, lean_object*, size_t); @@ -13140,8 +13142,20 @@ static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__4; +x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__11; x_3 = lean_alloc_ctor(0, 7, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -13153,14 +13167,14 @@ lean_ctor_set(x_3, 6, x_2); return x_3; } } -static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__12() { +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__9; x_3 = l_Lean_Widget_instInhabitedEmbedFmt___closed__10; -x_4 = l_Lean_Widget_instInhabitedEmbedFmt___closed__11; +x_4 = l_Lean_Widget_instInhabitedEmbedFmt___closed__12; x_5 = lean_box(0); x_6 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_6, 0, x_2); @@ -13172,7 +13186,19 @@ lean_ctor_set(x_6, 5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__13() { +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__3; +x_2 = lean_unsigned_to_nat(0u); +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; +} +} +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -13182,7 +13208,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static size_t _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__14() { +static size_t _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__16() { _start: { lean_object* x_1; size_t x_2; @@ -13191,14 +13217,14 @@ x_2 = lean_usize_of_nat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__15() { +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__13; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__15; x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__6; x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Widget_instInhabitedEmbedFmt___closed__14; +x_4 = l_Lean_Widget_instInhabitedEmbedFmt___closed__16; x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -13208,24 +13234,24 @@ lean_ctor_set_usize(x_5, 4, x_4); return x_5; } } -static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__16() { +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__4; -x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__15; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__14; +x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__17; 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; } } -static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__17() { +static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__12; -x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__16; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__13; +x_2 = l_Lean_Widget_instInhabitedEmbedFmt___closed__18; x_3 = lean_box(0); x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -13238,7 +13264,7 @@ static lean_object* _init_l_Lean_Widget_instInhabitedEmbedFmt() { _start: { lean_object* x_1; -x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__17; +x_1 = l_Lean_Widget_instInhabitedEmbedFmt___closed__19; return x_1; } } @@ -17470,12 +17496,16 @@ lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__12); l_Lean_Widget_instInhabitedEmbedFmt___closed__13 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__13(); lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__13); l_Lean_Widget_instInhabitedEmbedFmt___closed__14 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__14(); +lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__14); l_Lean_Widget_instInhabitedEmbedFmt___closed__15 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__15(); lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__15); l_Lean_Widget_instInhabitedEmbedFmt___closed__16 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__16(); -lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__16); l_Lean_Widget_instInhabitedEmbedFmt___closed__17 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__17(); lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__17); +l_Lean_Widget_instInhabitedEmbedFmt___closed__18 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__18(); +lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__18); +l_Lean_Widget_instInhabitedEmbedFmt___closed__19 = _init_l_Lean_Widget_instInhabitedEmbedFmt___closed__19(); +lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt___closed__19); l_Lean_Widget_instInhabitedEmbedFmt = _init_l_Lean_Widget_instInhabitedEmbedFmt(); lean_mark_persistent(l_Lean_Widget_instInhabitedEmbedFmt); l___private_Lean_Widget_InteractiveDiagnostic_0__Lean_Widget_msgToInteractiveAux_go_match__2___rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveDiagnostic_0__Lean_Widget_msgToInteractiveAux_go_match__2___rarg___closed__1(); diff --git a/stage0/stdlib/Lean/Widget/InteractiveGoal.c b/stage0/stdlib/Lean/Widget/InteractiveGoal.c index 2378735d45..ad074c229b 100644 --- a/stage0/stdlib/Lean/Widget/InteractiveGoal.c +++ b/stage0/stdlib/Lean/Widget/InteractiveGoal.c @@ -217,6 +217,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveTerm lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_Lean_Widget_InteractiveGoals_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1077____spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoal_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__26___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__26(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveHypothesis_instRpcEncodingInteractiveHypothesisRpcEncodingPacket___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveHypothesis_instRpcEncodingInteractiveHypothesisRpcEncodingPacket___spec__23___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -262,7 +263,6 @@ lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_Interact static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_fromJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_344____at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_Lean_Widget_InteractiveHypothesis_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_78____spec__2___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_Lean_Widget_InteractiveGoal_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_347____spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_Lean_Widget_InteractiveGoals_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1107____spec__1(size_t, size_t, lean_object*); -lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_Lean_Widget_InteractiveHypothesis_instRpcEncodingInteractiveHypothesisRpcEncodingPacket___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_parseTagged(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -668,7 +668,6 @@ lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_Interact lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_goalToInteractive___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_InteractiveHypothesis_instRpcEncodingInteractiveHypothesisRpcEncodingPacket___spec__9___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoals_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__21___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__21(lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__29___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -694,6 +693,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoal lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoal_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__1___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoal_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InteractiveHypothesis_instRpcEncodingInteractiveHypothesisRpcEncodingPacket___spec__18___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InteractiveGoals_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__8___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); @@ -16780,11 +16780,11 @@ return x_2; lean_object* l_Lean_Widget_goalToInteractive_ppVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; uint8_t x_12; +lean_object* x_11; lean_object* x_12; x_11 = l_Lean_LocalDecl_fvarId(x_5); -x_12 = l_Lean_NameSet_contains(x_1, x_11); +x_12 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_1, x_11); lean_dec(x_11); -if (x_12 == 0) +if (lean_obj_tag(x_12) == 0) { if (lean_obj_tag(x_5) == 0) { @@ -17360,6 +17360,7 @@ return x_144; else { lean_object* x_145; +lean_dec(x_12); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -17683,11 +17684,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -17742,6 +17743,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -17770,11 +17772,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -17830,6 +17832,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -17877,11 +17880,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -17937,6 +17940,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -17993,13 +17997,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -18054,6 +18058,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -18063,16 +18068,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -18128,6 +18133,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -18142,7 +18148,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -18159,9 +18165,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -18217,6 +18223,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -18477,11 +18484,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -18536,6 +18543,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -18564,11 +18572,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -18624,6 +18632,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -18671,11 +18680,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -18731,6 +18740,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -18787,13 +18797,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -18848,6 +18858,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -18857,16 +18868,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -18922,6 +18933,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -18936,7 +18948,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -18953,9 +18965,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -19011,6 +19023,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -19311,11 +19324,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -19370,6 +19383,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -19398,11 +19412,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -19458,6 +19472,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -19505,11 +19520,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -19565,6 +19580,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -19621,13 +19637,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -19682,6 +19698,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -19691,16 +19708,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -19756,6 +19773,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -19770,7 +19788,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -19787,9 +19805,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -19845,6 +19863,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -19924,11 +19943,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -19983,6 +20002,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -20011,11 +20031,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -20071,6 +20091,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -20118,11 +20139,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -20178,6 +20199,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -20234,13 +20256,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -20295,6 +20317,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -20304,16 +20327,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -20369,6 +20392,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -20383,7 +20407,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -20400,9 +20424,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -20458,6 +20482,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -20607,11 +20632,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -20666,6 +20691,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -20694,11 +20720,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -20754,6 +20780,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -20801,11 +20828,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -20861,6 +20888,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -20917,13 +20945,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -20978,6 +21006,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -20987,16 +21016,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -21052,6 +21081,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -21066,7 +21096,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -21083,9 +21113,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -21141,6 +21171,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -21331,11 +21362,11 @@ x_25 = lean_ctor_get(x_18, 1); x_26 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_27; lean_object* x_28; x_27 = l_Lean_LocalDecl_fvarId(x_19); -x_28 = l_Lean_NameSet_contains(x_2, x_27); +x_28 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_27); lean_dec(x_27); -if (x_28 == 0) +if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_free_object(x_18); @@ -21390,6 +21421,7 @@ return x_38; else { size_t x_39; size_t x_40; +lean_dec(x_28); lean_dec(x_19); x_39 = 1; x_40 = x_5 + x_39; @@ -21418,11 +21450,11 @@ lean_dec(x_18); x_47 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_47 == 0) { -lean_object* x_48; uint8_t x_49; +lean_object* x_48; lean_object* x_49; x_48 = l_Lean_LocalDecl_fvarId(x_19); -x_49 = l_Lean_NameSet_contains(x_2, x_48); +x_49 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_48); lean_dec(x_48); -if (x_49 == 0) +if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_free_object(x_7); @@ -21478,6 +21510,7 @@ return x_59; else { lean_object* x_60; size_t x_61; size_t x_62; +lean_dec(x_49); lean_dec(x_19); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_45); @@ -21525,11 +21558,11 @@ if (lean_is_exclusive(x_18)) { x_72 = l_Lean_LocalDecl_isAuxDecl(x_19); if (x_72 == 0) { -lean_object* x_73; uint8_t x_74; +lean_object* x_73; lean_object* x_74; x_73 = l_Lean_LocalDecl_fvarId(x_19); -x_74 = l_Lean_NameSet_contains(x_2, x_73); +x_74 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_73); lean_dec(x_73); -if (x_74 == 0) +if (lean_obj_tag(x_74) == 0) { lean_object* x_75; lean_dec(x_71); @@ -21585,6 +21618,7 @@ return x_84; else { lean_object* x_85; lean_object* x_86; size_t x_87; size_t x_88; +lean_dec(x_74); lean_dec(x_19); if (lean_is_scalar(x_71)) { x_85 = lean_alloc_ctor(0, 2, 0); @@ -21641,13 +21675,13 @@ lean_dec(x_98); x_99 = !lean_is_exclusive(x_18); if (x_99 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; x_100 = lean_ctor_get(x_18, 0); x_101 = lean_ctor_get(x_18, 1); x_102 = l_Lean_LocalDecl_fvarId(x_95); -x_103 = l_Lean_NameSet_contains(x_2, x_102); +x_103 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_102); lean_dec(x_102); -if (x_103 == 0) +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_free_object(x_18); @@ -21702,6 +21736,7 @@ return x_113; else { size_t x_114; size_t x_115; +lean_dec(x_103); lean_dec(x_95); x_114 = 1; x_115 = x_5 + x_114; @@ -21711,16 +21746,16 @@ goto _start; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; x_117 = lean_ctor_get(x_18, 0); x_118 = lean_ctor_get(x_18, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_18); x_119 = l_Lean_LocalDecl_fvarId(x_95); -x_120 = l_Lean_NameSet_contains(x_2, x_119); +x_120 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_119); lean_dec(x_119); -if (x_120 == 0) +if (lean_obj_tag(x_120) == 0) { lean_object* x_121; lean_free_object(x_7); @@ -21776,6 +21811,7 @@ return x_130; else { lean_object* x_131; size_t x_132; size_t x_133; +lean_dec(x_120); lean_dec(x_95); x_131 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_131, 0, x_117); @@ -21790,7 +21826,7 @@ goto _start; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; x_135 = lean_ctor_get(x_7, 0); lean_inc(x_135); lean_dec(x_7); @@ -21807,9 +21843,9 @@ if (lean_is_exclusive(x_18)) { x_138 = lean_box(0); } x_139 = l_Lean_LocalDecl_fvarId(x_95); -x_140 = l_Lean_NameSet_contains(x_2, x_139); +x_140 = l_Std_RBNode_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(x_2, x_139); lean_dec(x_139); -if (x_140 == 0) +if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_dec(x_138); @@ -21865,6 +21901,7 @@ return x_150; else { lean_object* x_151; lean_object* x_152; size_t x_153; size_t x_154; +lean_dec(x_140); lean_dec(x_95); if (lean_is_scalar(x_138)) { x_151 = lean_alloc_ctor(0, 2, 0); @@ -22710,7 +22747,7 @@ lean_closure_set(x_32, 0, x_30); lean_closure_set(x_32, 1, x_31); lean_closure_set(x_32, 2, x_28); lean_closure_set(x_32, 3, x_20); -x_33 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(x_28, x_29, x_32, x_2, x_3, x_4, x_5, x_11); +x_33 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(x_28, x_29, x_32, x_2, x_3, x_4, x_5, x_11); return x_33; } }